diff --git a/src/Semi.Avalonia/Controls/DrawerPage.axaml b/src/Semi.Avalonia/Controls/DrawerPage.axaml index 8273f0f..83ab402 100644 --- a/src/Semi.Avalonia/Controls/DrawerPage.axaml +++ b/src/Semi.Avalonia/Controls/DrawerPage.axaml @@ -50,7 +50,8 @@ Name="PART_PaneIconPresenter" Grid.Column="1" VerticalAlignment="Center" - Content="{TemplateBinding DrawerIcon}" /> + Content="{TemplateBinding DrawerIcon}" + ContentTemplate="{TemplateBinding DrawerIconTemplate}" /> @@ -84,13 +85,16 @@ Name="PART_CompactPaneIconPresenter" DockPanel.Dock="Top" IsVisible="False" - Content="{TemplateBinding DrawerIcon}" /> + Content="{TemplateBinding DrawerIcon}" + ContentTemplate="{TemplateBinding DrawerIconTemplate}" /> + IsVisible="False" + Content="{TemplateBinding DrawerIcon}" + ContentTemplate="{TemplateBinding DrawerIconTemplate}" />