This commit is contained in:
NaBian committed 2022-09-04 21:16:06 +08:00
1 parent ef084c7547
commit 8d7add5e64
5 files changed
+70 -65

No files matched your search

@@ -22,17 +22,20 @@
<Style x:Key="EmptyBaseStyle" TargetType="hc:Empty">
<Setter Property="Logo" Value="{StaticResource LogoRectangle4Empty}"/>
<Setter Property="Description" Value="{StaticResource DescriptionTextBlock4Empty}"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Visibility" Value="{Binding Path=(hc:Empty.ShowEmpty),RelativeSource={RelativeSource Self},Converter={StaticResource Boolean2VisibilityConverter}}"/>
<Setter Property="Padding" Value="{StaticResource DefaultControlPadding}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="hc:Empty">
<hc:SimpleStackPanel>
<ContentPresenter ContentSource="Logo"/>
<ContentPresenter ContentSource="Description"/>
<ContentPresenter HorizontalAlignment="Center"/>
</hc:SimpleStackPanel>
<Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{Binding Path=(hc:BorderElement.CornerRadius),RelativeSource={RelativeSource TemplatedParent}}">
<hc:SimpleStackPanel Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
<ContentPresenter ContentSource="Logo"/>
<ContentPresenter ContentSource="Description"/>
<ContentPresenter HorizontalAlignment="Center"/>
</hc:SimpleStackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>