Тёмный
No video :(

Routed Events in WPF 

DotNetSkoool
Подписаться 12 тыс.
Просмотров 48 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@elangovan4ever
@elangovan4ever 3 года назад
attempted to explain. but few things are not correct. For example, he told that the mousedown on the ellipse not bubbled to the button because the ellipse is not a button, where the reason is incorrect. if that is the case why we can see the outer button clicked message box shown once he removes the message box code and put the title update code in mouseddown even of ellipse. contradicting statements. Even if you put mousedown event handler in the button it won't bubble. you can try it. Looks like the mouse down event is not a routed event. somehow the mousedown is mapped to button click when message box is not shown, but not propagated when the messagebox is shown.
@InfiradTube
@InfiradTube 4 года назад
the mouseDown event for the ellipse is not a routed event this is why the click on the ellipse wasn't handlled by the outer button because buttons generats routed events (Click event) but mouseDown event is not a Routed event and you can see that in code behind the two methods don't take the same type of parameters (MouseDowEventArgs and RoutedEventArgs) so the reason why the ellipse doesn't bubble the Container button event is that this was a different kind of events and not because it's an ellepse is not actually a button as you said
@spritesolution3345
@spritesolution3345 5 лет назад
Working of two task at time 10:04, when 'I am the green ellipse' message showed the next action 'I am the outer button' did not performed but when 1st action is changed to just title change, 2nd is also performed. Why?
@vinayreddy6170
@vinayreddy6170 3 года назад
Label Dispaly
@kapildevsharma3245
@kapildevsharma3245 Год назад
thnku bhai
@愛
@愛 3 года назад
So a routed event can go through the element tree either upwards or downwards, until it reaches the final element. So this means that every one of the (passed through element's) event handler that is subscribed to the event will receive the event information. So if the element tree is like this: Button One Button Two Button Three and if "Button One" was clicked and had a tunneled event, it would go down to and check if Button Two and Button Three are subscribed Am I understanding this correctly? Edit: No, I wasn't understanding it correctly. It doesn't go through every element above or under it in code, it only goes through elements above or under it within the element tree, right? So Button One would only go through right? But then I don't understand the difference between tunneled events and bubbled events because with a tunneled event it would go through and with a bubbled event it would go to right?
@nandeshwarbagde2494
@nandeshwarbagde2494 6 лет назад
I really like your classes video. Well understanding
@gregfrllo
@gregfrllo 5 лет назад
love how you teach. thanks!
@gamertrack
@gamertrack 8 лет назад
Hi friend. Your videos are awesome which will help a lot people who wants to learn WPF. one more thing I am waiting for tutorial on Attached Properties as you have mentioned in this video that you will be uploading soon. Great work! Appreciated.
@dotnetskoool5809
@dotnetskoool5809 8 лет назад
Thanks a lot, will be uploading it soon as I get time..
@successbounty2492
@successbounty2492 Год назад
By the way are you still teaching you are an awesome teacher
@dotnetskoool5809
@dotnetskoool5809 Год назад
Thanks, I do it often. Planning for more videos here too
@priyankasawant929
@priyankasawant929 6 лет назад
hi! here I am having one question regarding tunneling event. tunneling event is hierarchy is Up to down as you mentioned in the video.what if I am generating Mouse_Move event of inner button first?
@Trzbne
@Trzbne 6 лет назад
Thank you for the lecture. I think it is not clear. If I do anything on the same way as in the video, I get the same result, but if I change something, I do not understand anymore, what is happening and why. I switched the behavior of green ellipse and container button. So green ellipse pops up a MessageBox, container button should change the title of the window, and the title does not change. What are the restrictions of routed events? :-(
@gamertrack
@gamertrack 8 лет назад
hi,small correction in the video i.e. In the video while explaining tunneling events you are invoking preview event on the Canvas where it should have been on the inner button!
@dotnetskoool5809
@dotnetskoool5809 8 лет назад
Ohhh Yes.... Apologies.... But that means you are watching very carefully... Great, my purpose is served..
@soho1080
@soho1080 3 года назад
@@dotnetskoool5809 What a bufoon. .Instead of correcting your video which clearly is misleading youre actually just patronizing with GR's response. Ugh!
@shantkumar.biradar6153
@shantkumar.biradar6153 7 лет назад
Thanks for the great video !! I have one doubt (if i am not wrong) , how are you differentiating between mousedown and click events ? When you show messagebox on 'mousedown event' for ellipse OuterButton event is not firing, but when you removed 'messagebox' it is firing. What was happening there ?
@dotnetskoool5809
@dotnetskoool5809 7 лет назад
You keep yr mouse on ellipse and move yr mouse down... Reason being ellipse dosent have click event, Iam using mouse down event.. And this event is then bubbled up... So it fires after removing too
@prashanthkul
@prashanthkul 7 лет назад
+DotNetSkoool still confused.. when you remove messagebox from mouse down it triggers both ellipse and label event.. but when you add message box only the ellipse event fires..
@kkavya711984
@kkavya711984 6 лет назад
I have same doubt
@dgloria
@dgloria 6 лет назад
Hi! Do you know how to escape from the quotes while typing parameter value numbers? I know it works automatically for alignment="top" and things like that but it doesn't work that way for "not listed" parameter values. Hope my question is clear, I was doing a search but either wrong way put or nobody knows. Thank you.
@pvshigil
@pvshigil Год назад
Is the events firing in sync or async
@ankit6260
@ankit6260 Год назад
Can you please share all these PPT somewhere ?
@nishthakapur997016
@nishthakapur997016 6 лет назад
pls post video for markup extensions
@jyotidash5409
@jyotidash5409 5 лет назад
In ASP Event Bubbling concept is there.
@ravikothakonda7554
@ravikothakonda7554 7 лет назад
How to get code for the demo
@surajbhansingh2220
@surajbhansingh2220 6 лет назад
where to get code what u have typed on above
@TT-ud5gf
@TT-ud5gf 5 лет назад
Can someone give me real-world examples when we will need bubble/tunneling events?
@sdb584
@sdb584 7 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vob1jheMWTE.html is a key point in the video if you are entering the code locally. It's 3:01 into the video.
Далее
Understanding INotifyPropertyChanged Interface in WPF
12:40
Commands In WPF
20:34
Просмотров 77 тыс.
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Просмотров 21 млн
WPF - Dependency Properties
11:26
Просмотров 18 тыс.
Is LEARNING WPF still WORTH it in 2023?
10:59
Просмотров 47 тыс.
Understanding WPF Events
11:05
Просмотров 11 тыс.
Control Templates In WPF
11:01
Просмотров 57 тыс.
Routed Events in WPF part 2
24:27
Просмотров 113
WPF MVVM Implementation
28:41
Просмотров 92 тыс.
Attached Properties in WPF
18:19
Просмотров 28 тыс.
DataTemplates in WPF
12:58
Просмотров 62 тыс.
Data Binding Modes in WPF
12:51
Просмотров 93 тыс.
Layouts In WPF
24:15
Просмотров 54 тыс.
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Просмотров 21 млн