Hi,
Is there a way to remove event handlers in a style that were defined in another style?
Here's a contrived example:
<Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBoxStyle">
<EventSetter Event="GotFocus" Handler="TextBox_GotFocus"/>
<EventSetter Event="LostFocus" Handler="TextBox_LostFocus"/>
<EventSetter Event="PreviewKeyUp" Handler="TextBox_PreviewKeyUp"/>
</Style>
<Style TargetType="{x:Type TextBox}" x:Key="InlineTextBox" BasedOn="{DynamicResource DefaultTextBoxStyle}">
<EventSetter Event="GotFocus" Handler="????"/> // set to nothing
<EventSetter Event="LostFocus" Handler="????"/> // set to nothing
<EventSetter Event="PreviewKeyUp" Handler="????"/> // set to nothing
</Style>
Thanks!