feat(style): add ListBox small style
This commit is contained in:
1 parent
1c7cdb7a98
commit
253cbfb414
3 files changed
+23
No files matched your search
@@ -12436,6 +12436,13 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox" />
|
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox" />
|
||||||
|
<Style x:Key="ListBoxItemBaseStyle.Small" BasedOn="{StaticResource ListBoxItemBaseStyle}" TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Padding" Value="6,0" />
|
||||||
|
<Setter Property="MinHeight" Value="24" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ListBox.Small" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
||||||
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemBaseStyle.Small}" />
|
||||||
|
</Style>
|
||||||
<Style x:Key="ListBoxCustom" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
<Style x:Key="ListBoxCustom" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
||||||
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemCustom}" />
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemCustom}" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||||
|
|||||||
@@ -4,6 +4,15 @@
|
|||||||
<!--默认样式-->
|
<!--默认样式-->
|
||||||
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox"/>
|
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox"/>
|
||||||
|
|
||||||
|
<Style x:Key="ListBoxItemBaseStyle.Small" BasedOn="{StaticResource ListBoxItemBaseStyle}" TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Padding" Value="6,0"/>
|
||||||
|
<Setter Property="MinHeight" Value="24"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="ListBox.Small" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
||||||
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemBaseStyle.Small}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="ListBoxItemCustom" TargetType="ListBoxItem">
|
<Style x:Key="ListBoxItemCustom" TargetType="ListBoxItem">
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||||
|
|||||||
@@ -12578,6 +12578,13 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox" />
|
<Style BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox" />
|
||||||
|
<Style x:Key="ListBoxItemBaseStyle.Small" BasedOn="{StaticResource ListBoxItemBaseStyle}" TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Padding" Value="6,0" />
|
||||||
|
<Setter Property="MinHeight" Value="24" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ListBox.Small" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
||||||
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemBaseStyle.Small}" />
|
||||||
|
</Style>
|
||||||
<Style x:Key="ListBoxCustom" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
<Style x:Key="ListBoxCustom" BasedOn="{StaticResource ListBoxBaseStyle}" TargetType="ListBox">
|
||||||
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemCustom}" />
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemCustom}" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||||
|
|||||||
Reference in new issue
Block a user