feat: implement RefreshContainer.

This commit is contained in:
Zhang Dian
2024-02-24 16:49:31 +08:00
parent 4efc6bf4ec
commit 157d22a8f9
3 changed files with 63 additions and 18 deletions

View File

@@ -30,19 +30,20 @@
<Setter Property="Height" Value="100" />
<Setter Property="Background" Value="{DynamicResource RefreshContainerIconBackground}" />
<Setter Property="Foreground" Value="{DynamicResource RefreshContainerIconForeground}" />
<Setter Property="Content">
<Template>
<PathIcon Name="PART_Icon"
Data="{DynamicResource RefreshContainerIconGlyph}"
Width="24"
Height="24" />
</Template>
</Setter>
<Setter Property="Template">
<ControlTemplate>
<Grid
Name="PART_Root"
MinHeight="80"
Background="{TemplateBinding Background}">
<Grid.Styles>
<Style Selector="PathIcon#PART_Icon">
<Setter Property="Data" Value="{DynamicResource RefreshContainerIconGlyph}" />
</Style>
</Grid.Styles>
</Grid>
<Grid Name="PART_Root"
MinHeight="80"
Background="{TemplateBinding Background}" />
</ControlTemplate>
</Setter>
</ControlTheme>
</ResourceDictionary>
</ResourceDictionary>