Skip to content

Commit

Permalink
Update App.axaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Oct 19, 2024
1 parent 6989b95 commit 568b6f6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions samples/Notepad/App.axaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Notepad"
xmlns:idc="using:Dock.Avalonia.Controls"
xmlns:acr="using:Avalonia.Controls.Recycling"
x:Class="Notepad.App"
Name="Notepad"
RequestedThemeVariant="Light">
Expand All @@ -12,17 +10,18 @@
</Application.DataTemplates>

<Application.Resources>
<acr:ControlRecycling x:Key="ControlRecyclingKey" />
<ControlRecycling x:Key="ControlRecyclingKey" />
</Application.Resources>

<Application.Styles>

<FluentTheme />

<StyleInclude Source="avares://Dock.Avalonia/Themes/DockFluentTheme.axaml" />
<!--<StyleInclude Source="avares://Dock.Avalonia/Themes/DockFluentTheme.axaml" />-->
<DockFluentTheme />

<Style Selector="idc|DockControl">
<Setter Property="(acr:ControlRecyclingDataTemplate.ControlRecycling)" Value="{StaticResource ControlRecyclingKey}" />
<Style Selector="DockControl">
<Setter Property="(ControlRecyclingDataTemplate.ControlRecycling)" Value="{StaticResource ControlRecyclingKey}" />
</Style>

</Application.Styles>
Expand Down

0 comments on commit 568b6f6

Please sign in to comment.