Skip to content

Commit

Permalink
Add a default background for XamlDisplay in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Oct 9, 2023
1 parent c9528e4 commit 2c918b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ShowMeTheXaml.Avalonia.Demo/App.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ShowMeTheXaml.Avalonia.Demo"
xmlns:showMeTheXaml="clr-namespace:ShowMeTheXaml;assembly=ShowMeTheXaml.Avalonia"
x:Class="ShowMeTheXaml.Avalonia.Demo.App">
<Application.DataTemplates>
<local:ViewLocator />
Expand All @@ -9,5 +10,8 @@
<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://ShowMeTheXaml.Avalonia.AvaloniaEdit/XamlDisplayStyles.axaml" />
<Style Selector="showMeTheXaml|XamlDisplay">
<Setter Property="Background" Value="{DynamicResource SystemRegionBrush}" />
</Style>
</Application.Styles>
</Application>

0 comments on commit 2c918b1

Please sign in to comment.