From 64e2b50a1d8a83aba85f7f325b74cde2e1fe64bf Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Fri, 20 Mar 2026 15:47:53 +0800
Subject: [PATCH] fix: add ContentTemplate binding for DrawerIcon in
DrawerPage.axaml.
---
src/Semi.Avalonia/Controls/DrawerPage.axaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
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}" />