Advertisement
bobmarley12345

WPF style&template dumped via XamlWriter

May 3rd, 2023
1,487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 136.82 KB | None | 0 0
  1. <!-- BEGIN STYLES -->
  2. <!-- STYLE FOR TextBlock (Actual Style) -->
  3. <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  5.     <Style.Resources>
  6.         <ResourceDictionary />
  7.     </Style.Resources>
  8.     <Setter Property="TextBlock.TextWrapping">
  9.         <Setter.Value>
  10.             <x:Static Member="TextWrapping.NoWrap" />
  11.         </Setter.Value>
  12.     </Setter>
  13.     <Setter Property="TextBlock.TextTrimming">
  14.         <Setter.Value>
  15.             <x:Static Member="TextTrimming.None" />
  16.         </Setter.Value>
  17.     </Setter>
  18. </Style>
  19.  
  20.  
  21. <!-- STYLE FOR ExtendedTreeView (Actual Style) -->
  22. <Style TargetType="mcnbtec:ExtendedTreeView"
  23.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  24.    xmlns:mcnbtec="clr-namespace:MCNBTEditor.Controls;assembly=MCNBTEditor"
  25.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  26.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  27.     <Style.BasedOn>
  28.         <Style TargetType="TreeView">
  29.             <Style.Triggers>
  30.                 <Trigger Property="VirtualizingPanel.IsVirtualizing">
  31.                     <Setter Property="ItemsControl.ItemsPanel">
  32.                         <Setter.Value>
  33.                             <ItemsPanelTemplate>
  34.                                 <VirtualizingStackPanel IsItemsHost="True" />
  35.                             </ItemsPanelTemplate>
  36.                         </Setter.Value>
  37.                     </Setter>
  38.                     <Trigger.Value>
  39.                         <s:Boolean>True</s:Boolean>
  40.                     </Trigger.Value>
  41.                 </Trigger>
  42.             </Style.Triggers>
  43.             <Style.Resources>
  44.                 <ResourceDictionary />
  45.             </Style.Resources>
  46.             <Setter Property="Panel.Background">
  47.                 <Setter.Value>
  48.                     <DynamicResource ResourceKey="{x:Static SystemColors.WindowBrushKey}" />
  49.                 </Setter.Value>
  50.             </Setter>
  51.             <Setter Property="Border.BorderBrush">
  52.                 <Setter.Value>
  53.                     <SolidColorBrush>#FF828790</SolidColorBrush>
  54.                 </Setter.Value>
  55.             </Setter>
  56.             <Setter Property="Border.BorderThickness">
  57.                 <Setter.Value>
  58.                     <Thickness>1,1,1,1</Thickness>
  59.                 </Setter.Value>
  60.             </Setter>
  61.             <Setter Property="Control.Padding">
  62.                 <Setter.Value>
  63.                     <Thickness>1,1,1,1</Thickness>
  64.                 </Setter.Value>
  65.             </Setter>
  66.             <Setter Property="TextElement.Foreground">
  67.                 <Setter.Value>
  68.                     <DynamicResource ResourceKey="{x:Static SystemColors.ControlTextBrushKey}" />
  69.                 </Setter.Value>
  70.             </Setter>
  71.             <Setter Property="ScrollViewer.HorizontalScrollBarVisibility">
  72.                 <Setter.Value>
  73.                     <x:Static Member="ScrollBarVisibility.Auto" />
  74.                 </Setter.Value>
  75.             </Setter>
  76.             <Setter Property="ScrollViewer.VerticalScrollBarVisibility">
  77.                 <Setter.Value>
  78.                     <x:Static Member="ScrollBarVisibility.Auto" />
  79.                 </Setter.Value>
  80.             </Setter>
  81.             <Setter Property="ScrollViewer.PanningMode">
  82.                 <Setter.Value>
  83.                     <x:Static Member="PanningMode.Both" />
  84.                 </Setter.Value>
  85.             </Setter>
  86.             <Setter Property="Stylus.IsFlicksEnabled">
  87.                 <Setter.Value>
  88.                     <s:Boolean>False</s:Boolean>
  89.                 </Setter.Value>
  90.             </Setter>
  91.             <Setter Property="Control.VerticalContentAlignment">
  92.                 <Setter.Value>
  93.                     <x:Static Member="VerticalAlignment.Center" />
  94.                 </Setter.Value>
  95.             </Setter>
  96.             <Setter Property="Control.Template">
  97.                 <Setter.Value>
  98.                     <ControlTemplate TargetType="TreeView">
  99.                         <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  100.                            BorderBrush="{TemplateBinding Border.BorderBrush}" Name="Bd"
  101.                            SnapsToDevicePixels="True">
  102.                             <ScrollViewer CanContentScroll="False"
  103.                                HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
  104.                                VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
  105.                                Background="{TemplateBinding Panel.Background}"
  106.                                Padding="{TemplateBinding Control.Padding}" Name="_tv_scrollviewer_"
  107.                                SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  108.                                Focusable="False">
  109.                                 <ItemsPresenter />
  110.                             </ScrollViewer>
  111.                         </Border>
  112.                         <ControlTemplate.Triggers>
  113.                             <Trigger Property="UIElement.IsEnabled">
  114.                                 <Setter Property="Panel.Background" TargetName="Bd">
  115.                                     <Setter.Value>
  116.                                         <DynamicResource
  117.                                            ResourceKey="{x:Static SystemColors.ControlBrushKey}" />
  118.                                     </Setter.Value>
  119.                                 </Setter>
  120.                                 <Trigger.Value>
  121.                                     <s:Boolean>False</s:Boolean>
  122.                                 </Trigger.Value>
  123.                             </Trigger>
  124.                             <Trigger Property="VirtualizingPanel.IsVirtualizing">
  125.                                 <Setter Property="ScrollViewer.CanContentScroll"
  126.                                    TargetName="_tv_scrollviewer_">
  127.                                     <Setter.Value>
  128.                                         <s:Boolean>True</s:Boolean>
  129.                                     </Setter.Value>
  130.                                 </Setter>
  131.                                 <Trigger.Value>
  132.                                     <s:Boolean>True</s:Boolean>
  133.                                 </Trigger.Value>
  134.                             </Trigger>
  135.                         </ControlTemplate.Triggers>
  136.                     </ControlTemplate>
  137.                 </Setter.Value>
  138.             </Setter>
  139.         </Style>
  140.     </Style.BasedOn>
  141.     <Style.Resources>
  142.         <ResourceDictionary />
  143.     </Style.Resources>
  144. </Style>
  145.  
  146.  
  147. <!-- STYLE FOR TextBlock (Actual Style) -->
  148. <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  149.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  150.     <Style.Resources>
  151.         <ResourceDictionary />
  152.     </Style.Resources>
  153.     <Setter Property="TextBlock.TextWrapping">
  154.         <Setter.Value>
  155.             <x:Static Member="TextWrapping.NoWrap" />
  156.         </Setter.Value>
  157.     </Setter>
  158.     <Setter Property="TextBlock.TextTrimming">
  159.         <Setter.Value>
  160.             <x:Static Member="TextTrimming.None" />
  161.         </Setter.Value>
  162.     </Setter>
  163. </Style>
  164.  
  165.  
  166. <!-- STYLE FOR TextBlock (Actual Style) -->
  167. <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  168.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  169.     <Style.Resources>
  170.         <ResourceDictionary />
  171.     </Style.Resources>
  172.     <Setter Property="TextBlock.TextWrapping">
  173.         <Setter.Value>
  174.             <x:Static Member="TextWrapping.NoWrap" />
  175.         </Setter.Value>
  176.     </Setter>
  177.     <Setter Property="TextBlock.TextTrimming">
  178.         <Setter.Value>
  179.             <x:Static Member="TextTrimming.None" />
  180.         </Setter.Value>
  181.     </Setter>
  182. </Style>
  183.  
  184.  
  185. <!-- STYLE FOR ExtendedListBox (Actual Style) FAILED: Cannot serialize a non-public type
  186. 'System.Windows.Media.Imaging.BitmapFrameDecode'. -->
  187.  
  188.  
  189. <!-- BEGIN TEMPLATES -->
  190. <!-- CONTROLTEMPLATE FOR Menu -->
  191. <ControlTemplate TargetType="Menu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  192.     <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  193.        Padding="{TemplateBinding Control.Padding}"
  194.        BorderBrush="{TemplateBinding Border.BorderBrush}"
  195.        Background="{TemplateBinding Panel.Background}" SnapsToDevicePixels="True">
  196.         <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
  197.     </Border>
  198. </ControlTemplate>
  199.  
  200.  
  201. <!-- CONTROLTEMPLATE FOR MenuItem -->
  202. <ControlTemplate TargetType="MenuItem"
  203.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  204.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  205.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  206.     <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  207.        BorderBrush="{TemplateBinding Border.BorderBrush}"
  208.        Background="{TemplateBinding Panel.Background}" Name="templateRoot"
  209.        SnapsToDevicePixels="True">
  210.         <Grid VerticalAlignment="Center">
  211.             <Grid.ColumnDefinitions>
  212.                 <ColumnDefinition Width="Auto" />
  213.                 <ColumnDefinition Width="Auto" />
  214.             </Grid.ColumnDefinitions>
  215.             <ContentPresenter Content="{TemplateBinding MenuItem.Icon}" ContentSource="Icon"
  216.                Name="Icon" Width="16" Height="16" Margin="3,3,3,3" HorizontalAlignment="Center"
  217.                VerticalAlignment="Center"
  218.                SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
  219.             <Path Data="F1M10,1.2L4.7,9.1 4.5,9.1 0,5.2 1.3,3.5 4.3,6.1 8.3,0 10,1.2z"
  220.                Fill="{TemplateBinding TextElement.Foreground}" Name="GlyphPanel"
  221.                FlowDirection="LeftToRight" Margin="3,3,3,3" VerticalAlignment="Center"
  222.                Visibility="Collapsed" />
  223.             <ContentPresenter RecognizesAccessKey="True"
  224.                Content="{TemplateBinding HeaderedContentControl.Header}"
  225.                ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
  226.                ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
  227.                ContentSource="Header" Margin="{TemplateBinding Control.Padding}"
  228.                SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  229.                Grid.Column="1" />
  230.             <Popup IsOpen="False" Placement="Bottom"
  231.                PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
  232.                AllowsTransparency="True" Name="PART_Popup" Focusable="False">
  233.                 <Border BorderThickness="1,1,1,1" Padding="2,2,2,2" BorderBrush="#FF999999"
  234.                    Background="#FFF0F0F0" Name="SubMenuBorder">
  235.                     <ScrollViewer
  236.                        Style="{DynamicResource {ComponentResourceKey TypeInTargetAssembly=FrameworkElement, ResourceId=MenuScrollViewer}}"
  237.                        Name="SubMenuScrollViewer">
  238.                         <Grid RenderOptions.ClearTypeHint="Enabled">
  239.                             <Canvas Width="0" Height="0" HorizontalAlignment="Left"
  240.                                VerticalAlignment="Top">
  241.                                 <Rectangle Fill="{x:Null}" Name="OpaqueRect" Width="Auto"
  242.                                    Height="Auto" />
  243.                             </Canvas>
  244.                             <Rectangle Fill="#FFD7D7D7" Width="1" Margin="29,2,0,2"
  245.                                HorizontalAlignment="Left" />
  246.                             <ItemsPresenter Name="ItemsPresenter"
  247.                                SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  248.                                KeyboardNavigation.TabNavigation="Cycle"
  249.                                KeyboardNavigation.DirectionalNavigation="Cycle"
  250.                                Grid.IsSharedSizeScope="True" />
  251.                         </Grid>
  252.                     </ScrollViewer>
  253.                 </Border>
  254.             </Popup>
  255.         </Grid>
  256.     </Border>
  257.     <ControlTemplate.Triggers>
  258.         <Trigger Property="MenuItem.IsSuspendingPopupAnimation">
  259.             <Setter Property="Popup.PopupAnimation" TargetName="PART_Popup">
  260.                 <Setter.Value>
  261.                     <x:Static Member="PopupAnimation.None" />
  262.                 </Setter.Value>
  263.             </Setter>
  264.             <Trigger.Value>
  265.                 <s:Boolean>True</s:Boolean>
  266.             </Trigger.Value>
  267.         </Trigger>
  268.         <Trigger Property="MenuItem.Icon">
  269.             <Setter Property="UIElement.Visibility" TargetName="Icon">
  270.                 <Setter.Value>
  271.                     <x:Static Member="Visibility.Collapsed" />
  272.                 </Setter.Value>
  273.             </Setter>
  274.             <Trigger.Value>
  275.                 <x:Null />
  276.             </Trigger.Value>
  277.         </Trigger>
  278.         <Trigger Property="MenuItem.IsChecked">
  279.             <Setter Property="UIElement.Visibility" TargetName="GlyphPanel">
  280.                 <Setter.Value>
  281.                     <x:Static Member="Visibility.Visible" />
  282.                 </Setter.Value>
  283.             </Setter>
  284.             <Setter Property="UIElement.Visibility" TargetName="Icon">
  285.                 <Setter.Value>
  286.                     <x:Static Member="Visibility.Collapsed" />
  287.                 </Setter.Value>
  288.             </Setter>
  289.             <Trigger.Value>
  290.                 <s:Boolean>True</s:Boolean>
  291.             </Trigger.Value>
  292.         </Trigger>
  293.         <Trigger Property="MenuItem.IsHighlighted">
  294.             <Setter Property="Panel.Background" TargetName="templateRoot">
  295.                 <Setter.Value>
  296.                     <SolidColorBrush>#3D26A0DA</SolidColorBrush>
  297.                 </Setter.Value>
  298.             </Setter>
  299.             <Setter Property="Border.BorderBrush" TargetName="templateRoot">
  300.                 <Setter.Value>
  301.                     <SolidColorBrush>#FF26A0DA</SolidColorBrush>
  302.                 </Setter.Value>
  303.             </Setter>
  304.             <Trigger.Value>
  305.                 <s:Boolean>True</s:Boolean>
  306.             </Trigger.Value>
  307.         </Trigger>
  308.         <Trigger Property="UIElement.IsEnabled">
  309.             <Setter Property="TextElement.Foreground" TargetName="templateRoot">
  310.                 <Setter.Value>
  311.                     <SolidColorBrush>#FF707070</SolidColorBrush>
  312.                 </Setter.Value>
  313.             </Setter>
  314.             <Setter Property="Shape.Fill" TargetName="GlyphPanel">
  315.                 <Setter.Value>
  316.                     <SolidColorBrush>#FF707070</SolidColorBrush>
  317.                 </Setter.Value>
  318.             </Setter>
  319.             <Trigger.Value>
  320.                 <s:Boolean>False</s:Boolean>
  321.             </Trigger.Value>
  322.         </Trigger>
  323.         <Trigger Property="ScrollViewer.CanContentScroll" SourceName="SubMenuScrollViewer">
  324.             <Setter Property="Canvas.Top" TargetName="OpaqueRect">
  325.                 <Setter.Value>
  326.                     <Binding Path="VerticalOffset" ElementName="SubMenuScrollViewer" />
  327.                 </Setter.Value>
  328.             </Setter>
  329.             <Setter Property="Canvas.Left" TargetName="OpaqueRect">
  330.                 <Setter.Value>
  331.                     <Binding Path="HorizontalOffset" ElementName="SubMenuScrollViewer" />
  332.                 </Setter.Value>
  333.             </Setter>
  334.             <Trigger.Value>
  335.                 <s:Boolean>False</s:Boolean>
  336.             </Trigger.Value>
  337.         </Trigger>
  338.     </ControlTemplate.Triggers>
  339. </ControlTemplate>
  340.  
  341.  
  342. <!-- CONTROLTEMPLATE FOR ExtendedTreeView -->
  343. <ControlTemplate TargetType="TreeView"
  344.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  345.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  346.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  347.     <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  348.        BorderBrush="{TemplateBinding Border.BorderBrush}" Name="Bd" SnapsToDevicePixels="True">
  349.         <ScrollViewer CanContentScroll="False"
  350.            HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
  351.            VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
  352.            Background="{TemplateBinding Panel.Background}"
  353.            Padding="{TemplateBinding Control.Padding}" Name="_tv_scrollviewer_"
  354.            SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" Focusable="False">
  355.             <ItemsPresenter />
  356.         </ScrollViewer>
  357.     </Border>
  358.     <ControlTemplate.Triggers>
  359.         <Trigger Property="UIElement.IsEnabled">
  360.             <Setter Property="Panel.Background" TargetName="Bd">
  361.                 <Setter.Value>
  362.                     <DynamicResource ResourceKey="{x:Static SystemColors.ControlBrushKey}" />
  363.                 </Setter.Value>
  364.             </Setter>
  365.             <Trigger.Value>
  366.                 <s:Boolean>False</s:Boolean>
  367.             </Trigger.Value>
  368.         </Trigger>
  369.         <Trigger Property="VirtualizingPanel.IsVirtualizing">
  370.             <Setter Property="ScrollViewer.CanContentScroll" TargetName="_tv_scrollviewer_">
  371.                 <Setter.Value>
  372.                     <s:Boolean>True</s:Boolean>
  373.                 </Setter.Value>
  374.             </Setter>
  375.             <Trigger.Value>
  376.                 <s:Boolean>True</s:Boolean>
  377.             </Trigger.Value>
  378.         </Trigger>
  379.     </ControlTemplate.Triggers>
  380. </ControlTemplate>
  381.  
  382.  
  383. <!-- CONTROLTEMPLATE FOR ScrollViewer -->
  384. <ControlTemplate TargetType="ScrollViewer"
  385.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  386.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  387.     <Grid Background="{TemplateBinding Panel.Background}">
  388.         <ColumnDefinition Width="*" />
  389.         <ColumnDefinition Width="Auto" />
  390.         <RowDefinition Height="*" />
  391.         <RowDefinition Height="Auto" />
  392.         <Rectangle Grid.Column="1" Grid.Row="1"
  393.            Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  394.         <ScrollContentPresenter Grid.Column="0" Grid.Row="0"
  395.            Margin="{TemplateBinding Control.Padding}"
  396.            Content="{TemplateBinding ContentControl.Content}"
  397.            ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  398.            CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
  399.         <ScrollBar Grid.Column="1" Grid.Row="0" Minimum="0"
  400.            Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
  401.            ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
  402.            Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  403.            Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}"
  404.            Cursor="Arrow" AutomationProperties.AutomationId="VerticalScrollBar" />
  405.         <ScrollBar Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Minimum="0"
  406.            Maximum="{TemplateBinding ScrollViewer.ScrollableWidth}"
  407.            ViewportSize="{TemplateBinding ScrollViewer.ViewportWidth}"
  408.            Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  409.            Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}"
  410.            Cursor="Arrow" AutomationProperties.AutomationId="HorizontalScrollBar" />
  411.     </Grid>
  412. </ControlTemplate>
  413.  
  414.  
  415. <!-- CONTROLTEMPLATE FOR ScrollBar -->
  416. <ControlTemplate TargetType="ScrollBar"
  417.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  418.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  419.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  420.     <Grid Name="Bg" SnapsToDevicePixels="True">
  421.         <Grid.RowDefinitions>
  422.             <RowDefinition
  423.                MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
  424.             <RowDefinition Height="1E-05*" />
  425.             <RowDefinition
  426.                MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
  427.         </Grid.RowDefinitions>
  428.         <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  429.            BorderBrush="{TemplateBinding Border.BorderBrush}"
  430.            Background="{TemplateBinding Panel.Background}" Grid.Row="1" />
  431.         <RepeatButton Command="ScrollBar.LineUpCommand" Name="PART_LineUpButton"
  432.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
  433.             <RepeatButton.Style>
  434.                 <Style TargetType="RepeatButton">
  435.                     <Style.Resources>
  436.                         <ResourceDictionary />
  437.                     </Style.Resources>
  438.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  439.                         <Setter.Value>
  440.                             <Style TargetType="IFrameworkInputElement">
  441.                                 <Style.Resources>
  442.                                     <ResourceDictionary />
  443.                                 </Style.Resources>
  444.                                 <Setter Property="Control.Template">
  445.                                     <Setter.Value>
  446.                                         <ControlTemplate>
  447.                                             <Rectangle
  448.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  449.                                                StrokeThickness="1" StrokeDashArray="1 2"
  450.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  451.                                         </ControlTemplate>
  452.                                     </Setter.Value>
  453.                                 </Setter>
  454.                             </Style>
  455.                         </Setter.Value>
  456.                     </Setter>
  457.                     <Setter Property="Border.BorderThickness">
  458.                         <Setter.Value>
  459.                             <Thickness>1,1,1,1</Thickness>
  460.                         </Setter.Value>
  461.                     </Setter>
  462.                     <Setter Property="Control.HorizontalContentAlignment">
  463.                         <Setter.Value>
  464.                             <x:Static Member="HorizontalAlignment.Center" />
  465.                         </Setter.Value>
  466.                     </Setter>
  467.                     <Setter Property="Control.VerticalContentAlignment">
  468.                         <Setter.Value>
  469.                             <x:Static Member="VerticalAlignment.Center" />
  470.                         </Setter.Value>
  471.                     </Setter>
  472.                     <Setter Property="Control.Padding">
  473.                         <Setter.Value>
  474.                             <Thickness>1,1,1,1</Thickness>
  475.                         </Setter.Value>
  476.                     </Setter>
  477.                     <Setter Property="UIElement.Focusable">
  478.                         <Setter.Value>
  479.                             <s:Boolean>False</s:Boolean>
  480.                         </Setter.Value>
  481.                     </Setter>
  482.                     <Setter Property="KeyboardNavigation.IsTabStop">
  483.                         <Setter.Value>
  484.                             <s:Boolean>False</s:Boolean>
  485.                         </Setter.Value>
  486.                     </Setter>
  487.                     <Setter Property="Control.Template">
  488.                         <Setter.Value>
  489.                             <ControlTemplate TargetType="RepeatButton">
  490.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  491.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  492.                                     <ContentPresenter
  493.                                        Content="{TemplateBinding ContentControl.Content}"
  494.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  495.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  496.                                        Name="contentPresenter"
  497.                                        Margin="{TemplateBinding Control.Padding}"
  498.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  499.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  500.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  501.                                        Focusable="False" />
  502.                                 </Border>
  503.                                 <ControlTemplate.Triggers>
  504.                                     <Trigger Property="UIElement.IsMouseOver">
  505.                                         <Setter Property="Panel.Background" TargetName="border">
  506.                                             <Setter.Value>
  507.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  508.                                             </Setter.Value>
  509.                                         </Setter>
  510.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  511.                                             <Setter.Value>
  512.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  513.                                             </Setter.Value>
  514.                                         </Setter>
  515.                                         <Trigger.Value>
  516.                                             <s:Boolean>True</s:Boolean>
  517.                                         </Trigger.Value>
  518.                                     </Trigger>
  519.                                     <Trigger Property="ButtonBase.IsPressed">
  520.                                         <Setter Property="Panel.Background" TargetName="border">
  521.                                             <Setter.Value>
  522.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  523.                                             </Setter.Value>
  524.                                         </Setter>
  525.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  526.                                             <Setter.Value>
  527.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  528.                                             </Setter.Value>
  529.                                         </Setter>
  530.                                         <Trigger.Value>
  531.                                             <s:Boolean>True</s:Boolean>
  532.                                         </Trigger.Value>
  533.                                     </Trigger>
  534.                                     <Trigger Property="UIElement.IsEnabled">
  535.                                         <Setter Property="UIElement.Opacity"
  536.                                            TargetName="contentPresenter">
  537.                                             <Setter.Value>
  538.                                                 <s:Double>0.56</s:Double>
  539.                                             </Setter.Value>
  540.                                         </Setter>
  541.                                         <Setter Property="Panel.Background" TargetName="border">
  542.                                             <Setter.Value>
  543.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  544.                                             </Setter.Value>
  545.                                         </Setter>
  546.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  547.                                             <Setter.Value>
  548.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  549.                                             </Setter.Value>
  550.                                         </Setter>
  551.                                         <Trigger.Value>
  552.                                             <s:Boolean>False</s:Boolean>
  553.                                         </Trigger.Value>
  554.                                     </Trigger>
  555.                                 </ControlTemplate.Triggers>
  556.                             </ControlTemplate>
  557.                         </Setter.Value>
  558.                     </Setter>
  559.                 </Style>
  560.             </RepeatButton.Style>
  561.             <Path
  562.                Data="M0,4C0,4 0,6 0,6 0,6 3.5,2.5 3.5,2.5 3.5,2.5 7,6 7,6 7,6 7,4 7,4 7,4 3.5,0.5 3.5,0.5 3.5,0.5 0,4 0,4z"
  563.                Stretch="Uniform" Fill="#FF606060" Name="ArrowTop" Margin="3,4,3,3" />
  564.         </RepeatButton>
  565.         <Track IsDirectionReversed="True" Name="PART_Track"
  566.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="1">
  567.             <Track.DecreaseRepeatButton>
  568.                 <RepeatButton Command="ScrollBar.PageUpCommand">
  569.                     <RepeatButton.Style>
  570.                         <Style TargetType="RepeatButton">
  571.                             <Style.Resources>
  572.                                 <ResourceDictionary />
  573.                             </Style.Resources>
  574.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  575.                                 <Setter.Value>
  576.                                     <s:Boolean>True</s:Boolean>
  577.                                 </Setter.Value>
  578.                             </Setter>
  579.                             <Setter Property="Panel.Background">
  580.                                 <Setter.Value>
  581.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  582.                                 </Setter.Value>
  583.                             </Setter>
  584.                             <Setter Property="UIElement.Focusable">
  585.                                 <Setter.Value>
  586.                                     <s:Boolean>False</s:Boolean>
  587.                                 </Setter.Value>
  588.                             </Setter>
  589.                             <Setter Property="KeyboardNavigation.IsTabStop">
  590.                                 <Setter.Value>
  591.                                     <s:Boolean>False</s:Boolean>
  592.                                 </Setter.Value>
  593.                             </Setter>
  594.                             <Setter Property="Control.Template">
  595.                                 <Setter.Value>
  596.                                     <ControlTemplate TargetType="RepeatButton">
  597.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  598.                                            Width="{TemplateBinding FrameworkElement.Width}"
  599.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  600.                                     </ControlTemplate>
  601.                                 </Setter.Value>
  602.                             </Setter>
  603.                         </Style>
  604.                     </RepeatButton.Style>
  605.                 </RepeatButton>
  606.             </Track.DecreaseRepeatButton>
  607.             <Track.Thumb>
  608.                 <Thumb>
  609.                     <Thumb.Style>
  610.                         <Style TargetType="Thumb">
  611.                             <Style.Resources>
  612.                                 <ResourceDictionary />
  613.                             </Style.Resources>
  614.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  615.                                 <Setter.Value>
  616.                                     <s:Boolean>True</s:Boolean>
  617.                                 </Setter.Value>
  618.                             </Setter>
  619.                             <Setter Property="KeyboardNavigation.IsTabStop">
  620.                                 <Setter.Value>
  621.                                     <s:Boolean>False</s:Boolean>
  622.                                 </Setter.Value>
  623.                             </Setter>
  624.                             <Setter Property="Control.Template">
  625.                                 <Setter.Value>
  626.                                     <ControlTemplate TargetType="Thumb">
  627.                                         <Rectangle Fill="#FFCDCDCD" Name="rectangle"
  628.                                            Width="{TemplateBinding FrameworkElement.Width}"
  629.                                            Height="{TemplateBinding FrameworkElement.Height}"
  630.                                            SnapsToDevicePixels="True" />
  631.                                         <ControlTemplate.Triggers>
  632.                                             <Trigger Property="UIElement.IsMouseOver">
  633.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  634.                                                     <Setter.Value>
  635.                                                         <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
  636.                                                     </Setter.Value>
  637.                                                 </Setter>
  638.                                                 <Trigger.Value>
  639.                                                     <s:Boolean>True</s:Boolean>
  640.                                                 </Trigger.Value>
  641.                                             </Trigger>
  642.                                             <Trigger Property="Thumb.IsDragging">
  643.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  644.                                                     <Setter.Value>
  645.                                                         <SolidColorBrush>#FF606060</SolidColorBrush>
  646.                                                     </Setter.Value>
  647.                                                 </Setter>
  648.                                                 <Trigger.Value>
  649.                                                     <s:Boolean>True</s:Boolean>
  650.                                                 </Trigger.Value>
  651.                                             </Trigger>
  652.                                         </ControlTemplate.Triggers>
  653.                                     </ControlTemplate>
  654.                                 </Setter.Value>
  655.                             </Setter>
  656.                         </Style>
  657.                     </Thumb.Style>
  658.                 </Thumb>
  659.             </Track.Thumb>
  660.             <Track.IncreaseRepeatButton>
  661.                 <RepeatButton Command="ScrollBar.PageDownCommand">
  662.                     <RepeatButton.Style>
  663.                         <Style TargetType="RepeatButton">
  664.                             <Style.Resources>
  665.                                 <ResourceDictionary />
  666.                             </Style.Resources>
  667.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  668.                                 <Setter.Value>
  669.                                     <s:Boolean>True</s:Boolean>
  670.                                 </Setter.Value>
  671.                             </Setter>
  672.                             <Setter Property="Panel.Background">
  673.                                 <Setter.Value>
  674.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  675.                                 </Setter.Value>
  676.                             </Setter>
  677.                             <Setter Property="UIElement.Focusable">
  678.                                 <Setter.Value>
  679.                                     <s:Boolean>False</s:Boolean>
  680.                                 </Setter.Value>
  681.                             </Setter>
  682.                             <Setter Property="KeyboardNavigation.IsTabStop">
  683.                                 <Setter.Value>
  684.                                     <s:Boolean>False</s:Boolean>
  685.                                 </Setter.Value>
  686.                             </Setter>
  687.                             <Setter Property="Control.Template">
  688.                                 <Setter.Value>
  689.                                     <ControlTemplate TargetType="RepeatButton">
  690.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  691.                                            Width="{TemplateBinding FrameworkElement.Width}"
  692.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  693.                                     </ControlTemplate>
  694.                                 </Setter.Value>
  695.                             </Setter>
  696.                         </Style>
  697.                     </RepeatButton.Style>
  698.                 </RepeatButton>
  699.             </Track.IncreaseRepeatButton>
  700.         </Track>
  701.         <RepeatButton Command="ScrollBar.LineDownCommand" Name="PART_LineDownButton"
  702.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="2">
  703.             <RepeatButton.Style>
  704.                 <Style TargetType="RepeatButton">
  705.                     <Style.Resources>
  706.                         <ResourceDictionary />
  707.                     </Style.Resources>
  708.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  709.                         <Setter.Value>
  710.                             <Style TargetType="IFrameworkInputElement">
  711.                                 <Style.Resources>
  712.                                     <ResourceDictionary />
  713.                                 </Style.Resources>
  714.                                 <Setter Property="Control.Template">
  715.                                     <Setter.Value>
  716.                                         <ControlTemplate>
  717.                                             <Rectangle
  718.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  719.                                                StrokeThickness="1" StrokeDashArray="1 2"
  720.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  721.                                         </ControlTemplate>
  722.                                     </Setter.Value>
  723.                                 </Setter>
  724.                             </Style>
  725.                         </Setter.Value>
  726.                     </Setter>
  727.                     <Setter Property="Border.BorderThickness">
  728.                         <Setter.Value>
  729.                             <Thickness>1,1,1,1</Thickness>
  730.                         </Setter.Value>
  731.                     </Setter>
  732.                     <Setter Property="Control.HorizontalContentAlignment">
  733.                         <Setter.Value>
  734.                             <x:Static Member="HorizontalAlignment.Center" />
  735.                         </Setter.Value>
  736.                     </Setter>
  737.                     <Setter Property="Control.VerticalContentAlignment">
  738.                         <Setter.Value>
  739.                             <x:Static Member="VerticalAlignment.Center" />
  740.                         </Setter.Value>
  741.                     </Setter>
  742.                     <Setter Property="Control.Padding">
  743.                         <Setter.Value>
  744.                             <Thickness>1,1,1,1</Thickness>
  745.                         </Setter.Value>
  746.                     </Setter>
  747.                     <Setter Property="UIElement.Focusable">
  748.                         <Setter.Value>
  749.                             <s:Boolean>False</s:Boolean>
  750.                         </Setter.Value>
  751.                     </Setter>
  752.                     <Setter Property="KeyboardNavigation.IsTabStop">
  753.                         <Setter.Value>
  754.                             <s:Boolean>False</s:Boolean>
  755.                         </Setter.Value>
  756.                     </Setter>
  757.                     <Setter Property="Control.Template">
  758.                         <Setter.Value>
  759.                             <ControlTemplate TargetType="RepeatButton">
  760.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  761.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  762.                                     <ContentPresenter
  763.                                        Content="{TemplateBinding ContentControl.Content}"
  764.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  765.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  766.                                        Name="contentPresenter"
  767.                                        Margin="{TemplateBinding Control.Padding}"
  768.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  769.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  770.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  771.                                        Focusable="False" />
  772.                                 </Border>
  773.                                 <ControlTemplate.Triggers>
  774.                                     <Trigger Property="UIElement.IsMouseOver">
  775.                                         <Setter Property="Panel.Background" TargetName="border">
  776.                                             <Setter.Value>
  777.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  778.                                             </Setter.Value>
  779.                                         </Setter>
  780.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  781.                                             <Setter.Value>
  782.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  783.                                             </Setter.Value>
  784.                                         </Setter>
  785.                                         <Trigger.Value>
  786.                                             <s:Boolean>True</s:Boolean>
  787.                                         </Trigger.Value>
  788.                                     </Trigger>
  789.                                     <Trigger Property="ButtonBase.IsPressed">
  790.                                         <Setter Property="Panel.Background" TargetName="border">
  791.                                             <Setter.Value>
  792.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  793.                                             </Setter.Value>
  794.                                         </Setter>
  795.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  796.                                             <Setter.Value>
  797.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  798.                                             </Setter.Value>
  799.                                         </Setter>
  800.                                         <Trigger.Value>
  801.                                             <s:Boolean>True</s:Boolean>
  802.                                         </Trigger.Value>
  803.                                     </Trigger>
  804.                                     <Trigger Property="UIElement.IsEnabled">
  805.                                         <Setter Property="UIElement.Opacity"
  806.                                            TargetName="contentPresenter">
  807.                                             <Setter.Value>
  808.                                                 <s:Double>0.56</s:Double>
  809.                                             </Setter.Value>
  810.                                         </Setter>
  811.                                         <Setter Property="Panel.Background" TargetName="border">
  812.                                             <Setter.Value>
  813.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  814.                                             </Setter.Value>
  815.                                         </Setter>
  816.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  817.                                             <Setter.Value>
  818.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  819.                                             </Setter.Value>
  820.                                         </Setter>
  821.                                         <Trigger.Value>
  822.                                             <s:Boolean>False</s:Boolean>
  823.                                         </Trigger.Value>
  824.                                     </Trigger>
  825.                                 </ControlTemplate.Triggers>
  826.                             </ControlTemplate>
  827.                         </Setter.Value>
  828.                     </Setter>
  829.                 </Style>
  830.             </RepeatButton.Style>
  831.             <Path
  832.                Data="M0,2.5C0,2.5 0,0.5 0,0.5 0,0.5 3.5,4 3.5,4 3.5,4 7,0.5 7,0.5 7,0.5 7,2.5 7,2.5 7,2.5 3.5,6 3.5,6 3.5,6 0,2.5 0,2.5z"
  833.                Stretch="Uniform" Fill="#FF606060" Name="ArrowBottom" Margin="3,4,3,3" />
  834.         </RepeatButton>
  835.     </Grid>
  836.     <ControlTemplate.Triggers>
  837.         <MultiDataTrigger>
  838.             <MultiDataTrigger.Conditions>
  839.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
  840.                    Value="true" />
  841.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
  842.                    Value="true" />
  843.             </MultiDataTrigger.Conditions>
  844.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  845.                 <Setter.Value>
  846.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  847.                 </Setter.Value>
  848.             </Setter>
  849.         </MultiDataTrigger>
  850.         <MultiDataTrigger>
  851.             <MultiDataTrigger.Conditions>
  852.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
  853.                    Value="true" />
  854.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
  855.                    Value="true" />
  856.             </MultiDataTrigger.Conditions>
  857.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  858.                 <Setter.Value>
  859.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  860.                 </Setter.Value>
  861.             </Setter>
  862.         </MultiDataTrigger>
  863.         <MultiDataTrigger>
  864.             <MultiDataTrigger.Conditions>
  865.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
  866.                    Value="true" />
  867.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
  868.                    Value="false" />
  869.             </MultiDataTrigger.Conditions>
  870.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  871.                 <Setter.Value>
  872.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  873.                 </Setter.Value>
  874.             </Setter>
  875.         </MultiDataTrigger>
  876.         <MultiDataTrigger>
  877.             <MultiDataTrigger.Conditions>
  878.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
  879.                    Value="true" />
  880.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
  881.                    Value="false" />
  882.             </MultiDataTrigger.Conditions>
  883.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  884.                 <Setter.Value>
  885.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  886.                 </Setter.Value>
  887.             </Setter>
  888.         </MultiDataTrigger>
  889.         <Trigger Property="UIElement.IsEnabled">
  890.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  891.                 <Setter.Value>
  892.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  893.                 </Setter.Value>
  894.             </Setter>
  895.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  896.                 <Setter.Value>
  897.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  898.                 </Setter.Value>
  899.             </Setter>
  900.             <Trigger.Value>
  901.                 <s:Boolean>False</s:Boolean>
  902.             </Trigger.Value>
  903.         </Trigger>
  904.     </ControlTemplate.Triggers>
  905. </ControlTemplate>
  906.  
  907.  
  908. <!-- CONTROLTEMPLATE FOR ScrollBar -->
  909. <ControlTemplate TargetType="ScrollBar"
  910.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  911.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  912.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  913.     <Grid Name="Bg" SnapsToDevicePixels="True">
  914.         <Grid.ColumnDefinitions>
  915.             <ColumnDefinition
  916.                MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
  917.             <ColumnDefinition Width="1E-05*" />
  918.             <ColumnDefinition
  919.                MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
  920.         </Grid.ColumnDefinitions>
  921.         <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  922.            BorderBrush="{TemplateBinding Border.BorderBrush}"
  923.            Background="{TemplateBinding Panel.Background}" Grid.Column="1" />
  924.         <RepeatButton Command="ScrollBar.LineLeftCommand" Name="PART_LineLeftButton"
  925.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
  926.             <RepeatButton.Style>
  927.                 <Style TargetType="RepeatButton">
  928.                     <Style.Resources>
  929.                         <ResourceDictionary />
  930.                     </Style.Resources>
  931.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  932.                         <Setter.Value>
  933.                             <Style TargetType="IFrameworkInputElement">
  934.                                 <Style.Resources>
  935.                                     <ResourceDictionary />
  936.                                 </Style.Resources>
  937.                                 <Setter Property="Control.Template">
  938.                                     <Setter.Value>
  939.                                         <ControlTemplate>
  940.                                             <Rectangle
  941.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  942.                                                StrokeThickness="1" StrokeDashArray="1 2"
  943.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  944.                                         </ControlTemplate>
  945.                                     </Setter.Value>
  946.                                 </Setter>
  947.                             </Style>
  948.                         </Setter.Value>
  949.                     </Setter>
  950.                     <Setter Property="Border.BorderThickness">
  951.                         <Setter.Value>
  952.                             <Thickness>1,1,1,1</Thickness>
  953.                         </Setter.Value>
  954.                     </Setter>
  955.                     <Setter Property="Control.HorizontalContentAlignment">
  956.                         <Setter.Value>
  957.                             <x:Static Member="HorizontalAlignment.Center" />
  958.                         </Setter.Value>
  959.                     </Setter>
  960.                     <Setter Property="Control.VerticalContentAlignment">
  961.                         <Setter.Value>
  962.                             <x:Static Member="VerticalAlignment.Center" />
  963.                         </Setter.Value>
  964.                     </Setter>
  965.                     <Setter Property="Control.Padding">
  966.                         <Setter.Value>
  967.                             <Thickness>1,1,1,1</Thickness>
  968.                         </Setter.Value>
  969.                     </Setter>
  970.                     <Setter Property="UIElement.Focusable">
  971.                         <Setter.Value>
  972.                             <s:Boolean>False</s:Boolean>
  973.                         </Setter.Value>
  974.                     </Setter>
  975.                     <Setter Property="KeyboardNavigation.IsTabStop">
  976.                         <Setter.Value>
  977.                             <s:Boolean>False</s:Boolean>
  978.                         </Setter.Value>
  979.                     </Setter>
  980.                     <Setter Property="Control.Template">
  981.                         <Setter.Value>
  982.                             <ControlTemplate TargetType="RepeatButton">
  983.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  984.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  985.                                     <ContentPresenter
  986.                                        Content="{TemplateBinding ContentControl.Content}"
  987.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  988.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  989.                                        Name="contentPresenter"
  990.                                        Margin="{TemplateBinding Control.Padding}"
  991.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  992.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  993.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  994.                                        Focusable="False" />
  995.                                 </Border>
  996.                                 <ControlTemplate.Triggers>
  997.                                     <Trigger Property="UIElement.IsMouseOver">
  998.                                         <Setter Property="Panel.Background" TargetName="border">
  999.                                             <Setter.Value>
  1000.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1001.                                             </Setter.Value>
  1002.                                         </Setter>
  1003.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1004.                                             <Setter.Value>
  1005.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1006.                                             </Setter.Value>
  1007.                                         </Setter>
  1008.                                         <Trigger.Value>
  1009.                                             <s:Boolean>True</s:Boolean>
  1010.                                         </Trigger.Value>
  1011.                                     </Trigger>
  1012.                                     <Trigger Property="ButtonBase.IsPressed">
  1013.                                         <Setter Property="Panel.Background" TargetName="border">
  1014.                                             <Setter.Value>
  1015.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1016.                                             </Setter.Value>
  1017.                                         </Setter>
  1018.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1019.                                             <Setter.Value>
  1020.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1021.                                             </Setter.Value>
  1022.                                         </Setter>
  1023.                                         <Trigger.Value>
  1024.                                             <s:Boolean>True</s:Boolean>
  1025.                                         </Trigger.Value>
  1026.                                     </Trigger>
  1027.                                     <Trigger Property="UIElement.IsEnabled">
  1028.                                         <Setter Property="UIElement.Opacity"
  1029.                                            TargetName="contentPresenter">
  1030.                                             <Setter.Value>
  1031.                                                 <s:Double>0.56</s:Double>
  1032.                                             </Setter.Value>
  1033.                                         </Setter>
  1034.                                         <Setter Property="Panel.Background" TargetName="border">
  1035.                                             <Setter.Value>
  1036.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1037.                                             </Setter.Value>
  1038.                                         </Setter>
  1039.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1040.                                             <Setter.Value>
  1041.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1042.                                             </Setter.Value>
  1043.                                         </Setter>
  1044.                                         <Trigger.Value>
  1045.                                             <s:Boolean>False</s:Boolean>
  1046.                                         </Trigger.Value>
  1047.                                     </Trigger>
  1048.                                 </ControlTemplate.Triggers>
  1049.                             </ControlTemplate>
  1050.                         </Setter.Value>
  1051.                     </Setter>
  1052.                 </Style>
  1053.             </RepeatButton.Style>
  1054.             <Path
  1055.                Data="M3.18,7C3.18,7 5,7 5,7 5,7 1.81,3.5 1.81,3.5 1.81,3.5 5,0 5,0 5,0 3.18,0 3.18,0 3.18,0 0,3.5 0,3.5 0,3.5 3.18,7 3.18,7z"
  1056.                Stretch="Uniform" Fill="#FF606060" Name="ArrowLeft" Margin="3,3,3,3" />
  1057.         </RepeatButton>
  1058.         <Track Name="PART_Track" IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="1">
  1059.             <Track.DecreaseRepeatButton>
  1060.                 <RepeatButton Command="ScrollBar.PageLeftCommand">
  1061.                     <RepeatButton.Style>
  1062.                         <Style TargetType="RepeatButton">
  1063.                             <Style.Resources>
  1064.                                 <ResourceDictionary />
  1065.                             </Style.Resources>
  1066.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1067.                                 <Setter.Value>
  1068.                                     <s:Boolean>True</s:Boolean>
  1069.                                 </Setter.Value>
  1070.                             </Setter>
  1071.                             <Setter Property="Panel.Background">
  1072.                                 <Setter.Value>
  1073.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  1074.                                 </Setter.Value>
  1075.                             </Setter>
  1076.                             <Setter Property="UIElement.Focusable">
  1077.                                 <Setter.Value>
  1078.                                     <s:Boolean>False</s:Boolean>
  1079.                                 </Setter.Value>
  1080.                             </Setter>
  1081.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1082.                                 <Setter.Value>
  1083.                                     <s:Boolean>False</s:Boolean>
  1084.                                 </Setter.Value>
  1085.                             </Setter>
  1086.                             <Setter Property="Control.Template">
  1087.                                 <Setter.Value>
  1088.                                     <ControlTemplate TargetType="RepeatButton">
  1089.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  1090.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1091.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  1092.                                     </ControlTemplate>
  1093.                                 </Setter.Value>
  1094.                             </Setter>
  1095.                         </Style>
  1096.                     </RepeatButton.Style>
  1097.                 </RepeatButton>
  1098.             </Track.DecreaseRepeatButton>
  1099.             <Track.Thumb>
  1100.                 <Thumb>
  1101.                     <Thumb.Style>
  1102.                         <Style TargetType="Thumb">
  1103.                             <Style.Resources>
  1104.                                 <ResourceDictionary />
  1105.                             </Style.Resources>
  1106.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1107.                                 <Setter.Value>
  1108.                                     <s:Boolean>True</s:Boolean>
  1109.                                 </Setter.Value>
  1110.                             </Setter>
  1111.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1112.                                 <Setter.Value>
  1113.                                     <s:Boolean>False</s:Boolean>
  1114.                                 </Setter.Value>
  1115.                             </Setter>
  1116.                             <Setter Property="Control.Template">
  1117.                                 <Setter.Value>
  1118.                                     <ControlTemplate TargetType="Thumb">
  1119.                                         <Rectangle Fill="#FFCDCDCD" Name="rectangle"
  1120.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1121.                                            Height="{TemplateBinding FrameworkElement.Height}"
  1122.                                            SnapsToDevicePixels="True" />
  1123.                                         <ControlTemplate.Triggers>
  1124.                                             <Trigger Property="UIElement.IsMouseOver">
  1125.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  1126.                                                     <Setter.Value>
  1127.                                                         <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
  1128.                                                     </Setter.Value>
  1129.                                                 </Setter>
  1130.                                                 <Trigger.Value>
  1131.                                                     <s:Boolean>True</s:Boolean>
  1132.                                                 </Trigger.Value>
  1133.                                             </Trigger>
  1134.                                             <Trigger Property="Thumb.IsDragging">
  1135.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  1136.                                                     <Setter.Value>
  1137.                                                         <SolidColorBrush>#FF606060</SolidColorBrush>
  1138.                                                     </Setter.Value>
  1139.                                                 </Setter>
  1140.                                                 <Trigger.Value>
  1141.                                                     <s:Boolean>True</s:Boolean>
  1142.                                                 </Trigger.Value>
  1143.                                             </Trigger>
  1144.                                         </ControlTemplate.Triggers>
  1145.                                     </ControlTemplate>
  1146.                                 </Setter.Value>
  1147.                             </Setter>
  1148.                         </Style>
  1149.                     </Thumb.Style>
  1150.                 </Thumb>
  1151.             </Track.Thumb>
  1152.             <Track.IncreaseRepeatButton>
  1153.                 <RepeatButton Command="ScrollBar.PageRightCommand">
  1154.                     <RepeatButton.Style>
  1155.                         <Style TargetType="RepeatButton">
  1156.                             <Style.Resources>
  1157.                                 <ResourceDictionary />
  1158.                             </Style.Resources>
  1159.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1160.                                 <Setter.Value>
  1161.                                     <s:Boolean>True</s:Boolean>
  1162.                                 </Setter.Value>
  1163.                             </Setter>
  1164.                             <Setter Property="Panel.Background">
  1165.                                 <Setter.Value>
  1166.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  1167.                                 </Setter.Value>
  1168.                             </Setter>
  1169.                             <Setter Property="UIElement.Focusable">
  1170.                                 <Setter.Value>
  1171.                                     <s:Boolean>False</s:Boolean>
  1172.                                 </Setter.Value>
  1173.                             </Setter>
  1174.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1175.                                 <Setter.Value>
  1176.                                     <s:Boolean>False</s:Boolean>
  1177.                                 </Setter.Value>
  1178.                             </Setter>
  1179.                             <Setter Property="Control.Template">
  1180.                                 <Setter.Value>
  1181.                                     <ControlTemplate TargetType="RepeatButton">
  1182.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  1183.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1184.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  1185.                                     </ControlTemplate>
  1186.                                 </Setter.Value>
  1187.                             </Setter>
  1188.                         </Style>
  1189.                     </RepeatButton.Style>
  1190.                 </RepeatButton>
  1191.             </Track.IncreaseRepeatButton>
  1192.         </Track>
  1193.         <RepeatButton Command="ScrollBar.LineRightCommand" Name="PART_LineRightButton"
  1194.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="2">
  1195.             <RepeatButton.Style>
  1196.                 <Style TargetType="RepeatButton">
  1197.                     <Style.Resources>
  1198.                         <ResourceDictionary />
  1199.                     </Style.Resources>
  1200.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  1201.                         <Setter.Value>
  1202.                             <Style TargetType="IFrameworkInputElement">
  1203.                                 <Style.Resources>
  1204.                                     <ResourceDictionary />
  1205.                                 </Style.Resources>
  1206.                                 <Setter Property="Control.Template">
  1207.                                     <Setter.Value>
  1208.                                         <ControlTemplate>
  1209.                                             <Rectangle
  1210.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  1211.                                                StrokeThickness="1" StrokeDashArray="1 2"
  1212.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  1213.                                         </ControlTemplate>
  1214.                                     </Setter.Value>
  1215.                                 </Setter>
  1216.                             </Style>
  1217.                         </Setter.Value>
  1218.                     </Setter>
  1219.                     <Setter Property="Border.BorderThickness">
  1220.                         <Setter.Value>
  1221.                             <Thickness>1,1,1,1</Thickness>
  1222.                         </Setter.Value>
  1223.                     </Setter>
  1224.                     <Setter Property="Control.HorizontalContentAlignment">
  1225.                         <Setter.Value>
  1226.                             <x:Static Member="HorizontalAlignment.Center" />
  1227.                         </Setter.Value>
  1228.                     </Setter>
  1229.                     <Setter Property="Control.VerticalContentAlignment">
  1230.                         <Setter.Value>
  1231.                             <x:Static Member="VerticalAlignment.Center" />
  1232.                         </Setter.Value>
  1233.                     </Setter>
  1234.                     <Setter Property="Control.Padding">
  1235.                         <Setter.Value>
  1236.                             <Thickness>1,1,1,1</Thickness>
  1237.                         </Setter.Value>
  1238.                     </Setter>
  1239.                     <Setter Property="UIElement.Focusable">
  1240.                         <Setter.Value>
  1241.                             <s:Boolean>False</s:Boolean>
  1242.                         </Setter.Value>
  1243.                     </Setter>
  1244.                     <Setter Property="KeyboardNavigation.IsTabStop">
  1245.                         <Setter.Value>
  1246.                             <s:Boolean>False</s:Boolean>
  1247.                         </Setter.Value>
  1248.                     </Setter>
  1249.                     <Setter Property="Control.Template">
  1250.                         <Setter.Value>
  1251.                             <ControlTemplate TargetType="RepeatButton">
  1252.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  1253.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  1254.                                     <ContentPresenter
  1255.                                        Content="{TemplateBinding ContentControl.Content}"
  1256.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  1257.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  1258.                                        Name="contentPresenter"
  1259.                                        Margin="{TemplateBinding Control.Padding}"
  1260.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  1261.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  1262.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  1263.                                        Focusable="False" />
  1264.                                 </Border>
  1265.                                 <ControlTemplate.Triggers>
  1266.                                     <Trigger Property="UIElement.IsMouseOver">
  1267.                                         <Setter Property="Panel.Background" TargetName="border">
  1268.                                             <Setter.Value>
  1269.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1270.                                             </Setter.Value>
  1271.                                         </Setter>
  1272.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1273.                                             <Setter.Value>
  1274.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1275.                                             </Setter.Value>
  1276.                                         </Setter>
  1277.                                         <Trigger.Value>
  1278.                                             <s:Boolean>True</s:Boolean>
  1279.                                         </Trigger.Value>
  1280.                                     </Trigger>
  1281.                                     <Trigger Property="ButtonBase.IsPressed">
  1282.                                         <Setter Property="Panel.Background" TargetName="border">
  1283.                                             <Setter.Value>
  1284.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1285.                                             </Setter.Value>
  1286.                                         </Setter>
  1287.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1288.                                             <Setter.Value>
  1289.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1290.                                             </Setter.Value>
  1291.                                         </Setter>
  1292.                                         <Trigger.Value>
  1293.                                             <s:Boolean>True</s:Boolean>
  1294.                                         </Trigger.Value>
  1295.                                     </Trigger>
  1296.                                     <Trigger Property="UIElement.IsEnabled">
  1297.                                         <Setter Property="UIElement.Opacity"
  1298.                                            TargetName="contentPresenter">
  1299.                                             <Setter.Value>
  1300.                                                 <s:Double>0.56</s:Double>
  1301.                                             </Setter.Value>
  1302.                                         </Setter>
  1303.                                         <Setter Property="Panel.Background" TargetName="border">
  1304.                                             <Setter.Value>
  1305.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1306.                                             </Setter.Value>
  1307.                                         </Setter>
  1308.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1309.                                             <Setter.Value>
  1310.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1311.                                             </Setter.Value>
  1312.                                         </Setter>
  1313.                                         <Trigger.Value>
  1314.                                             <s:Boolean>False</s:Boolean>
  1315.                                         </Trigger.Value>
  1316.                                     </Trigger>
  1317.                                 </ControlTemplate.Triggers>
  1318.                             </ControlTemplate>
  1319.                         </Setter.Value>
  1320.                     </Setter>
  1321.                 </Style>
  1322.             </RepeatButton.Style>
  1323.             <Path
  1324.                Data="M1.81,7C1.81,7 0,7 0,7 0,7 3.18,3.5 3.18,3.5 3.18,3.5 0,0 0,0 0,0 1.81,0 1.81,0 1.81,0 5,3.5 5,3.5 5,3.5 1.81,7 1.81,7z"
  1325.                Stretch="Uniform" Fill="#FF606060" Name="ArrowRight" Margin="3,3,3,3" />
  1326.         </RepeatButton>
  1327.     </Grid>
  1328.     <ControlTemplate.Triggers>
  1329.         <MultiDataTrigger>
  1330.             <MultiDataTrigger.Conditions>
  1331.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
  1332.                    Value="true" />
  1333.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
  1334.                    Value="true" />
  1335.             </MultiDataTrigger.Conditions>
  1336.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  1337.                 <Setter.Value>
  1338.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  1339.                 </Setter.Value>
  1340.             </Setter>
  1341.         </MultiDataTrigger>
  1342.         <MultiDataTrigger>
  1343.             <MultiDataTrigger.Conditions>
  1344.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
  1345.                    Value="true" />
  1346.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
  1347.                    Value="true" />
  1348.             </MultiDataTrigger.Conditions>
  1349.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  1350.                 <Setter.Value>
  1351.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  1352.                 </Setter.Value>
  1353.             </Setter>
  1354.         </MultiDataTrigger>
  1355.         <MultiDataTrigger>
  1356.             <MultiDataTrigger.Conditions>
  1357.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
  1358.                    Value="true" />
  1359.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
  1360.                    Value="false" />
  1361.             </MultiDataTrigger.Conditions>
  1362.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  1363.                 <Setter.Value>
  1364.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  1365.                 </Setter.Value>
  1366.             </Setter>
  1367.         </MultiDataTrigger>
  1368.         <MultiDataTrigger>
  1369.             <MultiDataTrigger.Conditions>
  1370.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
  1371.                    Value="true" />
  1372.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
  1373.                    Value="false" />
  1374.             </MultiDataTrigger.Conditions>
  1375.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  1376.                 <Setter.Value>
  1377.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  1378.                 </Setter.Value>
  1379.             </Setter>
  1380.         </MultiDataTrigger>
  1381.         <Trigger Property="UIElement.IsEnabled">
  1382.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  1383.                 <Setter.Value>
  1384.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  1385.                 </Setter.Value>
  1386.             </Setter>
  1387.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  1388.                 <Setter.Value>
  1389.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  1390.                 </Setter.Value>
  1391.             </Setter>
  1392.             <Trigger.Value>
  1393.                 <s:Boolean>False</s:Boolean>
  1394.             </Trigger.Value>
  1395.         </Trigger>
  1396.     </ControlTemplate.Triggers>
  1397. </ControlTemplate>
  1398.  
  1399.  
  1400. <!-- CONTROLTEMPLATE FOR ExtendedListBox -->
  1401. <ControlTemplate TargetType="ListBox"
  1402.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  1403.    xmlns:s="clr-namespace:System;assembly=mscorlib">
  1404.     <Border BorderThickness="{TemplateBinding Border.BorderThickness}" Padding="1,1,1,1"
  1405.        BorderBrush="{TemplateBinding Border.BorderBrush}"
  1406.        Background="{TemplateBinding Panel.Background}" Name="Bd" SnapsToDevicePixels="True">
  1407.         <ScrollViewer Padding="{TemplateBinding Control.Padding}" Focusable="False">
  1408.             <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
  1409.         </ScrollViewer>
  1410.     </Border>
  1411.     <ControlTemplate.Triggers>
  1412.         <Trigger Property="UIElement.IsEnabled">
  1413.             <Setter Property="Panel.Background" TargetName="Bd">
  1414.                 <Setter.Value>
  1415.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  1416.                 </Setter.Value>
  1417.             </Setter>
  1418.             <Setter Property="Border.BorderBrush" TargetName="Bd">
  1419.                 <Setter.Value>
  1420.                     <SolidColorBrush>#FFD9D9D9</SolidColorBrush>
  1421.                 </Setter.Value>
  1422.             </Setter>
  1423.             <Trigger.Value>
  1424.                 <s:Boolean>False</s:Boolean>
  1425.             </Trigger.Value>
  1426.         </Trigger>
  1427.         <MultiTrigger>
  1428.             <MultiTrigger.Conditions>
  1429.                 <Condition Property="ItemsControl.IsGrouping">
  1430.                     <Condition.Value>
  1431.                         <s:Boolean>True</s:Boolean>
  1432.                     </Condition.Value>
  1433.                 </Condition>
  1434.                 <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping">
  1435.                     <Condition.Value>
  1436.                         <s:Boolean>False</s:Boolean>
  1437.                     </Condition.Value>
  1438.                 </Condition>
  1439.             </MultiTrigger.Conditions>
  1440.             <Setter Property="ScrollViewer.CanContentScroll">
  1441.                 <Setter.Value>
  1442.                     <s:Boolean>False</s:Boolean>
  1443.                 </Setter.Value>
  1444.             </Setter>
  1445.         </MultiTrigger>
  1446.     </ControlTemplate.Triggers>
  1447. </ControlTemplate>
  1448.  
  1449.  
  1450. <!-- CONTROLTEMPLATE FOR ScrollViewer -->
  1451. <ControlTemplate TargetType="ScrollViewer"
  1452.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  1453.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  1454.     <Grid Background="{TemplateBinding Panel.Background}">
  1455.         <ColumnDefinition Width="*" />
  1456.         <ColumnDefinition Width="Auto" />
  1457.         <RowDefinition Height="*" />
  1458.         <RowDefinition Height="Auto" />
  1459.         <Rectangle Grid.Column="1" Grid.Row="1"
  1460.            Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  1461.         <ScrollContentPresenter Grid.Column="0" Grid.Row="0"
  1462.            Margin="{TemplateBinding Control.Padding}"
  1463.            Content="{TemplateBinding ContentControl.Content}"
  1464.            ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  1465.            CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
  1466.         <ScrollBar Grid.Column="1" Grid.Row="0" Minimum="0"
  1467.            Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
  1468.            ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
  1469.            Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  1470.            Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}"
  1471.            Cursor="Arrow" AutomationProperties.AutomationId="VerticalScrollBar" />
  1472.         <ScrollBar Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Minimum="0"
  1473.            Maximum="{TemplateBinding ScrollViewer.ScrollableWidth}"
  1474.            ViewportSize="{TemplateBinding ScrollViewer.ViewportWidth}"
  1475.            Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  1476.            Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}"
  1477.            Cursor="Arrow" AutomationProperties.AutomationId="HorizontalScrollBar" />
  1478.     </Grid>
  1479. </ControlTemplate>
  1480.  
  1481.  
  1482. <!-- CONTROLTEMPLATE FOR ScrollBar -->
  1483. <ControlTemplate TargetType="ScrollBar"
  1484.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  1485.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  1486.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  1487.     <Grid Name="Bg" SnapsToDevicePixels="True">
  1488.         <Grid.RowDefinitions>
  1489.             <RowDefinition
  1490.                MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
  1491.             <RowDefinition Height="1E-05*" />
  1492.             <RowDefinition
  1493.                MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
  1494.         </Grid.RowDefinitions>
  1495.         <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  1496.            BorderBrush="{TemplateBinding Border.BorderBrush}"
  1497.            Background="{TemplateBinding Panel.Background}" Grid.Row="1" />
  1498.         <RepeatButton Command="ScrollBar.LineUpCommand" Name="PART_LineUpButton"
  1499.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
  1500.             <RepeatButton.Style>
  1501.                 <Style TargetType="RepeatButton">
  1502.                     <Style.Resources>
  1503.                         <ResourceDictionary />
  1504.                     </Style.Resources>
  1505.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  1506.                         <Setter.Value>
  1507.                             <Style TargetType="IFrameworkInputElement">
  1508.                                 <Style.Resources>
  1509.                                     <ResourceDictionary />
  1510.                                 </Style.Resources>
  1511.                                 <Setter Property="Control.Template">
  1512.                                     <Setter.Value>
  1513.                                         <ControlTemplate>
  1514.                                             <Rectangle
  1515.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  1516.                                                StrokeThickness="1" StrokeDashArray="1 2"
  1517.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  1518.                                         </ControlTemplate>
  1519.                                     </Setter.Value>
  1520.                                 </Setter>
  1521.                             </Style>
  1522.                         </Setter.Value>
  1523.                     </Setter>
  1524.                     <Setter Property="Border.BorderThickness">
  1525.                         <Setter.Value>
  1526.                             <Thickness>1,1,1,1</Thickness>
  1527.                         </Setter.Value>
  1528.                     </Setter>
  1529.                     <Setter Property="Control.HorizontalContentAlignment">
  1530.                         <Setter.Value>
  1531.                             <x:Static Member="HorizontalAlignment.Center" />
  1532.                         </Setter.Value>
  1533.                     </Setter>
  1534.                     <Setter Property="Control.VerticalContentAlignment">
  1535.                         <Setter.Value>
  1536.                             <x:Static Member="VerticalAlignment.Center" />
  1537.                         </Setter.Value>
  1538.                     </Setter>
  1539.                     <Setter Property="Control.Padding">
  1540.                         <Setter.Value>
  1541.                             <Thickness>1,1,1,1</Thickness>
  1542.                         </Setter.Value>
  1543.                     </Setter>
  1544.                     <Setter Property="UIElement.Focusable">
  1545.                         <Setter.Value>
  1546.                             <s:Boolean>False</s:Boolean>
  1547.                         </Setter.Value>
  1548.                     </Setter>
  1549.                     <Setter Property="KeyboardNavigation.IsTabStop">
  1550.                         <Setter.Value>
  1551.                             <s:Boolean>False</s:Boolean>
  1552.                         </Setter.Value>
  1553.                     </Setter>
  1554.                     <Setter Property="Control.Template">
  1555.                         <Setter.Value>
  1556.                             <ControlTemplate TargetType="RepeatButton">
  1557.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  1558.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  1559.                                     <ContentPresenter
  1560.                                        Content="{TemplateBinding ContentControl.Content}"
  1561.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  1562.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  1563.                                        Name="contentPresenter"
  1564.                                        Margin="{TemplateBinding Control.Padding}"
  1565.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  1566.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  1567.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  1568.                                        Focusable="False" />
  1569.                                 </Border>
  1570.                                 <ControlTemplate.Triggers>
  1571.                                     <Trigger Property="UIElement.IsMouseOver">
  1572.                                         <Setter Property="Panel.Background" TargetName="border">
  1573.                                             <Setter.Value>
  1574.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1575.                                             </Setter.Value>
  1576.                                         </Setter>
  1577.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1578.                                             <Setter.Value>
  1579.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1580.                                             </Setter.Value>
  1581.                                         </Setter>
  1582.                                         <Trigger.Value>
  1583.                                             <s:Boolean>True</s:Boolean>
  1584.                                         </Trigger.Value>
  1585.                                     </Trigger>
  1586.                                     <Trigger Property="ButtonBase.IsPressed">
  1587.                                         <Setter Property="Panel.Background" TargetName="border">
  1588.                                             <Setter.Value>
  1589.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1590.                                             </Setter.Value>
  1591.                                         </Setter>
  1592.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1593.                                             <Setter.Value>
  1594.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1595.                                             </Setter.Value>
  1596.                                         </Setter>
  1597.                                         <Trigger.Value>
  1598.                                             <s:Boolean>True</s:Boolean>
  1599.                                         </Trigger.Value>
  1600.                                     </Trigger>
  1601.                                     <Trigger Property="UIElement.IsEnabled">
  1602.                                         <Setter Property="UIElement.Opacity"
  1603.                                            TargetName="contentPresenter">
  1604.                                             <Setter.Value>
  1605.                                                 <s:Double>0.56</s:Double>
  1606.                                             </Setter.Value>
  1607.                                         </Setter>
  1608.                                         <Setter Property="Panel.Background" TargetName="border">
  1609.                                             <Setter.Value>
  1610.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1611.                                             </Setter.Value>
  1612.                                         </Setter>
  1613.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1614.                                             <Setter.Value>
  1615.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1616.                                             </Setter.Value>
  1617.                                         </Setter>
  1618.                                         <Trigger.Value>
  1619.                                             <s:Boolean>False</s:Boolean>
  1620.                                         </Trigger.Value>
  1621.                                     </Trigger>
  1622.                                 </ControlTemplate.Triggers>
  1623.                             </ControlTemplate>
  1624.                         </Setter.Value>
  1625.                     </Setter>
  1626.                 </Style>
  1627.             </RepeatButton.Style>
  1628.             <Path
  1629.                Data="M0,4C0,4 0,6 0,6 0,6 3.5,2.5 3.5,2.5 3.5,2.5 7,6 7,6 7,6 7,4 7,4 7,4 3.5,0.5 3.5,0.5 3.5,0.5 0,4 0,4z"
  1630.                Stretch="Uniform" Fill="#FF606060" Name="ArrowTop" Margin="3,4,3,3" />
  1631.         </RepeatButton>
  1632.         <Track IsDirectionReversed="True" Name="PART_Track"
  1633.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="1">
  1634.             <Track.DecreaseRepeatButton>
  1635.                 <RepeatButton Command="ScrollBar.PageUpCommand">
  1636.                     <RepeatButton.Style>
  1637.                         <Style TargetType="RepeatButton">
  1638.                             <Style.Resources>
  1639.                                 <ResourceDictionary />
  1640.                             </Style.Resources>
  1641.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1642.                                 <Setter.Value>
  1643.                                     <s:Boolean>True</s:Boolean>
  1644.                                 </Setter.Value>
  1645.                             </Setter>
  1646.                             <Setter Property="Panel.Background">
  1647.                                 <Setter.Value>
  1648.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  1649.                                 </Setter.Value>
  1650.                             </Setter>
  1651.                             <Setter Property="UIElement.Focusable">
  1652.                                 <Setter.Value>
  1653.                                     <s:Boolean>False</s:Boolean>
  1654.                                 </Setter.Value>
  1655.                             </Setter>
  1656.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1657.                                 <Setter.Value>
  1658.                                     <s:Boolean>False</s:Boolean>
  1659.                                 </Setter.Value>
  1660.                             </Setter>
  1661.                             <Setter Property="Control.Template">
  1662.                                 <Setter.Value>
  1663.                                     <ControlTemplate TargetType="RepeatButton">
  1664.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  1665.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1666.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  1667.                                     </ControlTemplate>
  1668.                                 </Setter.Value>
  1669.                             </Setter>
  1670.                         </Style>
  1671.                     </RepeatButton.Style>
  1672.                 </RepeatButton>
  1673.             </Track.DecreaseRepeatButton>
  1674.             <Track.Thumb>
  1675.                 <Thumb>
  1676.                     <Thumb.Style>
  1677.                         <Style TargetType="Thumb">
  1678.                             <Style.Resources>
  1679.                                 <ResourceDictionary />
  1680.                             </Style.Resources>
  1681.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1682.                                 <Setter.Value>
  1683.                                     <s:Boolean>True</s:Boolean>
  1684.                                 </Setter.Value>
  1685.                             </Setter>
  1686.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1687.                                 <Setter.Value>
  1688.                                     <s:Boolean>False</s:Boolean>
  1689.                                 </Setter.Value>
  1690.                             </Setter>
  1691.                             <Setter Property="Control.Template">
  1692.                                 <Setter.Value>
  1693.                                     <ControlTemplate TargetType="Thumb">
  1694.                                         <Rectangle Fill="#FFCDCDCD" Name="rectangle"
  1695.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1696.                                            Height="{TemplateBinding FrameworkElement.Height}"
  1697.                                            SnapsToDevicePixels="True" />
  1698.                                         <ControlTemplate.Triggers>
  1699.                                             <Trigger Property="UIElement.IsMouseOver">
  1700.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  1701.                                                     <Setter.Value>
  1702.                                                         <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
  1703.                                                     </Setter.Value>
  1704.                                                 </Setter>
  1705.                                                 <Trigger.Value>
  1706.                                                     <s:Boolean>True</s:Boolean>
  1707.                                                 </Trigger.Value>
  1708.                                             </Trigger>
  1709.                                             <Trigger Property="Thumb.IsDragging">
  1710.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  1711.                                                     <Setter.Value>
  1712.                                                         <SolidColorBrush>#FF606060</SolidColorBrush>
  1713.                                                     </Setter.Value>
  1714.                                                 </Setter>
  1715.                                                 <Trigger.Value>
  1716.                                                     <s:Boolean>True</s:Boolean>
  1717.                                                 </Trigger.Value>
  1718.                                             </Trigger>
  1719.                                         </ControlTemplate.Triggers>
  1720.                                     </ControlTemplate>
  1721.                                 </Setter.Value>
  1722.                             </Setter>
  1723.                         </Style>
  1724.                     </Thumb.Style>
  1725.                 </Thumb>
  1726.             </Track.Thumb>
  1727.             <Track.IncreaseRepeatButton>
  1728.                 <RepeatButton Command="ScrollBar.PageDownCommand">
  1729.                     <RepeatButton.Style>
  1730.                         <Style TargetType="RepeatButton">
  1731.                             <Style.Resources>
  1732.                                 <ResourceDictionary />
  1733.                             </Style.Resources>
  1734.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  1735.                                 <Setter.Value>
  1736.                                     <s:Boolean>True</s:Boolean>
  1737.                                 </Setter.Value>
  1738.                             </Setter>
  1739.                             <Setter Property="Panel.Background">
  1740.                                 <Setter.Value>
  1741.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  1742.                                 </Setter.Value>
  1743.                             </Setter>
  1744.                             <Setter Property="UIElement.Focusable">
  1745.                                 <Setter.Value>
  1746.                                     <s:Boolean>False</s:Boolean>
  1747.                                 </Setter.Value>
  1748.                             </Setter>
  1749.                             <Setter Property="KeyboardNavigation.IsTabStop">
  1750.                                 <Setter.Value>
  1751.                                     <s:Boolean>False</s:Boolean>
  1752.                                 </Setter.Value>
  1753.                             </Setter>
  1754.                             <Setter Property="Control.Template">
  1755.                                 <Setter.Value>
  1756.                                     <ControlTemplate TargetType="RepeatButton">
  1757.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  1758.                                            Width="{TemplateBinding FrameworkElement.Width}"
  1759.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  1760.                                     </ControlTemplate>
  1761.                                 </Setter.Value>
  1762.                             </Setter>
  1763.                         </Style>
  1764.                     </RepeatButton.Style>
  1765.                 </RepeatButton>
  1766.             </Track.IncreaseRepeatButton>
  1767.         </Track>
  1768.         <RepeatButton Command="ScrollBar.LineDownCommand" Name="PART_LineDownButton"
  1769.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="2">
  1770.             <RepeatButton.Style>
  1771.                 <Style TargetType="RepeatButton">
  1772.                     <Style.Resources>
  1773.                         <ResourceDictionary />
  1774.                     </Style.Resources>
  1775.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  1776.                         <Setter.Value>
  1777.                             <Style TargetType="IFrameworkInputElement">
  1778.                                 <Style.Resources>
  1779.                                     <ResourceDictionary />
  1780.                                 </Style.Resources>
  1781.                                 <Setter Property="Control.Template">
  1782.                                     <Setter.Value>
  1783.                                         <ControlTemplate>
  1784.                                             <Rectangle
  1785.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  1786.                                                StrokeThickness="1" StrokeDashArray="1 2"
  1787.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  1788.                                         </ControlTemplate>
  1789.                                     </Setter.Value>
  1790.                                 </Setter>
  1791.                             </Style>
  1792.                         </Setter.Value>
  1793.                     </Setter>
  1794.                     <Setter Property="Border.BorderThickness">
  1795.                         <Setter.Value>
  1796.                             <Thickness>1,1,1,1</Thickness>
  1797.                         </Setter.Value>
  1798.                     </Setter>
  1799.                     <Setter Property="Control.HorizontalContentAlignment">
  1800.                         <Setter.Value>
  1801.                             <x:Static Member="HorizontalAlignment.Center" />
  1802.                         </Setter.Value>
  1803.                     </Setter>
  1804.                     <Setter Property="Control.VerticalContentAlignment">
  1805.                         <Setter.Value>
  1806.                             <x:Static Member="VerticalAlignment.Center" />
  1807.                         </Setter.Value>
  1808.                     </Setter>
  1809.                     <Setter Property="Control.Padding">
  1810.                         <Setter.Value>
  1811.                             <Thickness>1,1,1,1</Thickness>
  1812.                         </Setter.Value>
  1813.                     </Setter>
  1814.                     <Setter Property="UIElement.Focusable">
  1815.                         <Setter.Value>
  1816.                             <s:Boolean>False</s:Boolean>
  1817.                         </Setter.Value>
  1818.                     </Setter>
  1819.                     <Setter Property="KeyboardNavigation.IsTabStop">
  1820.                         <Setter.Value>
  1821.                             <s:Boolean>False</s:Boolean>
  1822.                         </Setter.Value>
  1823.                     </Setter>
  1824.                     <Setter Property="Control.Template">
  1825.                         <Setter.Value>
  1826.                             <ControlTemplate TargetType="RepeatButton">
  1827.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  1828.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  1829.                                     <ContentPresenter
  1830.                                        Content="{TemplateBinding ContentControl.Content}"
  1831.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  1832.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  1833.                                        Name="contentPresenter"
  1834.                                        Margin="{TemplateBinding Control.Padding}"
  1835.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  1836.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  1837.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  1838.                                        Focusable="False" />
  1839.                                 </Border>
  1840.                                 <ControlTemplate.Triggers>
  1841.                                     <Trigger Property="UIElement.IsMouseOver">
  1842.                                         <Setter Property="Panel.Background" TargetName="border">
  1843.                                             <Setter.Value>
  1844.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1845.                                             </Setter.Value>
  1846.                                         </Setter>
  1847.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1848.                                             <Setter.Value>
  1849.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  1850.                                             </Setter.Value>
  1851.                                         </Setter>
  1852.                                         <Trigger.Value>
  1853.                                             <s:Boolean>True</s:Boolean>
  1854.                                         </Trigger.Value>
  1855.                                     </Trigger>
  1856.                                     <Trigger Property="ButtonBase.IsPressed">
  1857.                                         <Setter Property="Panel.Background" TargetName="border">
  1858.                                             <Setter.Value>
  1859.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1860.                                             </Setter.Value>
  1861.                                         </Setter>
  1862.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1863.                                             <Setter.Value>
  1864.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  1865.                                             </Setter.Value>
  1866.                                         </Setter>
  1867.                                         <Trigger.Value>
  1868.                                             <s:Boolean>True</s:Boolean>
  1869.                                         </Trigger.Value>
  1870.                                     </Trigger>
  1871.                                     <Trigger Property="UIElement.IsEnabled">
  1872.                                         <Setter Property="UIElement.Opacity"
  1873.                                            TargetName="contentPresenter">
  1874.                                             <Setter.Value>
  1875.                                                 <s:Double>0.56</s:Double>
  1876.                                             </Setter.Value>
  1877.                                         </Setter>
  1878.                                         <Setter Property="Panel.Background" TargetName="border">
  1879.                                             <Setter.Value>
  1880.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1881.                                             </Setter.Value>
  1882.                                         </Setter>
  1883.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  1884.                                             <Setter.Value>
  1885.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  1886.                                             </Setter.Value>
  1887.                                         </Setter>
  1888.                                         <Trigger.Value>
  1889.                                             <s:Boolean>False</s:Boolean>
  1890.                                         </Trigger.Value>
  1891.                                     </Trigger>
  1892.                                 </ControlTemplate.Triggers>
  1893.                             </ControlTemplate>
  1894.                         </Setter.Value>
  1895.                     </Setter>
  1896.                 </Style>
  1897.             </RepeatButton.Style>
  1898.             <Path
  1899.                Data="M0,2.5C0,2.5 0,0.5 0,0.5 0,0.5 3.5,4 3.5,4 3.5,4 7,0.5 7,0.5 7,0.5 7,2.5 7,2.5 7,2.5 3.5,6 3.5,6 3.5,6 0,2.5 0,2.5z"
  1900.                Stretch="Uniform" Fill="#FF606060" Name="ArrowBottom" Margin="3,4,3,3" />
  1901.         </RepeatButton>
  1902.     </Grid>
  1903.     <ControlTemplate.Triggers>
  1904.         <MultiDataTrigger>
  1905.             <MultiDataTrigger.Conditions>
  1906.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
  1907.                    Value="true" />
  1908.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
  1909.                    Value="true" />
  1910.             </MultiDataTrigger.Conditions>
  1911.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  1912.                 <Setter.Value>
  1913.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  1914.                 </Setter.Value>
  1915.             </Setter>
  1916.         </MultiDataTrigger>
  1917.         <MultiDataTrigger>
  1918.             <MultiDataTrigger.Conditions>
  1919.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
  1920.                    Value="true" />
  1921.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
  1922.                    Value="true" />
  1923.             </MultiDataTrigger.Conditions>
  1924.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  1925.                 <Setter.Value>
  1926.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  1927.                 </Setter.Value>
  1928.             </Setter>
  1929.         </MultiDataTrigger>
  1930.         <MultiDataTrigger>
  1931.             <MultiDataTrigger.Conditions>
  1932.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
  1933.                    Value="true" />
  1934.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
  1935.                    Value="false" />
  1936.             </MultiDataTrigger.Conditions>
  1937.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  1938.                 <Setter.Value>
  1939.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  1940.                 </Setter.Value>
  1941.             </Setter>
  1942.         </MultiDataTrigger>
  1943.         <MultiDataTrigger>
  1944.             <MultiDataTrigger.Conditions>
  1945.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
  1946.                    Value="true" />
  1947.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
  1948.                    Value="false" />
  1949.             </MultiDataTrigger.Conditions>
  1950.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  1951.                 <Setter.Value>
  1952.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  1953.                 </Setter.Value>
  1954.             </Setter>
  1955.         </MultiDataTrigger>
  1956.         <Trigger Property="UIElement.IsEnabled">
  1957.             <Setter Property="Shape.Fill" TargetName="ArrowTop">
  1958.                 <Setter.Value>
  1959.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  1960.                 </Setter.Value>
  1961.             </Setter>
  1962.             <Setter Property="Shape.Fill" TargetName="ArrowBottom">
  1963.                 <Setter.Value>
  1964.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  1965.                 </Setter.Value>
  1966.             </Setter>
  1967.             <Trigger.Value>
  1968.                 <s:Boolean>False</s:Boolean>
  1969.             </Trigger.Value>
  1970.         </Trigger>
  1971.     </ControlTemplate.Triggers>
  1972. </ControlTemplate>
  1973.  
  1974.  
  1975. <!-- CONTROLTEMPLATE FOR ScrollBar -->
  1976. <ControlTemplate TargetType="ScrollBar"
  1977.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  1978.    xmlns:s="clr-namespace:System;assembly=mscorlib"
  1979.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  1980.     <Grid Name="Bg" SnapsToDevicePixels="True">
  1981.         <Grid.ColumnDefinitions>
  1982.             <ColumnDefinition
  1983.                MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
  1984.             <ColumnDefinition Width="1E-05*" />
  1985.             <ColumnDefinition
  1986.                MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
  1987.         </Grid.ColumnDefinitions>
  1988.         <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  1989.            BorderBrush="{TemplateBinding Border.BorderBrush}"
  1990.            Background="{TemplateBinding Panel.Background}" Grid.Column="1" />
  1991.         <RepeatButton Command="ScrollBar.LineLeftCommand" Name="PART_LineLeftButton"
  1992.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
  1993.             <RepeatButton.Style>
  1994.                 <Style TargetType="RepeatButton">
  1995.                     <Style.Resources>
  1996.                         <ResourceDictionary />
  1997.                     </Style.Resources>
  1998.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  1999.                         <Setter.Value>
  2000.                             <Style TargetType="IFrameworkInputElement">
  2001.                                 <Style.Resources>
  2002.                                     <ResourceDictionary />
  2003.                                 </Style.Resources>
  2004.                                 <Setter Property="Control.Template">
  2005.                                     <Setter.Value>
  2006.                                         <ControlTemplate>
  2007.                                             <Rectangle
  2008.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  2009.                                                StrokeThickness="1" StrokeDashArray="1 2"
  2010.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  2011.                                         </ControlTemplate>
  2012.                                     </Setter.Value>
  2013.                                 </Setter>
  2014.                             </Style>
  2015.                         </Setter.Value>
  2016.                     </Setter>
  2017.                     <Setter Property="Border.BorderThickness">
  2018.                         <Setter.Value>
  2019.                             <Thickness>1,1,1,1</Thickness>
  2020.                         </Setter.Value>
  2021.                     </Setter>
  2022.                     <Setter Property="Control.HorizontalContentAlignment">
  2023.                         <Setter.Value>
  2024.                             <x:Static Member="HorizontalAlignment.Center" />
  2025.                         </Setter.Value>
  2026.                     </Setter>
  2027.                     <Setter Property="Control.VerticalContentAlignment">
  2028.                         <Setter.Value>
  2029.                             <x:Static Member="VerticalAlignment.Center" />
  2030.                         </Setter.Value>
  2031.                     </Setter>
  2032.                     <Setter Property="Control.Padding">
  2033.                         <Setter.Value>
  2034.                             <Thickness>1,1,1,1</Thickness>
  2035.                         </Setter.Value>
  2036.                     </Setter>
  2037.                     <Setter Property="UIElement.Focusable">
  2038.                         <Setter.Value>
  2039.                             <s:Boolean>False</s:Boolean>
  2040.                         </Setter.Value>
  2041.                     </Setter>
  2042.                     <Setter Property="KeyboardNavigation.IsTabStop">
  2043.                         <Setter.Value>
  2044.                             <s:Boolean>False</s:Boolean>
  2045.                         </Setter.Value>
  2046.                     </Setter>
  2047.                     <Setter Property="Control.Template">
  2048.                         <Setter.Value>
  2049.                             <ControlTemplate TargetType="RepeatButton">
  2050.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  2051.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  2052.                                     <ContentPresenter
  2053.                                        Content="{TemplateBinding ContentControl.Content}"
  2054.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  2055.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  2056.                                        Name="contentPresenter"
  2057.                                        Margin="{TemplateBinding Control.Padding}"
  2058.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  2059.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  2060.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  2061.                                        Focusable="False" />
  2062.                                 </Border>
  2063.                                 <ControlTemplate.Triggers>
  2064.                                     <Trigger Property="UIElement.IsMouseOver">
  2065.                                         <Setter Property="Panel.Background" TargetName="border">
  2066.                                             <Setter.Value>
  2067.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  2068.                                             </Setter.Value>
  2069.                                         </Setter>
  2070.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2071.                                             <Setter.Value>
  2072.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  2073.                                             </Setter.Value>
  2074.                                         </Setter>
  2075.                                         <Trigger.Value>
  2076.                                             <s:Boolean>True</s:Boolean>
  2077.                                         </Trigger.Value>
  2078.                                     </Trigger>
  2079.                                     <Trigger Property="ButtonBase.IsPressed">
  2080.                                         <Setter Property="Panel.Background" TargetName="border">
  2081.                                             <Setter.Value>
  2082.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  2083.                                             </Setter.Value>
  2084.                                         </Setter>
  2085.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2086.                                             <Setter.Value>
  2087.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  2088.                                             </Setter.Value>
  2089.                                         </Setter>
  2090.                                         <Trigger.Value>
  2091.                                             <s:Boolean>True</s:Boolean>
  2092.                                         </Trigger.Value>
  2093.                                     </Trigger>
  2094.                                     <Trigger Property="UIElement.IsEnabled">
  2095.                                         <Setter Property="UIElement.Opacity"
  2096.                                            TargetName="contentPresenter">
  2097.                                             <Setter.Value>
  2098.                                                 <s:Double>0.56</s:Double>
  2099.                                             </Setter.Value>
  2100.                                         </Setter>
  2101.                                         <Setter Property="Panel.Background" TargetName="border">
  2102.                                             <Setter.Value>
  2103.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  2104.                                             </Setter.Value>
  2105.                                         </Setter>
  2106.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2107.                                             <Setter.Value>
  2108.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  2109.                                             </Setter.Value>
  2110.                                         </Setter>
  2111.                                         <Trigger.Value>
  2112.                                             <s:Boolean>False</s:Boolean>
  2113.                                         </Trigger.Value>
  2114.                                     </Trigger>
  2115.                                 </ControlTemplate.Triggers>
  2116.                             </ControlTemplate>
  2117.                         </Setter.Value>
  2118.                     </Setter>
  2119.                 </Style>
  2120.             </RepeatButton.Style>
  2121.             <Path
  2122.                Data="M3.18,7C3.18,7 5,7 5,7 5,7 1.81,3.5 1.81,3.5 1.81,3.5 5,0 5,0 5,0 3.18,0 3.18,0 3.18,0 0,3.5 0,3.5 0,3.5 3.18,7 3.18,7z"
  2123.                Stretch="Uniform" Fill="#FF606060" Name="ArrowLeft" Margin="3,3,3,3" />
  2124.         </RepeatButton>
  2125.         <Track Name="PART_Track" IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="1">
  2126.             <Track.DecreaseRepeatButton>
  2127.                 <RepeatButton Command="ScrollBar.PageLeftCommand">
  2128.                     <RepeatButton.Style>
  2129.                         <Style TargetType="RepeatButton">
  2130.                             <Style.Resources>
  2131.                                 <ResourceDictionary />
  2132.                             </Style.Resources>
  2133.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  2134.                                 <Setter.Value>
  2135.                                     <s:Boolean>True</s:Boolean>
  2136.                                 </Setter.Value>
  2137.                             </Setter>
  2138.                             <Setter Property="Panel.Background">
  2139.                                 <Setter.Value>
  2140.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  2141.                                 </Setter.Value>
  2142.                             </Setter>
  2143.                             <Setter Property="UIElement.Focusable">
  2144.                                 <Setter.Value>
  2145.                                     <s:Boolean>False</s:Boolean>
  2146.                                 </Setter.Value>
  2147.                             </Setter>
  2148.                             <Setter Property="KeyboardNavigation.IsTabStop">
  2149.                                 <Setter.Value>
  2150.                                     <s:Boolean>False</s:Boolean>
  2151.                                 </Setter.Value>
  2152.                             </Setter>
  2153.                             <Setter Property="Control.Template">
  2154.                                 <Setter.Value>
  2155.                                     <ControlTemplate TargetType="RepeatButton">
  2156.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  2157.                                            Width="{TemplateBinding FrameworkElement.Width}"
  2158.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  2159.                                     </ControlTemplate>
  2160.                                 </Setter.Value>
  2161.                             </Setter>
  2162.                         </Style>
  2163.                     </RepeatButton.Style>
  2164.                 </RepeatButton>
  2165.             </Track.DecreaseRepeatButton>
  2166.             <Track.Thumb>
  2167.                 <Thumb>
  2168.                     <Thumb.Style>
  2169.                         <Style TargetType="Thumb">
  2170.                             <Style.Resources>
  2171.                                 <ResourceDictionary />
  2172.                             </Style.Resources>
  2173.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  2174.                                 <Setter.Value>
  2175.                                     <s:Boolean>True</s:Boolean>
  2176.                                 </Setter.Value>
  2177.                             </Setter>
  2178.                             <Setter Property="KeyboardNavigation.IsTabStop">
  2179.                                 <Setter.Value>
  2180.                                     <s:Boolean>False</s:Boolean>
  2181.                                 </Setter.Value>
  2182.                             </Setter>
  2183.                             <Setter Property="Control.Template">
  2184.                                 <Setter.Value>
  2185.                                     <ControlTemplate TargetType="Thumb">
  2186.                                         <Rectangle Fill="#FFCDCDCD" Name="rectangle"
  2187.                                            Width="{TemplateBinding FrameworkElement.Width}"
  2188.                                            Height="{TemplateBinding FrameworkElement.Height}"
  2189.                                            SnapsToDevicePixels="True" />
  2190.                                         <ControlTemplate.Triggers>
  2191.                                             <Trigger Property="UIElement.IsMouseOver">
  2192.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  2193.                                                     <Setter.Value>
  2194.                                                         <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
  2195.                                                     </Setter.Value>
  2196.                                                 </Setter>
  2197.                                                 <Trigger.Value>
  2198.                                                     <s:Boolean>True</s:Boolean>
  2199.                                                 </Trigger.Value>
  2200.                                             </Trigger>
  2201.                                             <Trigger Property="Thumb.IsDragging">
  2202.                                                 <Setter Property="Shape.Fill" TargetName="rectangle">
  2203.                                                     <Setter.Value>
  2204.                                                         <SolidColorBrush>#FF606060</SolidColorBrush>
  2205.                                                     </Setter.Value>
  2206.                                                 </Setter>
  2207.                                                 <Trigger.Value>
  2208.                                                     <s:Boolean>True</s:Boolean>
  2209.                                                 </Trigger.Value>
  2210.                                             </Trigger>
  2211.                                         </ControlTemplate.Triggers>
  2212.                                     </ControlTemplate>
  2213.                                 </Setter.Value>
  2214.                             </Setter>
  2215.                         </Style>
  2216.                     </Thumb.Style>
  2217.                 </Thumb>
  2218.             </Track.Thumb>
  2219.             <Track.IncreaseRepeatButton>
  2220.                 <RepeatButton Command="ScrollBar.PageRightCommand">
  2221.                     <RepeatButton.Style>
  2222.                         <Style TargetType="RepeatButton">
  2223.                             <Style.Resources>
  2224.                                 <ResourceDictionary />
  2225.                             </Style.Resources>
  2226.                             <Setter Property="FrameworkElement.OverridesDefaultStyle">
  2227.                                 <Setter.Value>
  2228.                                     <s:Boolean>True</s:Boolean>
  2229.                                 </Setter.Value>
  2230.                             </Setter>
  2231.                             <Setter Property="Panel.Background">
  2232.                                 <Setter.Value>
  2233.                                     <SolidColorBrush>#00FFFFFF</SolidColorBrush>
  2234.                                 </Setter.Value>
  2235.                             </Setter>
  2236.                             <Setter Property="UIElement.Focusable">
  2237.                                 <Setter.Value>
  2238.                                     <s:Boolean>False</s:Boolean>
  2239.                                 </Setter.Value>
  2240.                             </Setter>
  2241.                             <Setter Property="KeyboardNavigation.IsTabStop">
  2242.                                 <Setter.Value>
  2243.                                     <s:Boolean>False</s:Boolean>
  2244.                                 </Setter.Value>
  2245.                             </Setter>
  2246.                             <Setter Property="Control.Template">
  2247.                                 <Setter.Value>
  2248.                                     <ControlTemplate TargetType="RepeatButton">
  2249.                                         <Rectangle Fill="{TemplateBinding Panel.Background}"
  2250.                                            Width="{TemplateBinding FrameworkElement.Width}"
  2251.                                            Height="{TemplateBinding FrameworkElement.Height}" />
  2252.                                     </ControlTemplate>
  2253.                                 </Setter.Value>
  2254.                             </Setter>
  2255.                         </Style>
  2256.                     </RepeatButton.Style>
  2257.                 </RepeatButton>
  2258.             </Track.IncreaseRepeatButton>
  2259.         </Track>
  2260.         <RepeatButton Command="ScrollBar.LineRightCommand" Name="PART_LineRightButton"
  2261.            IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="2">
  2262.             <RepeatButton.Style>
  2263.                 <Style TargetType="RepeatButton">
  2264.                     <Style.Resources>
  2265.                         <ResourceDictionary />
  2266.                     </Style.Resources>
  2267.                     <Setter Property="FrameworkElement.FocusVisualStyle">
  2268.                         <Setter.Value>
  2269.                             <Style TargetType="IFrameworkInputElement">
  2270.                                 <Style.Resources>
  2271.                                     <ResourceDictionary />
  2272.                                 </Style.Resources>
  2273.                                 <Setter Property="Control.Template">
  2274.                                     <Setter.Value>
  2275.                                         <ControlTemplate>
  2276.                                             <Rectangle
  2277.                                                Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  2278.                                                StrokeThickness="1" StrokeDashArray="1 2"
  2279.                                                Margin="2,2,2,2" SnapsToDevicePixels="True" />
  2280.                                         </ControlTemplate>
  2281.                                     </Setter.Value>
  2282.                                 </Setter>
  2283.                             </Style>
  2284.                         </Setter.Value>
  2285.                     </Setter>
  2286.                     <Setter Property="Border.BorderThickness">
  2287.                         <Setter.Value>
  2288.                             <Thickness>1,1,1,1</Thickness>
  2289.                         </Setter.Value>
  2290.                     </Setter>
  2291.                     <Setter Property="Control.HorizontalContentAlignment">
  2292.                         <Setter.Value>
  2293.                             <x:Static Member="HorizontalAlignment.Center" />
  2294.                         </Setter.Value>
  2295.                     </Setter>
  2296.                     <Setter Property="Control.VerticalContentAlignment">
  2297.                         <Setter.Value>
  2298.                             <x:Static Member="VerticalAlignment.Center" />
  2299.                         </Setter.Value>
  2300.                     </Setter>
  2301.                     <Setter Property="Control.Padding">
  2302.                         <Setter.Value>
  2303.                             <Thickness>1,1,1,1</Thickness>
  2304.                         </Setter.Value>
  2305.                     </Setter>
  2306.                     <Setter Property="UIElement.Focusable">
  2307.                         <Setter.Value>
  2308.                             <s:Boolean>False</s:Boolean>
  2309.                         </Setter.Value>
  2310.                     </Setter>
  2311.                     <Setter Property="KeyboardNavigation.IsTabStop">
  2312.                         <Setter.Value>
  2313.                             <s:Boolean>False</s:Boolean>
  2314.                         </Setter.Value>
  2315.                     </Setter>
  2316.                     <Setter Property="Control.Template">
  2317.                         <Setter.Value>
  2318.                             <ControlTemplate TargetType="RepeatButton">
  2319.                                 <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
  2320.                                    Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
  2321.                                     <ContentPresenter
  2322.                                        Content="{TemplateBinding ContentControl.Content}"
  2323.                                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  2324.                                        ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  2325.                                        Name="contentPresenter"
  2326.                                        Margin="{TemplateBinding Control.Padding}"
  2327.                                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  2328.                                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  2329.                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  2330.                                        Focusable="False" />
  2331.                                 </Border>
  2332.                                 <ControlTemplate.Triggers>
  2333.                                     <Trigger Property="UIElement.IsMouseOver">
  2334.                                         <Setter Property="Panel.Background" TargetName="border">
  2335.                                             <Setter.Value>
  2336.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  2337.                                             </Setter.Value>
  2338.                                         </Setter>
  2339.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2340.                                             <Setter.Value>
  2341.                                                 <SolidColorBrush>#FFDADADA</SolidColorBrush>
  2342.                                             </Setter.Value>
  2343.                                         </Setter>
  2344.                                         <Trigger.Value>
  2345.                                             <s:Boolean>True</s:Boolean>
  2346.                                         </Trigger.Value>
  2347.                                     </Trigger>
  2348.                                     <Trigger Property="ButtonBase.IsPressed">
  2349.                                         <Setter Property="Panel.Background" TargetName="border">
  2350.                                             <Setter.Value>
  2351.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  2352.                                             </Setter.Value>
  2353.                                         </Setter>
  2354.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2355.                                             <Setter.Value>
  2356.                                                 <SolidColorBrush>#FF606060</SolidColorBrush>
  2357.                                             </Setter.Value>
  2358.                                         </Setter>
  2359.                                         <Trigger.Value>
  2360.                                             <s:Boolean>True</s:Boolean>
  2361.                                         </Trigger.Value>
  2362.                                     </Trigger>
  2363.                                     <Trigger Property="UIElement.IsEnabled">
  2364.                                         <Setter Property="UIElement.Opacity"
  2365.                                            TargetName="contentPresenter">
  2366.                                             <Setter.Value>
  2367.                                                 <s:Double>0.56</s:Double>
  2368.                                             </Setter.Value>
  2369.                                         </Setter>
  2370.                                         <Setter Property="Panel.Background" TargetName="border">
  2371.                                             <Setter.Value>
  2372.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  2373.                                             </Setter.Value>
  2374.                                         </Setter>
  2375.                                         <Setter Property="Border.BorderBrush" TargetName="border">
  2376.                                             <Setter.Value>
  2377.                                                 <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
  2378.                                             </Setter.Value>
  2379.                                         </Setter>
  2380.                                         <Trigger.Value>
  2381.                                             <s:Boolean>False</s:Boolean>
  2382.                                         </Trigger.Value>
  2383.                                     </Trigger>
  2384.                                 </ControlTemplate.Triggers>
  2385.                             </ControlTemplate>
  2386.                         </Setter.Value>
  2387.                     </Setter>
  2388.                 </Style>
  2389.             </RepeatButton.Style>
  2390.             <Path
  2391.                Data="M1.81,7C1.81,7 0,7 0,7 0,7 3.18,3.5 3.18,3.5 3.18,3.5 0,0 0,0 0,0 1.81,0 1.81,0 1.81,0 5,3.5 5,3.5 5,3.5 1.81,7 1.81,7z"
  2392.                Stretch="Uniform" Fill="#FF606060" Name="ArrowRight" Margin="3,3,3,3" />
  2393.         </RepeatButton>
  2394.     </Grid>
  2395.     <ControlTemplate.Triggers>
  2396.         <MultiDataTrigger>
  2397.             <MultiDataTrigger.Conditions>
  2398.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
  2399.                    Value="true" />
  2400.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
  2401.                    Value="true" />
  2402.             </MultiDataTrigger.Conditions>
  2403.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  2404.                 <Setter.Value>
  2405.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  2406.                 </Setter.Value>
  2407.             </Setter>
  2408.         </MultiDataTrigger>
  2409.         <MultiDataTrigger>
  2410.             <MultiDataTrigger.Conditions>
  2411.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
  2412.                    Value="true" />
  2413.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
  2414.                    Value="true" />
  2415.             </MultiDataTrigger.Conditions>
  2416.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  2417.                 <Setter.Value>
  2418.                     <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
  2419.                 </Setter.Value>
  2420.             </Setter>
  2421.         </MultiDataTrigger>
  2422.         <MultiDataTrigger>
  2423.             <MultiDataTrigger.Conditions>
  2424.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
  2425.                    Value="true" />
  2426.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
  2427.                    Value="false" />
  2428.             </MultiDataTrigger.Conditions>
  2429.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  2430.                 <Setter.Value>
  2431.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  2432.                 </Setter.Value>
  2433.             </Setter>
  2434.         </MultiDataTrigger>
  2435.         <MultiDataTrigger>
  2436.             <MultiDataTrigger.Conditions>
  2437.                 <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
  2438.                    Value="true" />
  2439.                 <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
  2440.                    Value="false" />
  2441.             </MultiDataTrigger.Conditions>
  2442.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  2443.                 <Setter.Value>
  2444.                     <SolidColorBrush>#FF000000</SolidColorBrush>
  2445.                 </Setter.Value>
  2446.             </Setter>
  2447.         </MultiDataTrigger>
  2448.         <Trigger Property="UIElement.IsEnabled">
  2449.             <Setter Property="Shape.Fill" TargetName="ArrowLeft">
  2450.                 <Setter.Value>
  2451.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  2452.                 </Setter.Value>
  2453.             </Setter>
  2454.             <Setter Property="Shape.Fill" TargetName="ArrowRight">
  2455.                 <Setter.Value>
  2456.                     <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
  2457.                 </Setter.Value>
  2458.             </Setter>
  2459.             <Trigger.Value>
  2460.                 <s:Boolean>False</s:Boolean>
  2461.             </Trigger.Value>
  2462.         </Trigger>
  2463.     </ControlTemplate.Triggers>
  2464. </ControlTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement