| <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" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| mc:Ignorable="d"> |
| mc:Ignorable="d"> |
| |
| |
| <Style TargetType="{x:Type Sidebar}"> |
| <Style TargetType="{x:Type Sidebar}"> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type Sidebar}"> |
| <ControlTemplate TargetType="{x:Type Sidebar}"> |
| <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource PanelSeparatorBrush}" |
| <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource PanelSeparatorBrush}" |
. | x:Name="BorderContentHolder"> |
| x:Name="BorderContentHolder" Margin="{TemplateBinding Padding}"> |
| <DockPanel x:Name="DockContentHolder"> |
| <DockPanel x:Name="DockContentHolder"> |
| <Border x:Name="PART_ElemMainMenu" Background="Transparent" |
| <Border x:Name="PART_ElemMainMenu" Background="Transparent" |
| Width="44" Height="44" Margin="0,0,0,5" |
| Width="44" Height="44" Margin="0,0,0,5" |
| DockPanel.Dock="Top" Padding="5" Cursor="Hand" |
| DockPanel.Dock="Top" Padding="5" Cursor="Hand" |
| WindowChrome.IsHitTestVisibleInChrome="True"> |
| WindowChrome.IsHitTestVisibleInChrome="True"> |
| <Image Source="{ThemeFile 'Images/applogo.png'}" |
| <Image Source="{ThemeFile 'Images/applogo.png'}" |
| RenderOptions.BitmapScalingMode="Fant" /> |
| RenderOptions.BitmapScalingMode="Fant" /> |
| </Border> |
| </Border> |
| |
| |
. | <ItemsControl x:Name="PART_ListSideBarItems" |
| <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" |
| DockPanel.Dock="Top" > |
| DockPanel.Dock="Top" CanContentScroll="True" |
| <ItemsControl.ItemTemplate> |
| x:Name="ScrollSidebarItems"> |
| <DataTemplate> |
| <StackPanel x:Name="PART_PanelSideBarItems" Orientation="Vertical" /> |
| <SidebarItem Style="{DynamicResource SideBarViewItem}" |
| </ScrollViewer> |
| Width="44" Height="44" /> |
| |
| </DataTemplate> |
| |
| </ItemsControl.ItemTemplate> |
| |
| <ItemsControl.ItemsPanel> |
| |
| <ItemsPanelTemplate> |
| |
| <StackPanel Orientation="Vertical" /> |
| |
| </ItemsPanelTemplate> |
| |
| </ItemsControl.ItemsPanel> |
| |
| </ItemsControl> |
| |
| </DockPanel> |
| </DockPanel> |
| </Border> |
| </Border> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Right"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Right"> |
. | <Setter Property="Margin" Value="0,20,0,5" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="Padding" Value="0,25,0,0" /> |
| |
| <Setter Property="Margin" Value="0,0,0,5" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="BorderThickness" Value="1,0,0,0" TargetName="BorderContentHolder" /> |
| <Setter Property="BorderThickness" Value="1,0,0,0" TargetName="BorderContentHolder" /> |
| </DataTrigger> |
| </DataTrigger> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Top"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Top"> |
| <Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="BorderThickness" Value="0,0,0,1" TargetName="BorderContentHolder" /> |
| <Setter Property="BorderThickness" Value="0,0,0,1" TargetName="BorderContentHolder" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" /> |
. | <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ListSideBarItems" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="ScrollSidebarItems" /> |
| <Setter Property="ItemsPanel" TargetName="PART_ListSideBarItems"> |
| <Setter Property="Margin" Value="0,0,100,0" TargetName="ScrollSidebarItems" /> |
| <Setter.Value> |
| <Setter Property="Orientation" Value="Horizontal" TargetName="PART_PanelSideBarItems" /> |
| <ItemsPanelTemplate> |
| |
| <StackPanel Orientation="Horizontal" /> |
| |
| </ItemsPanelTemplate> |
| |
| </Setter.Value> |
| |
| </Setter> |
| |
| </DataTrigger> |
| </DataTrigger> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Bottom"> |
| <DataTrigger Binding="{Settings SidebarPosition}" Value="Bottom"> |
| <Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="BorderThickness" Value="0,1,0,0" TargetName="BorderContentHolder" /> |
| <Setter Property="BorderThickness" Value="0,1,0,0" TargetName="BorderContentHolder" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" /> |
. | <Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ListSideBarItems" /> |
| <Setter Property="DockPanel.Dock" Value="Left" TargetName="ScrollSidebarItems" /> |
| <Setter Property="ItemsPanel" TargetName="PART_ListSideBarItems"> |
| <Setter Property="Orientation" Value="Horizontal" TargetName="PART_PanelSideBarItems" /> |
| <Setter.Value> |
| |
| <ItemsPanelTemplate> |
| |
| <StackPanel Orientation="Horizontal" /> |
| |
| </ItemsPanelTemplate> |
| |
| </Setter.Value> |
| |
| </Setter> |
| |
| </DataTrigger> |
| </DataTrigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |