Skip to content

Commit

Permalink
Fix bindings to CodeHighlightThemeName
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Oct 9, 2023
1 parent 2aef37e commit 8a8aa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShowMeTheXaml.Avalonia.AvaloniaEdit/XamlDisplayStyles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<Interaction.Behaviors>
<avaloniaEdit1:CustomizeEditorBehavior />
<avaloniaEdit1:XamlDisplayAvaloniaEditThemeBehavior
CodeHighlightThemeName="{Binding $parent[showMeTheXaml:XamlDisplay].(avaloniaEdit1:XamlDisplayAvaloniaEdit.CodeHighlightThemeName)}" />
CodeHighlightThemeName="{Binding (avaloniaEdit1:XamlDisplayAvaloniaEdit.CodeHighlightThemeName), RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=showMeTheXaml:XamlDisplay}}" />
</Interaction.Behaviors>
</avaloniaEdit:TextEditor>
</ScrollViewer>
Expand Down Expand Up @@ -124,7 +124,7 @@
<avaloniaEdit1:XamlDisplayAvaloniaEditTextBindingBehavior
MarkupTextEditor="{Binding ElementName=MarkupTextEditor}" />
<avaloniaEdit1:XamlDisplayAvaloniaEditThemeBehavior
CodeHighlightThemeName="{Binding $parent[showMeTheXaml:XamlDisplay].(avaloniaEdit1:XamlDisplayAvaloniaEdit.CodeHighlightThemeName)}" />
CodeHighlightThemeName="{Binding (avaloniaEdit1:XamlDisplayAvaloniaEdit.CodeHighlightThemeName), RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=showMeTheXaml:XamlDisplay}}" />
</Interaction.Behaviors>
</avaloniaEdit:TextEditor>
</ScrollViewer>
Expand Down

0 comments on commit 8a8aa72

Please sign in to comment.