feat: use Classes instead of Themes.
This commit is contained in:
@@ -59,31 +59,23 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
<Style Selector="^.FlatSquare">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^.Plastic">
|
||||
<Setter Property="Padding" Value="4 0" />
|
||||
<Setter Property="HeaderBackground" Value="{DynamicResource DualBadgePlasticHeaderBackground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource DualBadgePlasticBackground}" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^.ForTheBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Padding" Value="10 6" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^:header-empty">
|
||||
<Setter Property="HeaderBackground" Value="{Binding Background, RelativeSource={RelativeSource Self}}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="FlatSquare"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="Plastic"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="Background">
|
||||
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
<ControlTheme
|
||||
x:Key="ForTheBadge"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Padding" Value="6 6" />
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user