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
990
InvalidValueBehavior and Setter
posted

I set InvalidValueBehavior in a Setter into a Style but doesn't work, I can not understand why.
I did so:

<Style TargetType="{x:Type igEditors:XamComboEditor}">
  <
Setter Property="IsEditable" Value="True"/>
  <
Setter Property="InvalidValueBehavior" Value="RevertValue"/>
</
Style>

What's wrong?
 
Thanks for reply
Parents
  • 54937
    Offline posted

    Where did you put that style? WPF only supports 1 Local style and if you have set the Theme property then you are already implicitly putting a local style into the Resources of the xamComboEditor.

Reply Children
No Data