committed by
GitHub
10 changed files with 224 additions and 96 deletions
@ -1,65 +1,68 @@ |
|||||
<Styles xmlns="https://github.com/avaloniaui" |
<Styles xmlns="https://github.com/avaloniaui" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
<Style Selector="TabControl.sidebar"> |
<Style Selector="TabControl.sidebar"> |
||||
<Setter Property="TabStripPlacement" Value="Left"/> |
<Setter Property="TabStripPlacement" Value="Left"/> |
||||
<Setter Property="Padding" Value="8 0 0 0"/> |
<Setter Property="Padding" Value="8 0 0 0"/> |
||||
<Setter Property="Background" Value="{DynamicResource SystemAccentColor}"/> |
<Setter Property="Background" Value="{DynamicResource SystemAccentColor}"/> |
||||
<Setter Property="Template"> |
<Setter Property="Template"> |
||||
<ControlTemplate> |
<ControlTemplate> |
||||
<Border |
<Border |
||||
Margin="{TemplateBinding Margin}" |
Margin="{TemplateBinding Margin}" |
||||
BorderBrush="{TemplateBinding BorderBrush}" |
BorderBrush="{TemplateBinding BorderBrush}" |
||||
BorderThickness="{TemplateBinding BorderThickness}"> |
BorderThickness="{TemplateBinding BorderThickness}"> |
||||
<DockPanel> |
<DockPanel> |
||||
<ScrollViewer |
<ScrollViewer |
||||
Name="PART_ScrollViewer" |
Name="PART_ScrollViewer" |
||||
HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}" |
HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}" |
||||
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}" |
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}" |
||||
Background="{TemplateBinding Background}"> |
Background="{TemplateBinding Background}"> |
||||
<ItemsPresenter |
<ItemsPresenter |
||||
Name="PART_ItemsPresenter" |
Name="PART_ItemsPresenter" |
||||
Items="{TemplateBinding Items}" |
Items="{TemplateBinding Items}" |
||||
ItemsPanel="{TemplateBinding ItemsPanel}" |
ItemsPanel="{TemplateBinding ItemsPanel}" |
||||
ItemTemplate="{TemplateBinding ItemTemplate}"> |
ItemTemplate="{TemplateBinding ItemTemplate}"> |
||||
</ItemsPresenter> |
</ItemsPresenter> |
||||
</ScrollViewer> |
</ScrollViewer> |
||||
<ContentPresenter |
<ContentPresenter |
||||
Name="PART_SelectedContentHost" |
Name="PART_SelectedContentHost" |
||||
Margin="{TemplateBinding Padding}" |
Margin="{TemplateBinding Padding}" |
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
||||
Content="{TemplateBinding SelectedContent}" |
Content="{TemplateBinding SelectedContent}" |
||||
ContentTemplate="{TemplateBinding SelectedContentTemplate}"> |
ContentTemplate="{TemplateBinding SelectedContentTemplate}"> |
||||
</ContentPresenter> |
</ContentPresenter> |
||||
</DockPanel> |
</DockPanel> |
||||
</Border> |
</Border> |
||||
</ControlTemplate> |
</ControlTemplate> |
||||
</Setter> |
</Setter> |
||||
</Style> |
</Style> |
||||
|
|
||||
<Style Selector="TabControl.sidebar > TabItem"> |
<Style Selector="TabControl.sidebar > TabItem"> |
||||
<Setter Property="BorderThickness" Value="0"/> |
<Setter Property="BorderThickness" Value="0"/> |
||||
<Setter Property="Foreground" Value="White"/> |
<Setter Property="Foreground" Value="White"/> |
||||
<Setter Property="FontSize" Value="14"/> |
<Setter Property="FontSize" Value="14"/> |
||||
<Setter Property="Margin" Value="0"/> |
<Setter Property="Margin" Value="0"/> |
||||
<Setter Property="Padding" Value="16"/> |
<Setter Property="Padding" Value="16"/> |
||||
<Setter Property="Opacity" Value="0.5"/> |
<Setter Property="Opacity" Value="0.5"/> |
||||
<Setter Property="Transitions"> |
<Setter Property="Transitions"> |
||||
<Transitions> |
<Transitions> |
||||
<DoubleTransition Property="Opacity" Duration="0:0:0.150"/> |
<DoubleTransition Property="Opacity" Duration="0:0:0.150"/> |
||||
</Transitions> |
</Transitions> |
||||
</Setter> |
</Setter> |
||||
</Style> |
</Style> |
||||
<Style Selector="TabControl.sidebar > TabItem:pointerover"> |
<Style Selector="TabControl.sidebar > TabItem:selected /template/ Border#PART_SelectedPipe"> |
||||
<Setter Property="Opacity" Value="1"/> |
<Setter Property="IsVisible" Value="False" /> |
||||
</Style> |
</Style> |
||||
<Style Selector="TabControl.sidebar > TabItem:pointerover /template/ ContentPresenter#PART_ContentPresenter"> |
<Style Selector="TabControl.sidebar > TabItem:pointerover"> |
||||
<Setter Property="Background" Value="Transparent"/> |
<Setter Property="Opacity" Value="1"/> |
||||
</Style> |
</Style> |
||||
<Style Selector="TabControl.sidebar > TabItem:selected"> |
<Style Selector="TabControl.sidebar > TabItem:pointerover /template/ Border#PART_LayoutRoot"> |
||||
<Setter Property="Opacity" Value="1"/> |
<Setter Property="Background" Value="{DynamicResource SystemAccentColorLight2}"/> |
||||
</Style> |
</Style> |
||||
<Style Selector="TabControl.sidebar > TabItem:selected /template/ ContentPresenter#PART_ContentPresenter"> |
<Style Selector="TabControl.sidebar > TabItem:selected"> |
||||
<Setter Property="Background" Value="{DynamicResource SystemAccentColorLight1}"/> |
<Setter Property="Opacity" Value="1"/> |
||||
</Style> |
</Style> |
||||
|
<Style Selector="TabControl.sidebar > TabItem:selected /template/ Border#PART_LayoutRoot"> |
||||
|
<Setter Property="Background" Value="{DynamicResource SystemAccentColorLight1}"/> |
||||
|
</Style> |
||||
</Styles> |
</Styles> |
||||
|
|||||
Loading…
Reference in new issue