I write the style like this:
<Style TargetType="{x:Type igDP:FilterCellValuePresenter}"> <i:Interaction.Triggers> <i:EventTrigger></i:EventTrigger> </i:Interaction.Triggers> <EventSetter Event="KeyUp" Handler="OnFilterCellValuePresenterKeyUp"/> <EventSetter Event="Loaded" Handler="OnFilterCellValuePresenterLoaded"/> </Style>
however, there is warning says that the trigger could only applied to the object which derived from dependencyobject.
FilterCellValuePresenter is really derive from dependencyobject.
Why this happened?
Hello Lin,
Thank you for your post!
I have been looking into your issue and what I can suggest is to take a look at the following link: https://social.msdn.microsoft.com/forums/silverlight/en-US/c7d2526c-da67-43c9-b816-f8ae260af157/using-a-custom-trigger-inside-a-style-declaration .
Would you please provide me with more detailed information about the functionality your want to achieve for the FilterCellValuePresenter? This way I would be able to further investigate this issue for you and provide you with further information.
Looking forward to hearing from you.