Understanding WPF Events

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 5

  • @saikamineni1266
    @saikamineni1266 2 ปีที่แล้ว +1

    how would I know when to use tunnel, bubbling events?
    By the way, excellent explanation. Loved it.

  • @juanclopgar97
    @juanclopgar97 4 ปีที่แล้ว

    I've a question, in order to know if the event is a Tunnel event, you can know it by te "preview" name, but, how can I know what event is a bubble event or a direct event?

    • @BrianLagunas
      @BrianLagunas  4 ปีที่แล้ว +1

      A bubbling event usually has a corresponding tunneling event. If it doesn't have a tunneling counterpart, chances are it is a direct event.

    • @juanclopgar97
      @juanclopgar97 4 ปีที่แล้ว

      @@BrianLagunas that makes sense, thank you!, and I don't know if you can help me with this question too.
      How is the bubble and Tunnel events handled by the next container. For example, If I can do that in Windows Forms or Console application, How can you Trigger container's event???, because if you exposse a public member, could be bad, because any other object could trigger the event in any moment.

    • @BrianLagunas
      @BrianLagunas  4 ปีที่แล้ว

      @@juanclopgar97 routed events are a WPF concept only