Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
how to add event handler to a XamComboEditor that is embededd in a grid in one of the columns
posted

how to add event handler to a XamComboEditor that is embededd in a grid in one of the columns?

 

I have the following in my xaml:

 

 

 

 

 

 

 

<!-- This items provider is populated in the code-behind. -->

 

 

 

<igEditors:ComboBoxItemsProvider DisplayMemberPath="Name" ValuePath="ID" x:Key

="TypeItemsProvider" />

 

 

 

<Style x:Key="TypeStyle" TargetType="{x:Type igEditors:XamComboEditor

}">

 

 

 

<Setter Property="ItemsProvider" Value="{StaticResource TypeItemsProvider

}" />

 

 

 

</Style

>

now when a type is selected from the dropdownlist of this cell, then I need to do handle it....

I just need to know how to add the event to this XamComboEditor that is defined in the style...

Any help is appreciated!

Parents
  • 69686
    Verified Answer
    posted

    Hello,

    You can do this with an EventSetter in the style:

    <EventSetter Event="XamComboEditor.Eventname" Handler="TheEventHandlerInTheCodeBehind"/>

    Hope this helps,

    Alex.

     

Reply Children
No Data