| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| |
| |
. | <Style x:Key="SideBarViewItem" TargetType="{x:Type SidebarItem}"> |
| <Style TargetType="{x:Type SidebarItem}"> |
| <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" /> |
| <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" /> |
| <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| <Setter Property="VerticalAlignment" Value="Stretch" /> |
| <Setter Property="VerticalAlignment" Value="Stretch" /> |
| <Setter Property="Foreground" Value="#dbdbdb" /> |
| <Setter Property="Foreground" Value="#dbdbdb" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="BorderThickness" Value="3,0,0,0" /> |
| <Setter Property="BorderThickness" Value="3,0,0,0" /> |
. | |
| <Setter Property="Width" Value="44" /> |
| |
| <Setter Property="Height" Value="44" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type SidebarItem}"> |
| <ControlTemplate TargetType="{x:Type SidebarItem}"> |
. | <Border Background="{TemplateBinding Background}" Padding="8" |
| <Grid> |
| BorderThickness="{TemplateBinding BorderThickness}" |
| <ProgressBar x:Name="PART_ProgressStatus" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| BorderThickness="0" Background="Transparent" |
| ToolTip="{Binding Name}"> |
| HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> |
| <Viewbox> |
| <Border Background="{TemplateBinding Background}" |
| <ContentPresenter HorizontalAlignment="Stretch" |
| Padding="{Binding IconPadding}" |
| VerticalAlignment="Stretch" /> |
| BorderThickness="{TemplateBinding BorderThickness}" |
| </Viewbox> |
| BorderBrush="{TemplateBinding BorderBrush}"> |
| </Border> |
| <Viewbox> |
| |
| <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> |
| |
| </Viewbox> |
| |
| </Border> |
| |
| </Grid> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| <Style.Triggers> |
| <Style.Triggers> |
| <DataTrigger Binding="{Binding Selected}" Value="True"> |
| <DataTrigger Binding="{Binding Selected}" Value="True"> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" /> |
| </DataTrigger> |
| </DataTrigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource HoverBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource HoverBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" /> |
| </Trigger> |
| </Trigger> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Right"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Right"> |
| <Setter Property="BorderThickness" Value="0,0,3,0" /> |
| <Setter Property="BorderThickness" Value="0,0,3,0" /> |
| </DataTrigger> |
| </DataTrigger> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Top"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Top"> |
| <Setter Property="BorderThickness" Value="0,3,0,0" /> |
| <Setter Property="BorderThickness" Value="0,3,0,0" /> |
| </DataTrigger> |
| </DataTrigger> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Bottom"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Bottom"> |
| <Setter Property="BorderThickness" Value="0,0,0,3" /> |
| <Setter Property="BorderThickness" Value="0,0,0,3" /> |
| </DataTrigger> |
| </DataTrigger> |
. | |
| <MultiTrigger> |
| |
| <MultiTrigger.Conditions> |
| |
| <Condition Property="Content" Value="{x:Null}" /> |
| |
| <Condition Property="ContentTemplate" Value="{x:Null}" /> |
| |
| </MultiTrigger.Conditions> |
| |
| <MultiTrigger.Setters> |
| |
| <Setter Property="Background" Value="OrangeRed" /> |
| |
| </MultiTrigger.Setters> |
| |
| </MultiTrigger> |
| </Style.Triggers> |
| </Style.Triggers> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |