locked
Routed Events (Brennon Williams) - 5/23/2006 1:48 AM PST RRS feed

  • Question

  • By: Brennon Williams

    Howdy..

    I am researching for a book proposal at the moment, so you will probably see
    me in here a lot in the future... I have started a new blog specifically for
    Expression which can be found at:

    http://spaces.msn.com/brennonwilliams/

    This will contain tutorial extracts and general guff with respect to
    development with MES... If you would like to contribute either the blog or
    the book then please feel free... and please let me know if you find errors
    in both content and end results.


    I have one question at the moment that has popped up in my research and I
    really need a definative answer on it if possible.

    I thought that Preview (tunnel) events merely fired before the bubble event,
    yet when i attach a tunnel and a bubble to say a button, only the tunnel
    fires?

    Is this correct or is this a bug?

    I also have found a bug with relation to "Make Button" and pre-assigning
    events. Are you ware of it or do you want me to detail it?
    Tuesday, February 19, 2008 12:09 AM

Answers

  • By: Unni Ravindranathan (MS) - 5/23/2006 11:41 AM PST
    Hi Brennon,

    Thanks for sharing the link.

    Regarding your question, I don't think its a bug. The Routing strategy
    simply implies the direction in which a event propagates. Any element in
    that direction can mark an event as handled, and hence your handler for that
    event may not get called. In the case of Button, it marks the
    Left/RightMouseDown events as handled, so you might want to add an handler
    for the Preview events instead. The Windows SDK has an excellent article on
    this.

    Regarding your other question, yes, please do detail the issue you are
    observing. That will help us a lot in understanding.

    Thanks,
    Unni

    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in
    message news:A04020E4-3370-4B8C-84B0-14D731297E4C@microsoft.com...

    Click to show or hide original message or reply text.


    Tuesday, February 19, 2008 1:15 AM

All replies

  • By: deebs - 5/23/2006 6:12 AM PST
    Good luck with the book Brennon - I'll happily be a guinea pig to see if
    tutorials are followable as I am quite in need of those toots anyway :)


    Brennon Williams wrote:

    Click to show or hide original message or reply text.

    Tuesday, February 19, 2008 1:14 AM
  • By: Unni Ravindranathan (MS) - 5/23/2006 11:41 AM PST
    Hi Brennon,

    Thanks for sharing the link.

    Regarding your question, I don't think its a bug. The Routing strategy
    simply implies the direction in which a event propagates. Any element in
    that direction can mark an event as handled, and hence your handler for that
    event may not get called. In the case of Button, it marks the
    Left/RightMouseDown events as handled, so you might want to add an handler
    for the Preview events instead. The Windows SDK has an excellent article on
    this.

    Regarding your other question, yes, please do detail the issue you are
    observing. That will help us a lot in understanding.

    Thanks,
    Unni

    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in
    message news:A04020E4-3370-4B8C-84B0-14D731297E4C@microsoft.com...

    Click to show or hide original message or reply text.


    Tuesday, February 19, 2008 1:15 AM