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 fcb5b98 commit a5e3df0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/DockXamlSample/App.axaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="DockXamlSample.App"
xmlns:idc="using:Dock.Avalonia.Controls"
xmlns:acr="using:Avalonia.Controls.Recycling"
Name="Dock Avalonia Demo"
RequestedThemeVariant="Light">

<Application.Resources>
<acr:ControlRecycling x:Key="ControlRecyclingKey" TryToUseIdAsKey="True" />
<ControlRecycling x:Key="ControlRecyclingKey" TryToUseIdAsKey="True" />
<Color x:Key="RegionColor">Transparent</Color>
</Application.Resources>

Expand All @@ -22,8 +20,8 @@
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

<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 a5e3df0

Please sign in to comment.