mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-02 15:50:49 +08:00
misc: TabControlItem -> TabItem.
This commit is contained in:
@@ -128,14 +128,14 @@
|
||||
x:Key="LineTabControl"
|
||||
BasedOn="{StaticResource BaseTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource LineTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource LineTabItem}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="CardTabControl"
|
||||
BasedOn="{StaticResource BaseTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource CardTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource CardTabItem}" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="TabControl">
|
||||
<Border
|
||||
@@ -169,7 +169,7 @@
|
||||
x:Key="ButtonTabControl"
|
||||
BasedOn="{StaticResource BaseTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource ButtonTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource ButtonTabItem}" />
|
||||
<Style Selector="^ /template/ Border#PART_BorderSeparator">
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</Style>
|
||||
@@ -311,14 +311,14 @@
|
||||
x:Key="ScrollLineTabControl"
|
||||
BasedOn="{StaticResource BaseScrollTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource LineTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource LineTabItem}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="ScrollCardTabControl"
|
||||
BasedOn="{StaticResource BaseScrollTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource CardTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource CardTabItem}" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="TabControl">
|
||||
<Border
|
||||
@@ -357,7 +357,7 @@
|
||||
x:Key="ScrollButtonTabControl"
|
||||
BasedOn="{StaticResource BaseScrollTabControl}"
|
||||
TargetType="TabControl">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource ButtonTabControlItem}" />
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource ButtonTabItem}" />
|
||||
<Style Selector="^ /template/ Border#PART_BorderSeparator">
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</Style>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</StackPanel>
|
||||
</Design.PreviewWith>
|
||||
|
||||
<ControlTheme x:Key="BaseTabControlItem" TargetType="TabItem">
|
||||
<ControlTheme x:Key="BaseTabItem" TargetType="TabItem">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TabItemLineHeaderForeground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource TabItemLinePipeBackground}" />
|
||||
<Setter Property="Template">
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
<ControlTheme
|
||||
x:Key="{x:Type TabItem}"
|
||||
BasedOn="{StaticResource BaseTabControlItem}"
|
||||
BasedOn="{StaticResource BaseTabItem}"
|
||||
TargetType="TabItem">
|
||||
<Setter Property="Padding" Value="8 4" />
|
||||
|
||||
@@ -93,8 +93,8 @@
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="LineTabControlItem"
|
||||
BasedOn="{StaticResource BaseTabControlItem}"
|
||||
x:Key="LineTabItem"
|
||||
BasedOn="{StaticResource BaseTabItem}"
|
||||
TargetType="TabItem">
|
||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipeSelectedBackground}" />
|
||||
@@ -143,8 +143,8 @@
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="CardTabControlItem"
|
||||
BasedOn="{StaticResource BaseTabControlItem}"
|
||||
x:Key="CardTabItem"
|
||||
BasedOn="{StaticResource BaseTabItem}"
|
||||
TargetType="TabItem">
|
||||
<Setter Property="Padding" Value="12 8" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource SemiColorBorder}" />
|
||||
@@ -194,8 +194,8 @@
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="ButtonTabControlItem"
|
||||
BasedOn="{StaticResource BaseTabControlItem}"
|
||||
x:Key="ButtonTabItem"
|
||||
BasedOn="{StaticResource BaseTabItem}"
|
||||
TargetType="TabItem">
|
||||
<Setter Property="Padding" Value="12 8" />
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource SemiBorderRadiusSmall}" />
|
||||
@@ -215,10 +215,10 @@
|
||||
</Style>
|
||||
|
||||
<Style Selector="^[TabStripPlacement=Top], ^[TabStripPlacement=Bottom]">
|
||||
<Setter Property="TabControl.Margin" Value="0 0 8 0" />
|
||||
<Setter Property="TabItem.Margin" Value="0 0 8 0" />
|
||||
</Style>
|
||||
<Style Selector="^[TabStripPlacement=Left], ^[TabStripPlacement=Right]">
|
||||
<Setter Property="TabControl.Margin" Value="0 0 0 8" />
|
||||
<Setter Property="TabItem.Margin" Value="0 0 0 8" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user