| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.Navigation" |
| 4 | > |
| 5 | <Style TargetType="{x:Type local:Navigation}"> |
| 6 | <Setter Property="SnapsToDevicePixels" |
| 7 | Value="true" /> |
| 8 | <Setter Property="MinWidth" Value="44"/> |
| 9 | <Setter Property="Height" Value="auto"/> |
| 10 | <Setter Property="Background" Value="Transparent"/> |
| 11 | <Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
| 12 | <Setter Property="Template"> |
| 13 | <Setter.Value> |
| 14 | <ControlTemplate TargetType="{x:Type local:Navigation}"> |
| 15 | |
| 16 | <Grid Margin="10"> |
| 17 | <Grid.RowDefinitions> |
| 18 | <RowDefinition Height="auto"/> |
| 19 | <RowDefinition Height="*"/> |
| 20 | <RowDefinition Height="auto"/> |
| 21 | |
| 22 | </Grid.RowDefinitions> |
| 23 | <ContentPresenter Content="{TemplateBinding TopExtContent}"/> |
| 24 | <Grid Grid.Row="1" Background="Transparent" x:Name="MenuGrid"> |
| 25 | <Border x:Name="ActiveBlock" Width="5" Height="25" CornerRadius="2" Background="{DynamicResource ThemeBrush}" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="9" RenderTransformOrigin="0,0"> |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | </Border> |
| 33 | <ScrollViewer VerticalScrollBarVisibility="Auto"> |
| 34 | <StackPanel x:Name="ItemsPanel"/> |
| 35 | </ScrollViewer> |
| 36 | </Grid> |
| 37 | |
| 38 | <ContentPresenter Content="{TemplateBinding BottomExtContent}" Grid.Row="2"/> |
| 39 | </Grid> |
| 40 | |
| 41 | |
| 42 | </ControlTemplate> |
| 43 | </Setter.Value> |
| 44 | </Setter> |
| 45 | </Style> |
| 46 | </ResourceDictionary> |