Behavior should add a new Event to an UIElement RRS feed

  • Question

  • Hi,


    i wrote a Behavior and i declared one custom Event.

    The Behavior reacts on UiElement MouseButtonDown and raises this custom Event.

    In Code Behind i wrote

    mybehabv.MyCustonEvent += ...


    Everything works fine but there are 2 problems:


    1. I dont see the Event in blend ui (Properties of this Behavior)

    2. I would like to attach a Event to the UiElement


    => 2. Example i have a button, i attach my Behavior to this button.

    Now i would like to write in my code behind mybutton.myattacheventfromBehavior += ...


    Is this possible?


    Thank you!


    Thursday, June 24, 2010 8:54 AM