
Dear Support,
Is there any way to disable the default undo behavior of the syntax editor? Currently, I'm using the SwitchableSyntaxEditor and use the Text property to bind a string variable in my view model. I have a custom undo command to handle the undo in the view model. However, when I use the ctrl-z shortcut to call my undo command on the Text property, my custom undo command is overridden by the Text property's default undo behavior and don't get called. The only way to enable my custom undo command is to click on other text fields and use ctrl-z. I can use my custom command if I click on the undo button directly on the view. Please help me to fix the problem.
Thanks,
This is the code in my view:
<dxlc:LayoutItem Label="{Binding SomeLabel, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding IsVisible, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource VisibleIfFalse}}">
<views:SwitchableSyntaxEditor x:Name="ImplementsSyntaxEditor" IsTextDataBindingEnabled="True" Text="{Binding T.SomeText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsMultiLine="False" ScriptingLanguage="{Binding T.SomeLanguage, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" FontFamily="Segoe UI"/>
</dxlc:LayoutItem>