Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- BEGIN STYLES -->
- <!-- STYLE FOR TextBlock (Actual Style) -->
- <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="TextBlock.TextWrapping">
- <Setter.Value>
- <x:Static Member="TextWrapping.NoWrap" />
- </Setter.Value>
- </Setter>
- <Setter Property="TextBlock.TextTrimming">
- <Setter.Value>
- <x:Static Member="TextTrimming.None" />
- </Setter.Value>
- </Setter>
- </Style>
- <!-- STYLE FOR ExtendedTreeView (Actual Style) -->
- <Style TargetType="mcnbtec:ExtendedTreeView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:mcnbtec="clr-namespace:MCNBTEditor.Controls;assembly=MCNBTEditor"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style.BasedOn>
- <Style TargetType="TreeView">
- <Style.Triggers>
- <Trigger Property="VirtualizingPanel.IsVirtualizing">
- <Setter Property="ItemsControl.ItemsPanel">
- <Setter.Value>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel IsItemsHost="True" />
- </ItemsPanelTemplate>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </Style.Triggers>
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <DynamicResource ResourceKey="{x:Static SystemColors.WindowBrushKey}" />
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush">
- <Setter.Value>
- <SolidColorBrush>#FF828790</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="TextElement.Foreground">
- <Setter.Value>
- <DynamicResource ResourceKey="{x:Static SystemColors.ControlTextBrushKey}" />
- </Setter.Value>
- </Setter>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility">
- <Setter.Value>
- <x:Static Member="ScrollBarVisibility.Auto" />
- </Setter.Value>
- </Setter>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility">
- <Setter.Value>
- <x:Static Member="ScrollBarVisibility.Auto" />
- </Setter.Value>
- </Setter>
- <Setter Property="ScrollViewer.PanningMode">
- <Setter.Value>
- <x:Static Member="PanningMode.Both" />
- </Setter.Value>
- </Setter>
- <Setter Property="Stylus.IsFlicksEnabled">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="TreeView">
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}" Name="Bd"
- SnapsToDevicePixels="True">
- <ScrollViewer CanContentScroll="False"
- HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
- VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
- Background="{TemplateBinding Panel.Background}"
- Padding="{TemplateBinding Control.Padding}" Name="_tv_scrollviewer_"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False">
- <ItemsPresenter />
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Panel.Background" TargetName="Bd">
- <Setter.Value>
- <DynamicResource
- ResourceKey="{x:Static SystemColors.ControlBrushKey}" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="VirtualizingPanel.IsVirtualizing">
- <Setter Property="ScrollViewer.CanContentScroll"
- TargetName="_tv_scrollviewer_">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Style.BasedOn>
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- </Style>
- <!-- STYLE FOR TextBlock (Actual Style) -->
- <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="TextBlock.TextWrapping">
- <Setter.Value>
- <x:Static Member="TextWrapping.NoWrap" />
- </Setter.Value>
- </Setter>
- <Setter Property="TextBlock.TextTrimming">
- <Setter.Value>
- <x:Static Member="TextTrimming.None" />
- </Setter.Value>
- </Setter>
- </Style>
- <!-- STYLE FOR TextBlock (Actual Style) -->
- <Style TargetType="TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="TextBlock.TextWrapping">
- <Setter.Value>
- <x:Static Member="TextWrapping.NoWrap" />
- </Setter.Value>
- </Setter>
- <Setter Property="TextBlock.TextTrimming">
- <Setter.Value>
- <x:Static Member="TextTrimming.None" />
- </Setter.Value>
- </Setter>
- </Style>
- <!-- STYLE FOR ExtendedListBox (Actual Style) FAILED: Cannot serialize a non-public type
- 'System.Windows.Media.Imaging.BitmapFrameDecode'. -->
- <!-- BEGIN TEMPLATES -->
- <!-- CONTROLTEMPLATE FOR Menu -->
- <ControlTemplate TargetType="Menu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- Padding="{TemplateBinding Control.Padding}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" SnapsToDevicePixels="True">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR MenuItem -->
- <ControlTemplate TargetType="MenuItem"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Name="templateRoot"
- SnapsToDevicePixels="True">
- <Grid VerticalAlignment="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <ContentPresenter Content="{TemplateBinding MenuItem.Icon}" ContentSource="Icon"
- Name="Icon" Width="16" Height="16" Margin="3,3,3,3" HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
- <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"
- Fill="{TemplateBinding TextElement.Foreground}" Name="GlyphPanel"
- FlowDirection="LeftToRight" Margin="3,3,3,3" VerticalAlignment="Center"
- Visibility="Collapsed" />
- <ContentPresenter RecognizesAccessKey="True"
- Content="{TemplateBinding HeaderedContentControl.Header}"
- ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
- ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
- ContentSource="Header" Margin="{TemplateBinding Control.Padding}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Grid.Column="1" />
- <Popup IsOpen="False" Placement="Bottom"
- PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
- AllowsTransparency="True" Name="PART_Popup" Focusable="False">
- <Border BorderThickness="1,1,1,1" Padding="2,2,2,2" BorderBrush="#FF999999"
- Background="#FFF0F0F0" Name="SubMenuBorder">
- <ScrollViewer
- Style="{DynamicResource {ComponentResourceKey TypeInTargetAssembly=FrameworkElement, ResourceId=MenuScrollViewer}}"
- Name="SubMenuScrollViewer">
- <Grid RenderOptions.ClearTypeHint="Enabled">
- <Canvas Width="0" Height="0" HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Rectangle Fill="{x:Null}" Name="OpaqueRect" Width="Auto"
- Height="Auto" />
- </Canvas>
- <Rectangle Fill="#FFD7D7D7" Width="1" Margin="29,2,0,2"
- HorizontalAlignment="Left" />
- <ItemsPresenter Name="ItemsPresenter"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- KeyboardNavigation.TabNavigation="Cycle"
- KeyboardNavigation.DirectionalNavigation="Cycle"
- Grid.IsSharedSizeScope="True" />
- </Grid>
- </ScrollViewer>
- </Border>
- </Popup>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="MenuItem.IsSuspendingPopupAnimation">
- <Setter Property="Popup.PopupAnimation" TargetName="PART_Popup">
- <Setter.Value>
- <x:Static Member="PopupAnimation.None" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="MenuItem.Icon">
- <Setter Property="UIElement.Visibility" TargetName="Icon">
- <Setter.Value>
- <x:Static Member="Visibility.Collapsed" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <x:Null />
- </Trigger.Value>
- </Trigger>
- <Trigger Property="MenuItem.IsChecked">
- <Setter Property="UIElement.Visibility" TargetName="GlyphPanel">
- <Setter.Value>
- <x:Static Member="Visibility.Visible" />
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Visibility" TargetName="Icon">
- <Setter.Value>
- <x:Static Member="Visibility.Collapsed" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="MenuItem.IsHighlighted">
- <Setter Property="Panel.Background" TargetName="templateRoot">
- <Setter.Value>
- <SolidColorBrush>#3D26A0DA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="templateRoot">
- <Setter.Value>
- <SolidColorBrush>#FF26A0DA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="TextElement.Foreground" TargetName="templateRoot">
- <Setter.Value>
- <SolidColorBrush>#FF707070</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Shape.Fill" TargetName="GlyphPanel">
- <Setter.Value>
- <SolidColorBrush>#FF707070</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ScrollViewer.CanContentScroll" SourceName="SubMenuScrollViewer">
- <Setter Property="Canvas.Top" TargetName="OpaqueRect">
- <Setter.Value>
- <Binding Path="VerticalOffset" ElementName="SubMenuScrollViewer" />
- </Setter.Value>
- </Setter>
- <Setter Property="Canvas.Left" TargetName="OpaqueRect">
- <Setter.Value>
- <Binding Path="HorizontalOffset" ElementName="SubMenuScrollViewer" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ExtendedTreeView -->
- <ControlTemplate TargetType="TreeView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}" Name="Bd" SnapsToDevicePixels="True">
- <ScrollViewer CanContentScroll="False"
- HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
- VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
- Background="{TemplateBinding Panel.Background}"
- Padding="{TemplateBinding Control.Padding}" Name="_tv_scrollviewer_"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" Focusable="False">
- <ItemsPresenter />
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Panel.Background" TargetName="Bd">
- <Setter.Value>
- <DynamicResource ResourceKey="{x:Static SystemColors.ControlBrushKey}" />
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="VirtualizingPanel.IsVirtualizing">
- <Setter Property="ScrollViewer.CanContentScroll" TargetName="_tv_scrollviewer_">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollViewer -->
- <ControlTemplate TargetType="ScrollViewer"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Background="{TemplateBinding Panel.Background}">
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <Rectangle Grid.Column="1" Grid.Row="1"
- Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- <ScrollContentPresenter Grid.Column="0" Grid.Row="0"
- Margin="{TemplateBinding Control.Padding}"
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
- <ScrollBar Grid.Column="1" Grid.Row="0" Minimum="0"
- Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
- ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
- Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}"
- Cursor="Arrow" AutomationProperties.AutomationId="VerticalScrollBar" />
- <ScrollBar Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Minimum="0"
- Maximum="{TemplateBinding ScrollViewer.ScrollableWidth}"
- ViewportSize="{TemplateBinding ScrollViewer.ViewportWidth}"
- Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}"
- Cursor="Arrow" AutomationProperties.AutomationId="HorizontalScrollBar" />
- </Grid>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollBar -->
- <ControlTemplate TargetType="ScrollBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Name="Bg" SnapsToDevicePixels="True">
- <Grid.RowDefinitions>
- <RowDefinition
- MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- <RowDefinition Height="1E-05*" />
- <RowDefinition
- MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- </Grid.RowDefinitions>
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Grid.Row="1" />
- <RepeatButton Command="ScrollBar.LineUpCommand" Name="PART_LineUpButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowTop" Margin="3,4,3,3" />
- </RepeatButton>
- <Track IsDirectionReversed="True" Name="PART_Track"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageUpCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb>
- <Thumb.Style>
- <Style TargetType="Thumb">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Thumb">
- <Rectangle Fill="#FFCDCDCD" Name="rectangle"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}"
- SnapsToDevicePixels="True" />
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="Thumb.IsDragging">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Thumb.Style>
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageDownCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton Command="ScrollBar.LineDownCommand" Name="PART_LineDownButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="2">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowBottom" Margin="3,4,3,3" />
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollBar -->
- <ControlTemplate TargetType="ScrollBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Name="Bg" SnapsToDevicePixels="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- <ColumnDefinition Width="1E-05*" />
- <ColumnDefinition
- MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- </Grid.ColumnDefinitions>
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Grid.Column="1" />
- <RepeatButton Command="ScrollBar.LineLeftCommand" Name="PART_LineLeftButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowLeft" Margin="3,3,3,3" />
- </RepeatButton>
- <Track Name="PART_Track" IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageLeftCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb>
- <Thumb.Style>
- <Style TargetType="Thumb">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Thumb">
- <Rectangle Fill="#FFCDCDCD" Name="rectangle"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}"
- SnapsToDevicePixels="True" />
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="Thumb.IsDragging">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Thumb.Style>
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageRightCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton Command="ScrollBar.LineRightCommand" Name="PART_LineRightButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="2">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowRight" Margin="3,3,3,3" />
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ExtendedListBox -->
- <ControlTemplate TargetType="ListBox"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib">
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}" Padding="1,1,1,1"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Name="Bd" SnapsToDevicePixels="True">
- <ScrollViewer Padding="{TemplateBinding Control.Padding}" Focusable="False">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Panel.Background" TargetName="Bd">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="Bd">
- <Setter.Value>
- <SolidColorBrush>#FFD9D9D9</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="ItemsControl.IsGrouping">
- <Condition.Value>
- <s:Boolean>True</s:Boolean>
- </Condition.Value>
- </Condition>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping">
- <Condition.Value>
- <s:Boolean>False</s:Boolean>
- </Condition.Value>
- </Condition>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollViewer -->
- <ControlTemplate TargetType="ScrollViewer"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Background="{TemplateBinding Panel.Background}">
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <Rectangle Grid.Column="1" Grid.Row="1"
- Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- <ScrollContentPresenter Grid.Column="0" Grid.Row="0"
- Margin="{TemplateBinding Control.Padding}"
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
- <ScrollBar Grid.Column="1" Grid.Row="0" Minimum="0"
- Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
- ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
- Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}"
- Cursor="Arrow" AutomationProperties.AutomationId="VerticalScrollBar" />
- <ScrollBar Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Minimum="0"
- Maximum="{TemplateBinding ScrollViewer.ScrollableWidth}"
- ViewportSize="{TemplateBinding ScrollViewer.ViewportWidth}"
- Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}"
- Cursor="Arrow" AutomationProperties.AutomationId="HorizontalScrollBar" />
- </Grid>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollBar -->
- <ControlTemplate TargetType="ScrollBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Name="Bg" SnapsToDevicePixels="True">
- <Grid.RowDefinitions>
- <RowDefinition
- MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- <RowDefinition Height="1E-05*" />
- <RowDefinition
- MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
- </Grid.RowDefinitions>
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Grid.Row="1" />
- <RepeatButton Command="ScrollBar.LineUpCommand" Name="PART_LineUpButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowTop" Margin="3,4,3,3" />
- </RepeatButton>
- <Track IsDirectionReversed="True" Name="PART_Track"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageUpCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb>
- <Thumb.Style>
- <Style TargetType="Thumb">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Thumb">
- <Rectangle Fill="#FFCDCDCD" Name="rectangle"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}"
- SnapsToDevicePixels="True" />
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="Thumb.IsDragging">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Thumb.Style>
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageDownCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton Command="ScrollBar.LineDownCommand" Name="PART_LineDownButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Row="2">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowBottom" Margin="3,4,3,3" />
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineDownButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineDownButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineUpButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineUpButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Shape.Fill" TargetName="ArrowTop">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Shape.Fill" TargetName="ArrowBottom">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- CONTROLTEMPLATE FOR ScrollBar -->
- <ControlTemplate TargetType="ScrollBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Grid Name="Bg" SnapsToDevicePixels="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- <ColumnDefinition Width="1E-05*" />
- <ColumnDefinition
- MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
- </Grid.ColumnDefinitions>
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Background="{TemplateBinding Panel.Background}" Grid.Column="1" />
- <RepeatButton Command="ScrollBar.LineLeftCommand" Name="PART_LineLeftButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowLeft" Margin="3,3,3,3" />
- </RepeatButton>
- <Track Name="PART_Track" IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageLeftCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb>
- <Thumb.Style>
- <Style TargetType="Thumb">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Thumb">
- <Rectangle Fill="#FFCDCDCD" Name="rectangle"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}"
- SnapsToDevicePixels="True" />
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FFA6A6A6</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="Thumb.IsDragging">
- <Setter Property="Shape.Fill" TargetName="rectangle">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Thumb.Style>
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="ScrollBar.PageRightCommand">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.OverridesDefaultStyle">
- <Setter.Value>
- <s:Boolean>True</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background">
- <Setter.Value>
- <SolidColorBrush>#00FFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Rectangle Fill="{TemplateBinding Panel.Background}"
- Width="{TemplateBinding FrameworkElement.Width}"
- Height="{TemplateBinding FrameworkElement.Height}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- </RepeatButton>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton Command="ScrollBar.LineRightCommand" Name="PART_LineRightButton"
- IsEnabled="{TemplateBinding UIElement.IsMouseOver}" Grid.Column="2">
- <RepeatButton.Style>
- <Style TargetType="RepeatButton">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="FrameworkElement.FocusVisualStyle">
- <Setter.Value>
- <Style TargetType="IFrameworkInputElement">
- <Style.Resources>
- <ResourceDictionary />
- </Style.Resources>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeThickness="1" StrokeDashArray="1 2"
- Margin="2,2,2,2" SnapsToDevicePixels="True" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderThickness">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.HorizontalContentAlignment">
- <Setter.Value>
- <x:Static Member="HorizontalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.VerticalContentAlignment">
- <Setter.Value>
- <x:Static Member="VerticalAlignment.Center" />
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Padding">
- <Setter.Value>
- <Thickness>1,1,1,1</Thickness>
- </Setter.Value>
- </Setter>
- <Setter Property="UIElement.Focusable">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="KeyboardNavigation.IsTabStop">
- <Setter.Value>
- <s:Boolean>False</s:Boolean>
- </Setter.Value>
- </Setter>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="RepeatButton">
- <Border BorderThickness="1,1,1,1" BorderBrush="#FFF0F0F0"
- Background="#FFF0F0F0" Name="border" SnapsToDevicePixels="True">
- <ContentPresenter
- Content="{TemplateBinding ContentControl.Content}"
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
- Name="contentPresenter"
- Margin="{TemplateBinding Control.Padding}"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
- Focusable="False" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFDADADA</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed">
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FF606060</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>True</s:Boolean>
- </Trigger.Value>
- </Trigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="UIElement.Opacity"
- TargetName="contentPresenter">
- <Setter.Value>
- <s:Double>0.56</s:Double>
- </Setter.Value>
- </Setter>
- <Setter Property="Panel.Background" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Border.BorderBrush" TargetName="border">
- <Setter.Value>
- <SolidColorBrush>#FFF0F0F0</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </RepeatButton.Style>
- <Path
- 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"
- Stretch="Uniform" Fill="#FF606060" Name="ArrowRight" Margin="3,3,3,3" />
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
- Value="true" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineRightButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineRightButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding Path=IsMouseOver, ElementName=PART_LineLeftButton}"
- Value="true" />
- <Condition Binding="{Binding Path=IsPressed, ElementName=PART_LineLeftButton}"
- Value="false" />
- </MultiDataTrigger.Conditions>
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FF000000</SolidColorBrush>
- </Setter.Value>
- </Setter>
- </MultiDataTrigger>
- <Trigger Property="UIElement.IsEnabled">
- <Setter Property="Shape.Fill" TargetName="ArrowLeft">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Shape.Fill" TargetName="ArrowRight">
- <Setter.Value>
- <SolidColorBrush>#FFBFBFBF</SolidColorBrush>
- </Setter.Value>
- </Setter>
- <Trigger.Value>
- <s:Boolean>False</s:Boolean>
- </Trigger.Value>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement