mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-08 18:26:35 +08:00
fix: add ContentTemplate binding for DrawerIcon in DrawerPage.axaml.
This commit is contained in:
@@ -50,7 +50,8 @@
|
|||||||
Name="PART_PaneIconPresenter"
|
Name="PART_PaneIconPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Content="{TemplateBinding DrawerIcon}" />
|
Content="{TemplateBinding DrawerIcon}"
|
||||||
|
ContentTemplate="{TemplateBinding DrawerIconTemplate}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
@@ -84,13 +85,16 @@
|
|||||||
Name="PART_CompactPaneIconPresenter"
|
Name="PART_CompactPaneIconPresenter"
|
||||||
DockPanel.Dock="Top"
|
DockPanel.Dock="Top"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
Content="{TemplateBinding DrawerIcon}" />
|
Content="{TemplateBinding DrawerIcon}"
|
||||||
|
ContentTemplate="{TemplateBinding DrawerIconTemplate}" />
|
||||||
|
|
||||||
<!-- Bottom pane icon -->
|
<!-- Bottom pane icon -->
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
Name="PART_BottomPaneIconPresenter"
|
Name="PART_BottomPaneIconPresenter"
|
||||||
DockPanel.Dock="Bottom"
|
DockPanel.Dock="Bottom"
|
||||||
IsVisible="False" />
|
IsVisible="False"
|
||||||
|
Content="{TemplateBinding DrawerIcon}"
|
||||||
|
ContentTemplate="{TemplateBinding DrawerIconTemplate}" />
|
||||||
|
|
||||||
<!-- Drawer main content -->
|
<!-- Drawer main content -->
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
|||||||
Reference in New Issue
Block a user