2019-11-30 09:08:04 +00:00
|
|
|
<ResourceDictionary
|
2019-11-10 08:12:51 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:darkBlendTheme="clr-namespace:DarkBlendTheme"
|
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2019-11-28 08:00:43 +00:00
|
|
|
xmlns:options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
2020-01-04 23:19:54 +00:00
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
2019-11-10 08:12:51 +00:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
<!-- Converters -->
|
2019-10-28 04:35:31 +00:00
|
|
|
<local:BoolToVisibilityConverter x:Key="bool2VisibilityConverter" />
|
2019-11-10 01:19:18 +00:00
|
|
|
<local:BoolToVisibilityHiddenConverter x:Key="bool2VisibilityHiddenConverter" />
|
2019-11-10 01:29:00 +00:00
|
|
|
<local:InverseBooleanConverter x:Key="InverseBooleanConverter" />
|
2019-11-17 04:11:25 +00:00
|
|
|
<local:IsNotNullVisibilityConverter x:Key="IsNotNullVisibilityConverter" />
|
|
|
|
<local:EqualsToBoolConverter x:Key="EqualsToBoolConverter" />
|
2019-12-10 00:46:44 +00:00
|
|
|
<local:IsTypeVisibilityConverter x:Key="IsTypeVisibilityConverter" />
|
2020-04-01 20:25:22 +00:00
|
|
|
<local:AbsolutePathToStringConverter x:Key="AbsolutePathToStringConverter" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Colors -->
|
2019-10-16 16:23:12 +00:00
|
|
|
<Color x:Key="WindowBackgroundColor">#121212</Color>
|
2019-11-29 22:09:22 +00:00
|
|
|
<Color x:Key="DarkBackgroundColor">#222222</Color>
|
2019-12-15 07:10:04 +00:00
|
|
|
<Color x:Key="DarkHoverBackgroundColor">#272727</Color>
|
2019-11-29 22:09:22 +00:00
|
|
|
<Color x:Key="LightBackgroundColor">#424242</Color>
|
|
|
|
<Color x:Key="BackgroundColor">#323232</Color>
|
2019-07-31 03:59:19 +00:00
|
|
|
<Color x:Key="DisabledBackgroundColor">#424242</Color>
|
2019-12-15 07:10:04 +00:00
|
|
|
<Color x:Key="PressedBackgroundColor">#323232</Color>
|
2019-07-31 03:59:19 +00:00
|
|
|
<Color x:Key="LightDisabledBackgroundColor">#666666</Color>
|
2019-11-29 22:09:22 +00:00
|
|
|
<Color x:Key="HeatedBorderColor">#362675</Color>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
<Color x:Key="ForegroundColor">#EFEFEF</Color>
|
2019-11-29 22:46:40 +00:00
|
|
|
<Color x:Key="DimForegroundColor">#CCCCCC</Color>
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Color x:Key="HighlightColor">#BDBDBD</Color>
|
|
|
|
<Color x:Key="HotColor">#525252</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
|
|
|
|
<Color x:Key="Yellow">#ffc400</Color>
|
|
|
|
<Color x:Key="Red">#e83a40</Color>
|
|
|
|
<Color x:Key="Green">#52b545</Color>
|
2020-07-26 01:59:52 +00:00
|
|
|
<Color x:Key="YellowDark">#967400</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
|
|
|
|
<Color x:Key="Primary">#BB86FC</Color>
|
2019-11-29 22:09:22 +00:00
|
|
|
<Color x:Key="PrimaryTransparent">#00BB86FC</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
<Color x:Key="PrimaryVariant">#3700B3</Color>
|
2019-12-22 07:55:52 +00:00
|
|
|
<Color x:Key="DarkPrimaryVariant">#270080</Color>
|
|
|
|
<Color x:Key="DarkerPrimaryVariant">#1b0059</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
<Color x:Key="Secondary">#03DAC6</Color>
|
2019-11-17 04:11:25 +00:00
|
|
|
<Color x:Key="DarkSecondary">#0e8f83</Color>
|
2019-11-29 05:52:23 +00:00
|
|
|
<Color x:Key="DarkerSecondary">#095952</Color>
|
2019-12-09 00:19:36 +00:00
|
|
|
<Color x:Key="SecondaryBackground">#042421</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<Color x:Key="OffWhiteSeconday">#cef0ed</Color>
|
|
|
|
<Color x:Key="LightSecondary">#8cede5</Color>
|
2019-11-30 09:08:04 +00:00
|
|
|
<Color x:Key="IntenseSecondary">#00ffe7</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
<Color x:Key="Complementary">#C7FC86</Color>
|
2019-12-15 07:10:04 +00:00
|
|
|
<Color x:Key="DarkComplementary">#8eb55e</Color>
|
2020-01-06 04:49:11 +00:00
|
|
|
<Color x:Key="ComplementaryBackground">#4b6130</Color>
|
2019-11-30 09:08:04 +00:00
|
|
|
<Color x:Key="IntenseComplementary">#abf74d</Color>
|
2019-10-28 04:35:31 +00:00
|
|
|
<Color x:Key="Analogous1">#868CFC</Color>
|
|
|
|
<Color x:Key="Analogous2">#F686FC</Color>
|
|
|
|
<Color x:Key="Triadic1">#FC86C7</Color>
|
|
|
|
<Color x:Key="Triadic2">#FCBB86</Color>
|
|
|
|
|
2019-11-28 08:00:43 +00:00
|
|
|
<!-- Mahapps overrides -->
|
2020-01-25 23:25:51 +00:00
|
|
|
<Color x:Key="MahApps.Colors.AccentBase">#FF3700B3</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<!-- 80% -->
|
2020-01-25 23:25:51 +00:00
|
|
|
<Color x:Key="MahApps.Colors.Accent">#CC868CFC</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<!-- 60% -->
|
2020-01-25 23:25:51 +00:00
|
|
|
<Color x:Key="MahApps.Colors.Accent2">#99868CFC</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<!-- 40% -->
|
2020-01-25 23:25:51 +00:00
|
|
|
<Color x:Key="MahApps.Colors.Accent3">#66868CFC</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<!-- 20% -->
|
2020-01-25 23:25:51 +00:00
|
|
|
<Color x:Key="MahApps.Colors.Accent4">#33868CFC</Color>
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.Highlight"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.Highlight}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.AccentBase"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.AccentBase}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.Accent"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.Accent}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.Accent2"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.Accent2}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.Accent3"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.Accent3}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush
|
2020-01-25 23:25:51 +00:00
|
|
|
x:Key="MahApps.Brushes.Accent4"
|
2019-11-28 08:00:43 +00:00
|
|
|
options:Freeze="True"
|
2020-01-25 23:25:51 +00:00
|
|
|
Color="{StaticResource MahApps.Colors.Accent4}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
|
2019-10-28 04:35:31 +00:00
|
|
|
<!-- Brushes -->
|
|
|
|
<SolidColorBrush x:Key="YellowBrush" Color="{StaticResource Yellow}" />
|
|
|
|
<SolidColorBrush x:Key="GreenBrush" Color="{StaticResource Green}" />
|
|
|
|
<SolidColorBrush x:Key="RedBrush" Color="{StaticResource Red}" />
|
|
|
|
<SolidColorBrush x:Key="WarningBrush" Color="{StaticResource Yellow}" />
|
2020-07-26 01:59:52 +00:00
|
|
|
<SolidColorBrush x:Key="WarningDarkBrush" Color="{StaticResource YellowDark}" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="ErrorBrush" Color="{StaticResource Red}" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DarkBackgroundBrush" Color="{StaticResource DarkBackgroundColor}" />
|
2019-12-15 07:10:04 +00:00
|
|
|
<SolidColorBrush x:Key="DarkHoverBackgroundBrush" Color="{StaticResource DarkHoverBackgroundColor}" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="LightBackgroundBrush" Color="{StaticResource LightBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="BackgroundBrush" Color="{StaticResource BackgroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="ForegroundBrush" Color="{StaticResource ForegroundColor}" />
|
2019-11-29 22:46:40 +00:00
|
|
|
<SolidColorBrush x:Key="DimForegroundBrush" Color="{StaticResource DimForegroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="MouseOverForegroundBrush" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="{StaticResource WindowBackgroundColor}" />
|
2019-11-29 22:09:22 +00:00
|
|
|
<SolidColorBrush x:Key="BorderInterestBrush" Color="{StaticResource HeatedBorderColor}" />
|
|
|
|
<SolidColorBrush x:Key="HeatedBorderBrush" Color="{StaticResource HeatedBorderColor}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}" />
|
|
|
|
<SolidColorBrush x:Key="PrimaryVariantBrush" Color="{StaticResource PrimaryVariant}" />
|
2019-11-29 22:09:22 +00:00
|
|
|
<SolidColorBrush x:Key="DarkPrimaryVariantBrush" Color="{StaticResource DarkPrimaryVariant}" />
|
2019-12-22 07:55:52 +00:00
|
|
|
<SolidColorBrush x:Key="DarkerPrimaryVariantBrush" Color="{StaticResource DarkerPrimaryVariant}" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}" />
|
2019-11-17 04:11:25 +00:00
|
|
|
<SolidColorBrush x:Key="DarkSecondaryBrush" Color="{StaticResource DarkSecondary}" />
|
2019-11-29 05:52:23 +00:00
|
|
|
<SolidColorBrush x:Key="DarkerSecondaryBrush" Color="{StaticResource DarkerSecondary}" />
|
2019-12-09 00:19:36 +00:00
|
|
|
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="{StaticResource SecondaryBackground}" />
|
2019-11-28 08:00:43 +00:00
|
|
|
<SolidColorBrush x:Key="OffWhiteSecondayBrush" Color="{StaticResource OffWhiteSeconday}" />
|
|
|
|
<SolidColorBrush x:Key="LightSecondaryBrush" Color="{StaticResource LightSecondary}" />
|
2019-11-30 09:08:04 +00:00
|
|
|
<SolidColorBrush x:Key="IntenseSecondaryBrush" Color="{StaticResource IntenseSecondary}" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="ComplementaryBrush" Color="{StaticResource Complementary}" />
|
2019-12-15 07:10:04 +00:00
|
|
|
<SolidColorBrush x:Key="DarkComplementaryBrush" Color="{StaticResource DarkComplementary}" />
|
2019-11-30 09:08:04 +00:00
|
|
|
<SolidColorBrush x:Key="IntenseComplementaryBrush" Color="{StaticResource IntenseComplementary}" />
|
2020-01-06 04:49:11 +00:00
|
|
|
<SolidColorBrush x:Key="ComplementaryBackgroundBrush" Color="{StaticResource ComplementaryBackground}" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<SolidColorBrush x:Key="Analogous1Brush" Color="{StaticResource Analogous1}" />
|
|
|
|
<SolidColorBrush x:Key="Analogous2Brush" Color="{StaticResource Analogous2}" />
|
|
|
|
<SolidColorBrush x:Key="Triadic1Brush" Color="{StaticResource Triadic1}" />
|
|
|
|
<SolidColorBrush x:Key="Triadic2Brush" Color="{StaticResource Triadic2}" />
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="TabItemHotBackground" Color="{StaticResource HotColor}" />
|
|
|
|
<SolidColorBrush x:Key="TabItemSelectedBackground" Color="{StaticResource LightBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="TabItemHotBorderBrush" Color="{StaticResource HotColor}" />
|
|
|
|
<SolidColorBrush x:Key="TabItemDisabledBackground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="TabItemDisabledBorderBrush" Color="{StaticResource DarkBackgroundColor}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<SolidColorBrush x:Key="ScrollViewerBackground" Color="{StaticResource DarkBackgroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="VerticalScrollBarBackground" Color="{StaticResource BackgroundColor}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<SolidColorBrush x:Key="HorizontalScrollBarBackground" Color="{StaticResource BackgroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="VerticalScrollBarThumb" Color="#808080" />
|
|
|
|
<SolidColorBrush x:Key="ScrollBarDisabledBackground" Color="{StaticResource BackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="ScrollBarHotThumb" Color="#CCCCCC" />
|
|
|
|
<SolidColorBrush x:Key="ScrollBarSelectedThumb" Color="#E5E5E5" />
|
|
|
|
<SolidColorBrush x:Key="CornerBorder" Color="{StaticResource DarkBackgroundColor}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<SolidColorBrush x:Key="TextBoxBorder" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="TextBoxBackground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="TextBoxDisabledForeground" Color="#8C8C8C" />
|
|
|
|
<SolidColorBrush x:Key="TextBoxDisabledBackground" Color="{StaticResource DisabledBackgroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="InactiveSelectionHighlightBrush" Color="#335C85" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="ComboBoxButtonNormalBackground" Color="#808080" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="ButtonNormalBackground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#4C4C4C" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="ButtonForeground" Color="{StaticResource ForegroundColor}" />
|
2019-11-17 04:11:25 +00:00
|
|
|
<SolidColorBrush x:Key="MouseOverButtonForeground" Color="White" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="ButtonBackground" Color="{StaticResource LightBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="ButtonBorder" Color="{StaticResource DarkBackgroundColor}" />
|
2019-11-17 04:11:25 +00:00
|
|
|
<SolidColorBrush x:Key="PressedButtonBackground" Color="{StaticResource PressedBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="MouseOverButtonBackground" Color="{StaticResource LightBackgroundColor}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<SolidColorBrush x:Key="DisabledButtonBackground" Color="{StaticResource LightDisabledBackgroundColor}" />
|
2019-11-24 23:42:28 +00:00
|
|
|
<SolidColorBrush x:Key="DisabledButtonForeground" Color="#FF7E7E7E" />
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<SolidColorBrush x:Key="Expander.Background" Color="{StaticResource LightBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="{StaticResource ForegroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="{StaticResource LightDisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="#AAAAAA" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="CheckBoxFillNormal" Color="{StaticResource LightDisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="CheckBoxMouseOverStroke" Color="{StaticResource ForegroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="CheckBoxDisabledStroke" Color="{StaticResource DisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="CheckBoxDisabledForeground" Color="#939393" />
|
|
|
|
<SolidColorBrush x:Key="CheckBoxStroke" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="RadioButtonMouseOverStroke" Color="{StaticResource ForegroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="RadioButtonDisabledStroke" Color="{StaticResource DisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="RadioButtonDisabledForeground" Color="#939393" />
|
|
|
|
<SolidColorBrush x:Key="RadioButtonStroke" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="RadioButtonForeground" Color="{StaticResource ForegroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="RadioButtonBackground" Color="{StaticResource LightDisabledBackgroundColor}" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="ListBorder" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="ListBackground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="SelectedListItem" Color="{StaticResource HighlightColor}" />
|
|
|
|
<SolidColorBrush x:Key="SelectedListItemForeground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="MouseOverListItem" Color="#4A4A4A" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="TreeViewBackground" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="TreeViewDisabledForeground" Color="{StaticResource LightDisabledBackgroundColor}" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DisabledMenuForeground" Color="#656565" />
|
|
|
|
<SolidColorBrush x:Key="MenuBackground" Color="#3A3A3A" />
|
|
|
|
<SolidColorBrush x:Key="MenuItemSelectionFill" Color="{StaticResource HighlightColor}" />
|
|
|
|
<SolidColorBrush x:Key="SubMenuBackgroundBrush" Color="#3A3A3A" />
|
|
|
|
<SolidColorBrush x:Key="MenuItemPressedFill" Color="{StaticResource HighlightColor}" />
|
|
|
|
<SolidColorBrush x:Key="SubMenuBorderBrush" Color="{StaticResource LightBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="SubMenuRepeatButtonBrush" Color="{StaticResource HotColor}" />
|
|
|
|
<SolidColorBrush x:Key="SubMenuHoverRepeatButtonBrush" Color="#7F7F7F" />
|
|
|
|
<SolidColorBrush x:Key="MenuSeparatorBrush" Color="#4C4C4C" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DataGridBackgroundBrush" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="DataGridHeaderBackgroundBrush" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="DataGridHeaderMouseOverBrush" Color="#AAAAAA" />
|
|
|
|
<SolidColorBrush x:Key="DataGridHeaderBorderBrush" Color="{StaticResource DisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="DataGridRowBorderBrush" Color="{StaticResource DisabledBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="DataGridRowBackgroundBrush" Color="{StaticResource DarkBackgroundColor}" />
|
|
|
|
<SolidColorBrush x:Key="DataGridRowSelectedBrush" Color="{StaticResource HighlightColor}" />
|
|
|
|
<SolidColorBrush x:Key="GridLinesBrush" Color="Transparent" />
|
|
|
|
<SolidColorBrush x:Key="{x:Static DataGrid.FocusBorderBrushKey}" Color="Red" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Geometry x:Key="MenuScrollDownArrowGeometry">M-0.7,5.2 L-2.2,6.7 3.6,12.6 9.5,6.7 8,5.2 3.6,9.6 z</Geometry>
|
|
|
|
<Geometry x:Key="MenuScrollUpArrowGeometry">M-2.2,10.9 L-0.7,12.4 3.7,8 8,12.4 9.5,10.9 3.7,5 z</Geometry>
|
|
|
|
<Geometry x:Key="Checkmark">M1.0E-41,4.2 L0,2.1 2.5,4.5 6.7,4.4E-47 6.7,2.3 2.5,6.7 z</Geometry>
|
|
|
|
<Geometry x:Key="CheckBoxCheckmark">M7.2,5 L5.5,7.16 4.16,6.3 3.5,6.7 5.5,8.4 8.6,5.25 C8.6,5.25 8,4.7 7.22,5</Geometry>
|
|
|
|
<Geometry x:Key="RightArrow">M 0,0 L 4,3.5 L 0,7 Z</Geometry>
|
|
|
|
<Geometry x:Key="ExpanderNormalArrow">M 1,1.5 L 4.5,5 L 8,1.5</Geometry>
|
|
|
|
<Geometry x:Key="ExpanderCheckedArrow">M 1,4.5 L 4.5,1 L 8,4.5</Geometry>
|
|
|
|
<Geometry x:Key="TabItemRoundedCorner">M6.5,2.6C4.767,0.973 2.509,0 0,0 0,0 0,19 0,19L23,19z</Geometry>
|
|
|
|
<Geometry x:Key="RepeatButton">M3.5445026,0 L7.0890052,7.0890053 L3.0459049E-09,7.0890053 z</Geometry>
|
|
|
|
<Geometry x:Key="ComboBoxArrow">M-0,6 L-0,8 8,8 8,-0 6,-0 6,6 z</Geometry>
|
|
|
|
<Geometry x:Key="ExpanderToggleButtonArrow">M5,-0 L9,5 1,5 z</Geometry>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- FontStyle -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FontFamily" Value="Calibri light" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/>-->
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type Control}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FontFamily" Value="Calibri light" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type Window}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FontFamily" Value="Calibri light" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource WindowBackgroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Necessary for Blend designer for UserControls -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type UserControl}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FontFamily" Value="Calibri light" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Style>
|
|
|
|
|
2020-01-06 04:49:11 +00:00
|
|
|
<Style TargetType="{x:Type ItemsControl}">
|
|
|
|
<Setter Property="Focusable" Value="False" />
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- ScrollBar -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type ScrollViewer}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{DynamicResource ScrollViewerBackground}" />
|
2020-01-06 04:49:11 +00:00
|
|
|
<Setter Property="Focusable" Value="False" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
|
|
<Grid x:Name="Grid" Background="{TemplateBinding Background}">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Rectangle Grid.Row="1" Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Corner"
|
|
|
|
Fill="{TemplateBinding Background}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollContentPresenter Grid.Row="0" Grid.Column="0"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_ScrollContentPresenter"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
CanContentScroll="{TemplateBinding CanContentScroll}"
|
|
|
|
CanHorizontallyScroll="False"
|
|
|
|
CanVerticallyScroll="False"
|
|
|
|
Content="{TemplateBinding Content}"
|
2020-01-06 04:49:11 +00:00
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Focusable="False" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollBar Grid.Row="0" Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_VerticalScrollBar"
|
|
|
|
AutomationProperties.AutomationId="VerticalScrollBar"
|
|
|
|
Cursor="Arrow"
|
|
|
|
Maximum="{TemplateBinding ScrollableHeight}"
|
|
|
|
Minimum="0"
|
|
|
|
Style="{DynamicResource VerticalScrollBarStyle}"
|
|
|
|
ViewportSize="{TemplateBinding ViewportHeight}"
|
|
|
|
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
|
|
|
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollBar Grid.Row="1" Grid.Column="0"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_HorizontalScrollBar"
|
|
|
|
AutomationProperties.AutomationId="HorizontalScrollBar"
|
|
|
|
Cursor="Arrow"
|
|
|
|
Maximum="{TemplateBinding ScrollableWidth}"
|
|
|
|
Minimum="0"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
Style="{DynamicResource HorisontalScrollBarStyle}"
|
|
|
|
ViewportSize="{TemplateBinding ViewportWidth}"
|
|
|
|
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
|
|
|
|
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="RepeatButtonUpStyle" TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
|
|
|
<Grid Background="Transparent">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="TrianglePath"
|
|
|
|
Width="Auto"
|
|
|
|
Height="Auto"
|
|
|
|
Margin="5"
|
|
|
|
Data="{StaticResource RepeatButton}"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
Stretch="Fill" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
|
|
|
<Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="VerticalThumb"
|
|
|
|
Width="7.4"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
RadiusX="4"
|
|
|
|
RadiusY="4" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="VerticalThumb" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsDragging" Value="True">
|
|
|
|
<Setter TargetName="VerticalThumb" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Style
|
|
|
|
x:Key="RepeatButtonDownStyle"
|
|
|
|
BasedOn="{StaticResource RepeatButtonUpStyle}"
|
|
|
|
TargetType="{x:Type RepeatButton}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
|
|
|
<Grid Background="Transparent">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="BottomTrianglePath"
|
|
|
|
Width="Auto"
|
|
|
|
Height="Auto"
|
|
|
|
Margin="5"
|
|
|
|
Data="{StaticResource RepeatButton}"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScaleTransform ScaleX="1" ScaleY="-1" />
|
|
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
|
|
<RotateTransform Angle="0" />
|
|
|
|
<TranslateTransform />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="BottomTrianglePath" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter TargetName="BottomTrianglePath" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Width="{TemplateBinding Width}"
|
|
|
|
Height="{TemplateBinding Height}"
|
|
|
|
Fill="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Width="{TemplateBinding Width}"
|
|
|
|
Height="{TemplateBinding Height}"
|
|
|
|
Fill="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="VerticalScrollBarStyle" TargetType="{x:Type ScrollBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource VerticalScrollBarBackground}" />
|
|
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="false" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
|
|
<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
|
|
|
<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Grid
|
|
|
|
x:Name="Bg"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
SnapsToDevicePixels="true">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
|
|
|
|
<RowDefinition Height="0.00001*" />
|
|
|
|
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton
|
|
|
|
Command="{x:Static ScrollBar.LineUpCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{StaticResource RepeatButtonUpStyle}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<Track Grid.Row="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Track"
|
|
|
|
IsDirectionReversed="true"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Track.DecreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource VerticalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.DecreaseRepeatButton>
|
|
|
|
<Track.IncreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource VerticalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.IncreaseRepeatButton>
|
|
|
|
<Track.Thumb>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Thumb Style="{StaticResource ScrollBarThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.Thumb>
|
|
|
|
</Track>
|
2020-07-25 22:15:26 +00:00
|
|
|
<RepeatButton Grid.Row="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
Command="{x:Static ScrollBar.LineDownCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{DynamicResource RepeatButtonDownStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Background" Value="{StaticResource ScrollBarDisabledBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="Orientation" Value="Horizontal">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Width" Value="Auto" />
|
|
|
|
<Setter Property="MinWidth" Value="0" />
|
|
|
|
<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
|
|
|
|
<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource HorizontalScrollBarBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Grid
|
|
|
|
x:Name="Bg"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
SnapsToDevicePixels="true">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
|
|
|
|
<ColumnDefinition Width="0.00001*" />
|
|
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton
|
|
|
|
Command="{x:Static ScrollBar.LineLeftCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{StaticResource RepeatButtonUpStyle}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<Track Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Track"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Track.DecreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.DecreaseRepeatButton>
|
|
|
|
<Track.IncreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.IncreaseRepeatButton>
|
|
|
|
<Track.Thumb>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Thumb Style="{StaticResource ScrollBarThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.Thumb>
|
|
|
|
</Track>
|
2020-07-25 22:15:26 +00:00
|
|
|
<RepeatButton Grid.Column="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
Command="{x:Static ScrollBar.LineRightCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{StaticResource RepeatButtonUpStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Background" Value="{StaticResource ScrollBarDisabledBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="HorisontalScrollBarStyle" TargetType="{x:Type ScrollBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource VerticalScrollBarBackground}" />
|
|
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="false" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
|
|
<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
|
|
|
<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="Orientation" Value="Horizontal">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Width" Value="Auto" />
|
|
|
|
<Setter Property="MinWidth" Value="0" />
|
|
|
|
<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
|
|
|
|
<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource HorizontalScrollBarBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Grid
|
|
|
|
x:Name="Bg"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
SnapsToDevicePixels="true">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
|
|
|
|
<ColumnDefinition Width="0.00001*" />
|
|
|
|
<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton
|
|
|
|
Command="{x:Static ScrollBar.LineLeftCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{DynamicResource RepeatLeftButtonStyle}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<Track Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Track"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Track.DecreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.DecreaseRepeatButton>
|
|
|
|
<Track.IncreaseRepeatButton>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.IncreaseRepeatButton>
|
|
|
|
<Track.Thumb>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Thumb Style="{DynamicResource HorisontalThumbStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Track.Thumb>
|
|
|
|
</Track>
|
2020-07-25 22:15:26 +00:00
|
|
|
<RepeatButton Grid.Column="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
Command="{x:Static ScrollBar.LineRightCommand}"
|
|
|
|
IsEnabled="{TemplateBinding IsMouseOver}"
|
|
|
|
Style="{DynamicResource RepeatRightButtonStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Background" Value="{StaticResource ScrollBarDisabledBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="HorisontalThumbStyle" TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
|
|
|
<Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="VerticalThumb"
|
|
|
|
Height="7.4"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
RadiusX="4"
|
|
|
|
RadiusY="4" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="VerticalThumb" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsDragging" Value="True">
|
|
|
|
<Setter TargetName="VerticalThumb" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="RepeatLeftButtonStyle" TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
|
|
|
<Grid Background="Transparent" RenderTransformOrigin="0.5,0.5">
|
|
|
|
<Grid.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScaleTransform />
|
|
|
|
<SkewTransform />
|
|
|
|
<RotateTransform Angle="270" />
|
|
|
|
<TranslateTransform />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Grid.RenderTransform>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="TrianglePath"
|
|
|
|
Width="Auto"
|
|
|
|
Height="Auto"
|
|
|
|
Margin="5"
|
|
|
|
Data="{StaticResource RepeatButton}"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
Stretch="Fill" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="RepeatRightButtonStyle" TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
|
|
|
<Grid Background="Transparent" RenderTransformOrigin="0.5,0.5">
|
|
|
|
<Grid.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScaleTransform />
|
|
|
|
<SkewTransform />
|
|
|
|
<RotateTransform Angle="270" />
|
|
|
|
<TranslateTransform />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Grid.RenderTransform>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="TrianglePath"
|
|
|
|
Width="Auto"
|
|
|
|
Height="Auto"
|
|
|
|
Margin="5"
|
|
|
|
Data="{StaticResource RepeatButton}"
|
|
|
|
Fill="{StaticResource VerticalScrollBarThumb}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScaleTransform />
|
|
|
|
<SkewTransform />
|
|
|
|
<RotateTransform Angle="180" />
|
|
|
|
<TranslateTransform />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarHotThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter TargetName="TrianglePath" Property="Fill" Value="{StaticResource ScrollBarSelectedThumb}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- TextBox -->
|
2019-11-06 03:50:24 +00:00
|
|
|
<Style
|
|
|
|
x:Key="MainTextBoxStyle"
|
|
|
|
BasedOn="{StaticResource {x:Type Control}}"
|
|
|
|
TargetType="{x:Type TextBox}">
|
|
|
|
<Setter Property="Background" Value="{StaticResource TextBoxBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-11-17 07:28:33 +00:00
|
|
|
<Setter Property="Padding" Value="3" />
|
2019-11-06 03:50:24 +00:00
|
|
|
<Setter Property="AllowDrop" Value="true" />
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
2019-11-06 03:50:24 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<Grid>
|
|
|
|
<ScrollViewer
|
|
|
|
x:Name="PART_ContentHost"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
2019-11-06 03:50:24 +00:00
|
|
|
x:Name="PART_Message"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
Style="{DynamicResource MahApps.Metro.Styles.MetroWatermarkTextBlock}"
|
|
|
|
Text="{TemplateBinding mahapps:TextBoxHelper.Watermark}"
|
|
|
|
TextAlignment="{TemplateBinding mahapps:TextBoxHelper.WatermarkAlignment}"
|
|
|
|
TextTrimming="{TemplateBinding mahapps:TextBoxHelper.WatermarkTrimming}"
|
|
|
|
TextWrapping="{TemplateBinding mahapps:TextBoxHelper.WatermarkWrapping}"
|
|
|
|
Visibility="Collapsed" />
|
|
|
|
</Grid>
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2019-11-06 03:50:24 +00:00
|
|
|
<ControlTemplate.Resources>
|
|
|
|
<Storyboard x:Key="enterGotFocus">
|
|
|
|
<DoubleAnimation
|
|
|
|
Storyboard.TargetName="PART_Message"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To=".2"
|
|
|
|
Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
<Storyboard x:Key="exitGotFocus">
|
|
|
|
<DoubleAnimation
|
|
|
|
Storyboard.TargetName="PART_Message"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
|
|
|
|
<Storyboard x:Key="enterHasText">
|
|
|
|
<DoubleAnimation
|
|
|
|
Storyboard.TargetName="PART_Message"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
From=".2"
|
|
|
|
To="0"
|
|
|
|
Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
<Storyboard x:Key="exitHasText">
|
|
|
|
<DoubleAnimation
|
|
|
|
Storyboard.TargetName="PART_Message"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
</ControlTemplate.Resources>
|
2019-07-31 03:59:19 +00:00
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-06 03:50:24 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource TextBoxDisabledForeground}" />
|
|
|
|
<Setter TargetName="PART_ContentHost" Property="Background" Value="{StaticResource TextBoxDisabledBackground}" />
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource TextBoxDisabledBackground}" />
|
|
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource TextBoxDisabledBackground}" />
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="mahapps:TextBoxHelper.HasText" Value="False" />
|
|
|
|
<Condition Property="IsFocused" Value="True" />
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
<MultiTrigger.EnterActions>
|
|
|
|
<BeginStoryboard Storyboard="{StaticResource enterGotFocus}" />
|
|
|
|
</MultiTrigger.EnterActions>
|
|
|
|
<MultiTrigger.ExitActions>
|
|
|
|
<BeginStoryboard Storyboard="{StaticResource exitGotFocus}" />
|
|
|
|
</MultiTrigger.ExitActions>
|
|
|
|
</MultiTrigger>
|
|
|
|
|
|
|
|
<Trigger Property="mahapps:TextBoxHelper.HasText" Value="True">
|
|
|
|
<Trigger.EnterActions>
|
|
|
|
<BeginStoryboard Storyboard="{StaticResource enterHasText}" />
|
|
|
|
</Trigger.EnterActions>
|
|
|
|
<Trigger.ExitActions>
|
|
|
|
<BeginStoryboard Storyboard="{StaticResource exitHasText}" />
|
|
|
|
</Trigger.ExitActions>
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-06 03:50:24 +00:00
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Value="">
|
|
|
|
<Setter TargetName="PART_Message" Property="Visibility" Value="Visible" />
|
|
|
|
</DataTrigger>
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
2019-09-26 16:05:10 +00:00
|
|
|
<DataTrigger Binding="{Binding Path=(Validation.HasError), RelativeSource={RelativeSource self}}" Value="True">
|
2019-11-06 03:50:24 +00:00
|
|
|
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors)[0].ErrorContent}" />
|
2019-09-26 16:05:10 +00:00
|
|
|
</DataTrigger>
|
2019-07-31 03:59:19 +00:00
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-10-25 04:26:29 +00:00
|
|
|
<Style BasedOn="{StaticResource MainTextBoxStyle}" TargetType="TextBox" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- ComboBox -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="ComboBoxFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="2,2,21,2"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="{StaticResource ForegroundBrush}"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="OverridesDefaultStyle" Value="true" />
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
<Setter Property="ClickMode" Value="Press" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
CornerRadius="3"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<Border
|
|
|
|
x:Name="PopUpButton"
|
|
|
|
Width="15"
|
|
|
|
Margin="1"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Background="{DynamicResource ComboBoxButtonNormalBackground}"
|
|
|
|
CornerRadius="3">
|
|
|
|
<Path
|
|
|
|
x:Name="Arrow"
|
|
|
|
Width="5.5"
|
|
|
|
Height="5.5"
|
|
|
|
Margin="0,4,0,7"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource ComboBoxArrow}"
|
|
|
|
Fill="{DynamicResource ButtonForeground}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScaleTransform />
|
|
|
|
<SkewTransform />
|
|
|
|
<RotateTransform Angle="45" />
|
|
|
|
<TranslateTransform />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="PopUpButton" Property="Background" Value="{DynamicResource MouseOverButtonBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource DisabledButtonForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
|
|
|
|
<Grid x:Name="Placement" SnapsToDevicePixels="true">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Popup Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Popup"
|
|
|
|
Margin="1"
|
|
|
|
AllowsTransparency="true"
|
|
|
|
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Placement="Bottom"
|
|
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
|
|
|
<Border
|
|
|
|
x:Name="Shdw"
|
|
|
|
MinWidth="{Binding ActualWidth, ElementName=Placement}"
|
|
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
|
|
Background="Transparent">
|
|
|
|
<Border
|
|
|
|
x:Name="DropDownBorder"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
|
|
|
<Grid RenderOptions.ClearTypeHint="Enabled">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Canvas
|
|
|
|
Width="0"
|
|
|
|
Height="0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top">
|
|
|
|
<Rectangle
|
|
|
|
x:Name="OpaqueRect"
|
|
|
|
Width="{Binding ActualWidth, ElementName=DropDownBorder}"
|
|
|
|
Height="{Binding ActualHeight, ElementName=DropDownBorder}"
|
|
|
|
Fill="{Binding Background, ElementName=DropDownBorder}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Canvas>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter
|
|
|
|
x:Name="ItemsPresenter"
|
|
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Border Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding Background}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<TextBox x:Name="PART_EditableTextBox" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ToggleButton Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Style="{StaticResource ComboBoxReadonlyToggleButton}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="HasItems" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="DropDownBorder" Property="Height" Value="95" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBoxDisabledForeground}" />
|
|
|
|
<Setter Property="Background" Value="{DynamicResource TextBoxDisabledBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsGrouping" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>-->
|
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
|
|
|
|
<Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
|
|
|
|
<Setter TargetName="Shdw" Property="Background" Value="#71000000" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
<Style TargetType="{x:Type ComboBox}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}" />
|
|
|
|
<Setter Property="Padding" Value="5,3,5,1" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
|
|
|
<Setter Property="ItemContainerStyle" Value="{DynamicResource ComboBoxItemStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ComboBox}">
|
|
|
|
<Grid x:Name="MainGrid" SnapsToDevicePixels="true">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" MinWidth="18" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Popup Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Popup"
|
|
|
|
Margin="1"
|
|
|
|
AllowsTransparency="true"
|
|
|
|
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Placement="Bottom"
|
|
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
|
|
|
<Border
|
|
|
|
x:Name="Shdw"
|
|
|
|
MinWidth="{Binding ActualWidth, ElementName=MainGrid}"
|
|
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
|
|
Background="Transparent">
|
|
|
|
<Border
|
|
|
|
x:Name="DropDownBorder"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid RenderOptions.ClearTypeHint="Enabled">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Canvas
|
|
|
|
Width="0"
|
|
|
|
Height="0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top">
|
|
|
|
<Rectangle
|
|
|
|
x:Name="OpaqueRect"
|
|
|
|
Width="{Binding ActualWidth, ElementName=DropDownBorder}"
|
|
|
|
Height="{Binding ActualHeight, ElementName=DropDownBorder}"
|
|
|
|
Fill="{Binding Background, ElementName=DropDownBorder}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Canvas>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter
|
|
|
|
x:Name="ItemsPresenter"
|
|
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ToggleButton Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Style="{StaticResource ComboBoxReadonlyToggleButton}" />
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
|
|
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
|
|
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
|
|
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
|
|
|
IsHitTestVisible="false"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
|
|
|
|
<Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
|
|
|
|
<Setter TargetName="Shdw" Property="Background" Value="#71000000" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="HasItems" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="DropDownBorder" Property="Height" Value="95" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextBoxDisabledForeground}" />
|
|
|
|
<Setter Property="Background" Value="{DynamicResource TextBoxDisabledBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsGrouping" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>-->
|
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEditable" Value="true">
|
|
|
|
<!--<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder2}"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>-->
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
|
|
|
<Setter Property="Padding" Value="3" />
|
|
|
|
<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="ComboBoxItemStyle" TargetType="{x:Type ComboBoxItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="Padding" Value="3,0,3,0" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsHighlighted" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SelectedListItem}" />
|
|
|
|
<Setter Property="Foreground" Value="Black" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Button -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="ButtonFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="2"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="{StaticResource ForegroundBrush}"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<Style x:Key="MainButtonStyle" TargetType="{x:Type Button}">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
2019-12-15 07:10:04 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource DarkBackgroundBrush}" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<Setter Property="Focusable" Value="False" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2020-01-06 04:49:11 +00:00
|
|
|
<Setter Property="Padding" Value="1" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
<Grid>
|
|
|
|
<Border
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3">
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Setter Property="Background" Value="{StaticResource DarkHoverBackgroundBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource DarkComplementaryBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ComplementaryBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="true">
|
|
|
|
<Setter Property="Background" Value="{StaticResource PressedButtonBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ComplementaryBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource IntenseComplementaryBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DisabledButtonBackground}" />
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="LargeButtonStyle" TargetType="{x:Type Button}">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DarkBackgroundBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="Focusable" Value="False" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Padding" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
2019-11-17 04:11:25 +00:00
|
|
|
<Grid>
|
|
|
|
<Border
|
2019-12-15 07:10:04 +00:00
|
|
|
Background="{StaticResource ComplementaryBrush}"
|
2019-11-17 04:11:25 +00:00
|
|
|
CornerRadius="3"
|
|
|
|
Opacity="0.7">
|
|
|
|
<Border.Effect>
|
|
|
|
<BlurEffect Radius="5" />
|
|
|
|
</Border.Effect>
|
|
|
|
<Border.Style>
|
|
|
|
<Style TargetType="Border">
|
|
|
|
<Setter Property="Visibility" Value="Hidden" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Value="True">
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Border.Style>
|
|
|
|
</Border>
|
|
|
|
<Border
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3">
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
2019-07-31 03:59:19 +00:00
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-12-15 07:10:04 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource DarkHoverBackgroundBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource DarkComplementaryBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ComplementaryBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource PressedButtonBackground}" />
|
2019-12-15 07:10:04 +00:00
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ComplementaryBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource IntenseComplementaryBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DisabledButtonBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-10-13 20:10:17 +00:00
|
|
|
<Style BasedOn="{StaticResource MainButtonStyle}" TargetType="{x:Type Button}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<Style
|
|
|
|
x:Key="CircleButtonStyle"
|
2020-01-25 23:25:51 +00:00
|
|
|
BasedOn="{StaticResource MahApps.Styles.Button.Circle}"
|
2019-11-10 08:12:51 +00:00
|
|
|
TargetType="ButtonBase">
|
2019-10-28 04:35:31 +00:00
|
|
|
<Setter Property="Focusable" Value="False" />
|
2019-11-30 09:08:04 +00:00
|
|
|
<Setter Property="Background" Value="#333333" />
|
2019-11-24 23:42:28 +00:00
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
2019-11-30 09:08:04 +00:00
|
|
|
<Setter Property="Background" Value="#222222" />
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style
|
|
|
|
x:Key="IconCircleButtonStyle"
|
2020-01-25 23:25:51 +00:00
|
|
|
BasedOn="{StaticResource MahApps.Styles.Button.Circle}"
|
2019-11-30 09:08:04 +00:00
|
|
|
TargetType="ButtonBase">
|
|
|
|
<Setter Property="Focusable" Value="False" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="BorderThickness" Value="2" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="#222222" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Setter Property="Background" Value="#333333" />
|
2020-01-25 23:25:51 +00:00
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Gray7}" />
|
2019-11-30 09:08:04 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource IntenseComplementaryBrush}" />
|
2019-11-24 23:42:28 +00:00
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
2019-10-28 04:35:31 +00:00
|
|
|
</Style>
|
|
|
|
|
2019-12-14 04:40:56 +00:00
|
|
|
<Style x:Key="IconBareButtonStyle" TargetType="ButtonBase">
|
|
|
|
<Setter Property="Focusable" Value="False" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
<Border Background="{TemplateBinding Background}" CornerRadius="3">
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2020-01-25 23:25:51 +00:00
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Gray7}" />
|
2019-12-14 04:40:56 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource IntenseComplementaryBrush}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter Property="Background" Value="{StaticResource BackgroundBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
2020-02-02 07:33:12 +00:00
|
|
|
<Style
|
|
|
|
x:Key="TransparentBackgroundButtonStyle"
|
|
|
|
BasedOn="{StaticResource MainButtonStyle}"
|
|
|
|
TargetType="{x:Type Button}">
|
|
|
|
<Setter Property="Focusable" Value="False" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Gray7}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource IntenseComplementaryBrush}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DarkBackgroundBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource DarkComplementaryBrush}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DarkBackgroundBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- ToggleButton -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource ButtonBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="Padding" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
2019-07-31 03:59:19 +00:00
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
2019-11-10 08:12:51 +00:00
|
|
|
CornerRadius="3"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsChecked" Value="false" />
|
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource MouseOverButtonBackground}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource MouseOverButtonForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource DisabledButtonBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource PressedButtonBackground}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Expander -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="19" />
|
|
|
|
<RowDefinition Height="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.LayoutTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<TransformGroup.Children>
|
|
|
|
<TransformCollection>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="-90" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformCollection>
|
|
|
|
</TransformGroup.Children>
|
|
|
|
</TransformGroup>
|
|
|
|
</Grid.LayoutTransform>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="arrow"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource ExpanderNormalArrow}"
|
|
|
|
SnapsToDevicePixels="false"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="2" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Row="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="0,4,0,0"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Data" Value="{StaticResource ExpanderCheckedArrow}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="19" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.LayoutTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<TransformGroup.Children>
|
|
|
|
<TransformCollection>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="180" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformCollection>
|
|
|
|
</TransformGroup.Children>
|
|
|
|
</TransformGroup>
|
|
|
|
</Grid.LayoutTransform>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="arrow"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource ExpanderNormalArrow}"
|
|
|
|
SnapsToDevicePixels="false"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="2" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="4,0,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Data" Value="{StaticResource ExpanderCheckedArrow}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="19" />
|
|
|
|
<RowDefinition Height="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.LayoutTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<TransformGroup.Children>
|
|
|
|
<TransformCollection>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="90" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformCollection>
|
|
|
|
</TransformGroup.Children>
|
|
|
|
</TransformGroup>
|
|
|
|
</Grid.LayoutTransform>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="arrow"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource ExpanderNormalArrow}"
|
|
|
|
SnapsToDevicePixels="false"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="2" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Row="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="0,4,0,0"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Data" Value="{StaticResource ExpanderCheckedArrow}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ExpanderHeaderFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="0"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="Black"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="19" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="arrow"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource ExpanderNormalArrow}"
|
|
|
|
SnapsToDevicePixels="false"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="2" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="4,0,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Data" Value="{StaticResource ExpanderCheckedArrow}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type Expander}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
|
<Setter Property="FontFamily" Value="Calibri light" />
|
|
|
|
<Setter Property="Padding" Value="2" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource Expander.Background}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Expander}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="4"
|
|
|
|
SnapsToDevicePixels="true">
|
2019-07-31 03:59:19 +00:00
|
|
|
<DockPanel>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ToggleButton
|
|
|
|
x:Name="HeaderSite"
|
|
|
|
MinWidth="0"
|
|
|
|
MinHeight="0"
|
|
|
|
Margin="5,1,1,1"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
|
|
|
DockPanel.Dock="Top"
|
|
|
|
FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontStretch="{TemplateBinding FontStretch}"
|
|
|
|
FontStyle="{TemplateBinding FontStyle}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Style="{DynamicResource ExpanderToggleButtonStyle}" />
|
|
|
|
<ContentPresenter
|
|
|
|
x:Name="ExpandSite"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
DockPanel.Dock="Bottom"
|
|
|
|
Focusable="false"
|
|
|
|
Visibility="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</DockPanel>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsExpanded" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="ExpandSite" Property="Visibility" Value="Visible" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="ExpandDirection" Value="Right">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="ExpandSite" Property="DockPanel.Dock" Value="Right" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="DockPanel.Dock" Value="Left" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="Style" Value="{StaticResource ExpanderRightHeaderStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="ExpandDirection" Value="Up">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="ExpandSite" Property="DockPanel.Dock" Value="Top" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="DockPanel.Dock" Value="Bottom" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="Style" Value="{StaticResource ExpanderUpHeaderStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="ExpandDirection" Value="Left">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="ExpandSite" Property="DockPanel.Dock" Value="Left" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="DockPanel.Dock" Value="Right" />
|
|
|
|
<Setter TargetName="HeaderSite" Property="Style" Value="{StaticResource ExpanderLeftHeaderStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="ExpanderToggleButtonStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="8" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Path Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="arrow"
|
|
|
|
Width="8"
|
|
|
|
Height="4.5"
|
|
|
|
Margin="2.068,6.27,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Data="{StaticResource ExpanderToggleButtonArrow}"
|
|
|
|
Fill="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="135" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="4,0,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Margin" Value="-0.526,4.842,0,0" />
|
|
|
|
<Setter TargetName="arrow" Property="RenderTransform">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter.Value>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="90" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsEnabled" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- CheckBox -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="EmptyCheckBoxFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="1"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="{StaticResource CheckBoxStroke}"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="CheckRadioFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="14,0,0,0"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="{StaticResource CheckBoxStroke}"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type CheckBox}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource CheckBoxFillNormal}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource CheckBoxStroke}" />
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource EmptyCheckBoxFocusVisual}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
|
|
|
<BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
|
|
|
|
<BulletDecorator.Bullet>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="CheckBoxBorder"
|
|
|
|
Width="12"
|
|
|
|
Height="12"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<Path
|
|
|
|
x:Name="CheckMark"
|
|
|
|
Width="Auto"
|
|
|
|
Height="Auto"
|
|
|
|
Margin="1,1.007,1,1"
|
|
|
|
Data="{StaticResource CheckBoxCheckmark}"
|
|
|
|
Fill="{StaticResource ButtonForeground}"
|
|
|
|
Stretch="Fill" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</BulletDecorator.Bullet>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</BulletDecorator>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="HasContent" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}" />
|
|
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource CheckBoxDisabledForeground}" />
|
|
|
|
<Setter TargetName="CheckBoxBorder" Property="BorderBrush" Value="{StaticResource CheckBoxDisabledStroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="CheckBoxBorder" Property="BorderBrush" Value="{StaticResource CheckBoxMouseOverStroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- RadioButton -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="RadioFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
Margin="14,0,0,0"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
|
|
StrokeDashArray="1 2"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type RadioButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource RadioButtonForeground}" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource RadioButtonBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource RadioButtonStroke}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
|
|
|
<BulletDecorator Background="Transparent">
|
|
|
|
<BulletDecorator.Bullet>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="RadioButtonBorder"
|
|
|
|
Width="12"
|
|
|
|
Height="12"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="6">
|
|
|
|
<Border
|
|
|
|
x:Name="RadioMark"
|
|
|
|
Width="6"
|
|
|
|
Height="6"
|
|
|
|
Background="{StaticResource RadioButtonForeground}"
|
|
|
|
BorderBrush="{StaticResource RadioButtonForeground}"
|
|
|
|
CornerRadius="6" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</BulletDecorator.Bullet>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</BulletDecorator>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="HasContent" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource RadioFocusVisual}" />
|
|
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource RadioButtonDisabledForeground}" />
|
|
|
|
<Setter TargetName="RadioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButtonDisabledStroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="RadioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButtonMouseOverStroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="RadioMark" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- ListView -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type ListView}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource ListBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ListBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ListView}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Padding="1"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
2020-01-04 23:19:54 +00:00
|
|
|
<ScrollViewer
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
Focusable="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsGrouping" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>-->
|
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type ListViewItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="Padding" Value="2,0,0,0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ListViewItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SelectedListItem}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource SelectedListItemForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<!--<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="false"/>
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}}"/>
|
|
|
|
</MultiTrigger>-->
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsSelected" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource MouseOverListItem}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Label -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Style TargetType="{x:Type Label}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Padding" Value="5" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Top" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Label}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledButtonForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- TreeView -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Style TargetType="{x:Type TreeView}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource TreeViewBackground}" />
|
|
|
|
<Setter Property="Padding" Value="1" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TreeView}">
|
|
|
|
<Border x:Name="Bd" SnapsToDevicePixels="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<ScrollViewer
|
|
|
|
x:Name="_tv_scrollviewer_"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
CanContentScroll="false"
|
|
|
|
Focusable="false"
|
|
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
|
|
|
<ItemsPresenter />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource TreeViewDisabledForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<!--<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
|
|
|
|
<Setter Property="CanContentScroll" TargetName="_tv_scrollviewer_" Value="true"/>
|
|
|
|
</Trigger>-->
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<!--<Style.Triggers>
|
|
|
|
<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
|
|
|
|
<Setter Property="ItemsPanel">
|
|
|
|
<Setter.Value>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<VirtualizingStackPanel/>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>-->
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="TreeViewItemFocusVisual">
|
|
|
|
<Setter Property="Control.Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="MinHeight" Value="21" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="Padding" Value="2,4,2,3" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TreeViewItem}">
|
|
|
|
<ControlTemplate.Resources>
|
2019-11-10 08:12:51 +00:00
|
|
|
<darkBlendTheme:LeftMarginMultiplierConverter x:Key="LengthConverter" Length="15" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate.Resources>
|
|
|
|
<StackPanel>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Name="Bd"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}">
|
|
|
|
<Grid Margin="{Binding Converter={StaticResource LengthConverter}, RelativeSource={RelativeSource TemplatedParent}}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="15" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ToggleButton Grid.Column="0"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Expander"
|
|
|
|
ClickMode="Press"
|
|
|
|
IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Style="{DynamicResource TreeViewToggleButtonStyle}" />
|
|
|
|
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_Header"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
ContentSource="Header" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter x:Name="ItemsHost" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</StackPanel>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsExpanded" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="ItemsHost" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="HasItems" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Expander" Property="Visibility" Value="Hidden" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="HasHeader" Value="false" />
|
|
|
|
<Condition Property="Width" Value="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="HasHeader" Value="false" />
|
|
|
|
<Condition Property="Height" Value="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="PART_Header" Property="MinHeight" Value="21" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsSelected" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SelectedListItem}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource SelectedListItemForeground}" />
|
|
|
|
<Setter TargetName="Expander" Property="Style" Value="{DynamicResource TreeViewSelectedToggleButtonStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition SourceName="Bd" Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsSelected" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource MouseOverListItem}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<!--<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
<Condition Property="IsSelectionActive" Value="false"/>
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
|
|
</MultiTrigger>-->
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource TreeViewDisabledForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="TreeViewToggleButtonStyle" TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Focusable" Value="False" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="8" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Path Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="arrow"
|
|
|
|
Width="8"
|
|
|
|
Height="4.5"
|
|
|
|
Margin="2.068,6.27,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Data="{StaticResource ExpanderToggleButtonArrow}"
|
|
|
|
Fill="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill"
|
|
|
|
Stroke="{StaticResource Expander.Static.Arrow.Stroke}"
|
|
|
|
StrokeThickness="1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="135" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="4,0,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Margin" Value="-0.526,4.842,0,0" />
|
|
|
|
<Setter TargetName="arrow" Property="RenderTransform">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter.Value>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="90" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Stroke" Value="{StaticResource Expander.Disabled.Arrow.Stroke}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="TreeViewSelectedToggleButtonStyle" TargetType="{x:Type ToggleButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Focusable" Value="False" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
<Border Padding="{TemplateBinding Padding}">
|
|
|
|
<Grid Background="Transparent" SnapsToDevicePixels="False">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="8" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Path Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="arrow"
|
|
|
|
Width="8"
|
|
|
|
Height="4.5"
|
|
|
|
Margin="2.068,6.27,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Data="{StaticResource ExpanderToggleButtonArrow}"
|
|
|
|
Fill="{StaticResource TreeViewBackground}"
|
|
|
|
RenderTransformOrigin="0.5,0.5"
|
|
|
|
Stretch="Fill"
|
|
|
|
Stroke="{StaticResource TreeViewBackground}"
|
|
|
|
StrokeThickness="1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Path.RenderTransform>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="135" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Path.RenderTransform>
|
|
|
|
</Path>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="4,0,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsChecked" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Margin" Value="-0.526,4.842,0,0" />
|
|
|
|
<Setter TargetName="arrow" Property="RenderTransform">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter.Value>
|
|
|
|
<TransformGroup>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RotateTransform Angle="90" />
|
|
|
|
<TranslateTransform X="0.17819090885901012" Y="0.43019090885900946" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</TransformGroup>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsChecked" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="arrow" Property="Fill" Value="{StaticResource TreeViewBackground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger Property="IsEnabled" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- StatusBar -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type StatusBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Margin" Value="1,0,3,0" />
|
|
|
|
<Setter Property="Height" Value="18" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource WindowBackgroundBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}" />
|
|
|
|
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}" />
|
|
|
|
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}" />
|
|
|
|
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type StatusBar}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type StatusBarItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Margin" Value="4,0,4,0" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type StatusBarItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource TextBoxDisabledForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
<!-- Menu -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Style TargetType="{x:Type Menu}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource MenuBackground}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Menu}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type ContextMenu}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource MenuBackground}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ContextMenu}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{StaticResource SubMenuBackgroundBrush}"
|
|
|
|
BorderBrush="{StaticResource SubMenuBorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Bg"
|
|
|
|
Fill="{TemplateBinding Background}"
|
|
|
|
Stroke="{TemplateBinding BorderBrush}"
|
|
|
|
StrokeThickness="1" />
|
|
|
|
<Rectangle x:Name="InnerBorder" Margin="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition
|
|
|
|
Width="Auto"
|
|
|
|
MinWidth="14"
|
|
|
|
SharedSizeGroup="MenuItemIconColumnGroup" />
|
|
|
|
<ColumnDefinition Width="4" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition MinWidth="37" />
|
|
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup" />
|
|
|
|
<ColumnDefinition Width="17" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="Icon"
|
|
|
|
Margin="1"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ContentSource="Icon"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
<Border
|
|
|
|
x:Name="GlyphPanel"
|
|
|
|
Margin="1"
|
|
|
|
BorderBrush="Transparent"
|
|
|
|
Visibility="Hidden">
|
|
|
|
<Path
|
|
|
|
x:Name="Glyph"
|
|
|
|
Width="7.5"
|
|
|
|
Height="7.5"
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource Checkmark}"
|
|
|
|
Fill="{StaticResource ForegroundBrush}"
|
|
|
|
FlowDirection="LeftToRight"
|
|
|
|
Stretch="Fill" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Content"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Column="4"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
Text="{TemplateBinding InputGestureText}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
|
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsHighlighted" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemSelectionFill}" />
|
|
|
|
<Setter TargetName="Content" Property="TextBlock.Foreground" Value="{StaticResource MouseOverForegroundBrush}" />
|
|
|
|
<Setter TargetName="Glyph" Property="Fill" Value="{StaticResource MouseOverForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
|
|
|
<Setter TargetName="Glyph" Property="Fill" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Style
|
|
|
|
x:Key="MenuScrollButton"
|
|
|
|
BasedOn="{x:Null}"
|
|
|
|
TargetType="{x:Type RepeatButton}">
|
|
|
|
<Setter Property="ClickMode" Value="Hover" />
|
|
|
|
<Setter Property="MinWidth" Value="0" />
|
|
|
|
<Setter Property="MinHeight" Value="0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<DockPanel
|
|
|
|
x:Name="DPButton"
|
|
|
|
Background="{StaticResource SubMenuRepeatButtonBrush}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
x:Name="ContentContainer"
|
|
|
|
Margin="2,0,2,5"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</DockPanel>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsPressed" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="DPButton" Property="Background" Value="{StaticResource SubMenuHoverRepeatButtonBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
<MenuScrollingVisibilityConverter x:Key="MenuScrollingVisibilityConverter" />
|
|
|
|
<Style
|
|
|
|
x:Key="{ComponentResourceKey ResourceId=MenuScrollViewer,
|
|
|
|
TypeInTargetAssembly={x:Type FrameworkElement}}"
|
|
|
|
BasedOn="{x:Null}"
|
|
|
|
TargetType="{x:Type ScrollViewer}">
|
|
|
|
<Setter Property="HorizontalScrollBarVisibility" Value="Hidden" />
|
|
|
|
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border Grid.Row="1" Grid.Column="0">
|
|
|
|
<ScrollContentPresenter Margin="{TemplateBinding Padding}" CanContentScroll="{TemplateBinding CanContentScroll}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2020-07-25 22:15:26 +00:00
|
|
|
<RepeatButton Grid.Row="0" Grid.Column="0"
|
2019-11-10 08:12:51 +00:00
|
|
|
Command="{x:Static ScrollBar.LineUpCommand}"
|
|
|
|
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Focusable="false"
|
|
|
|
Style="{StaticResource MenuScrollButton}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<RepeatButton.Visibility>
|
2019-11-10 08:12:51 +00:00
|
|
|
<MultiBinding
|
|
|
|
Converter="{StaticResource MenuScrollingVisibilityConverter}"
|
|
|
|
ConverterParameter="0"
|
|
|
|
FallbackValue="Visibility.Collapsed">
|
|
|
|
<Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiBinding>
|
|
|
|
</RepeatButton.Visibility>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="UpArrow"
|
|
|
|
Data="{StaticResource MenuScrollUpArrowGeometry}"
|
|
|
|
Fill="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</RepeatButton>
|
2020-07-25 22:15:26 +00:00
|
|
|
<RepeatButton Grid.Row="2" Grid.Column="0"
|
2019-11-10 08:12:51 +00:00
|
|
|
Command="{x:Static ScrollBar.LineDownCommand}"
|
|
|
|
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Focusable="false"
|
|
|
|
Style="{StaticResource MenuScrollButton}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<RepeatButton.Visibility>
|
2019-11-10 08:12:51 +00:00
|
|
|
<MultiBinding
|
|
|
|
Converter="{StaticResource MenuScrollingVisibilityConverter}"
|
|
|
|
ConverterParameter="100"
|
|
|
|
FallbackValue="Visibility.Collapsed">
|
|
|
|
<Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
|
|
|
<Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiBinding>
|
|
|
|
</RepeatButton.Visibility>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Path
|
|
|
|
x:Name="DownArrow"
|
|
|
|
Data="{StaticResource MenuScrollDownArrowGeometry}"
|
|
|
|
Fill="{StaticResource ForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</RepeatButton>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Bg"
|
|
|
|
Margin="1"
|
|
|
|
Fill="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<DockPanel>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="Icon"
|
|
|
|
Margin="4,0,6,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ContentSource="Icon"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
<Path
|
|
|
|
x:Name="GlyphPanel"
|
|
|
|
Width="7.5"
|
|
|
|
Height="7.5"
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource Checkmark}"
|
|
|
|
Fill="{TemplateBinding Foreground}"
|
|
|
|
FlowDirection="LeftToRight"
|
|
|
|
Stretch="Fill"
|
|
|
|
Visibility="Collapsed" />
|
|
|
|
<ContentPresenter
|
|
|
|
x:Name="Content"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</DockPanel>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Popup
|
|
|
|
x:Name="PART_Popup"
|
|
|
|
AllowsTransparency="true"
|
|
|
|
Focusable="false"
|
|
|
|
HorizontalOffset="1"
|
|
|
|
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Placement="Bottom"
|
|
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
|
|
|
VerticalOffset="-1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Border x:Name="Shdw" Background="Transparent">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="SubMenuBorder"
|
|
|
|
Background="{StaticResource SubMenuBackgroundBrush}"
|
|
|
|
BorderBrush="{StaticResource SubMenuBorderBrush}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ScrollViewer
|
|
|
|
x:Name="SubMenuScrollViewer"
|
|
|
|
Margin="1,0"
|
|
|
|
Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
|
|
|
|
TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid RenderOptions.ClearTypeHint="Enabled">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Canvas
|
|
|
|
Width="0"
|
|
|
|
Height="0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top">
|
|
|
|
<Rectangle
|
|
|
|
x:Name="OpaqueRect"
|
|
|
|
Width="{Binding ActualWidth, ElementName=SubMenuBorder}"
|
|
|
|
Height="{Binding ActualHeight, ElementName=SubMenuBorder}"
|
|
|
|
Fill="{StaticResource SubMenuBackgroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Canvas>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter
|
|
|
|
x:Name="ItemsPresenter"
|
|
|
|
Margin="2"
|
|
|
|
Grid.IsSharedSizeScope="true"
|
|
|
|
KeyboardNavigation.DirectionalNavigation="Cycle"
|
|
|
|
KeyboardNavigation.TabNavigation="Cycle"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="PART_Popup" Property="PopupAnimation" Value="None" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
|
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
|
|
|
|
<Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
|
|
|
|
<Setter TargetName="Shdw" Property="Background" Value="#71000000" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsHighlighted" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemPressedFill}" />
|
|
|
|
<Setter TargetName="Content" Property="TextBlock.Foreground" Value="{StaticResource MouseOverForegroundBrush}" />
|
|
|
|
<Setter TargetName="GlyphPanel" Property="Fill" Value="{StaticResource MouseOverForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsKeyboardFocused" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemPressedFill}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsSubmenuOpen" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemPressedFill}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
|
|
|
<Setter TargetName="GlyphPanel" Property="Fill" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="SubMenuScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}" />
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=SubMenuScrollViewer}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=TopLevelItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Bg"
|
|
|
|
Margin="1"
|
|
|
|
Fill="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<DockPanel>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="Icon"
|
|
|
|
Margin="4,0,6,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ContentSource="Icon"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
<Path
|
|
|
|
x:Name="GlyphPanel"
|
|
|
|
Width="7.5"
|
|
|
|
Height="7.5"
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource Checkmark}"
|
|
|
|
Fill="{TemplateBinding Foreground}"
|
|
|
|
FlowDirection="LeftToRight"
|
|
|
|
Stretch="Fill"
|
|
|
|
Visibility="Collapsed" />
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
|
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsHighlighted" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemSelectionFill}" />
|
|
|
|
<Setter Property="TextBlock.Foreground" Value="{StaticResource MouseOverForegroundBrush}" />
|
|
|
|
<Setter TargetName="GlyphPanel" Property="Fill" Value="{StaticResource MouseOverForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsKeyboardFocused" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemPressedFill}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
|
|
|
<Setter TargetName="GlyphPanel" Property="Fill" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
<ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Bg"
|
|
|
|
Fill="{TemplateBinding Background}"
|
|
|
|
Stroke="{TemplateBinding BorderBrush}"
|
|
|
|
StrokeThickness="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition
|
|
|
|
Width="Auto"
|
|
|
|
MinWidth="14"
|
|
|
|
SharedSizeGroup="MenuItemIconColumnGroup" />
|
|
|
|
<ColumnDefinition Width="4" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition MinWidth="37" />
|
|
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup" />
|
|
|
|
<ColumnDefinition Width="17" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="Icon"
|
|
|
|
Margin="1"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ContentSource="Icon"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
<Border
|
|
|
|
x:Name="GlyphPanel"
|
|
|
|
Margin="1"
|
|
|
|
Background="Transparent"
|
|
|
|
Visibility="Hidden">
|
|
|
|
<Path
|
|
|
|
x:Name="Glyph"
|
|
|
|
Width="7.5"
|
|
|
|
Height="7.5"
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource Checkmark}"
|
|
|
|
Fill="{StaticResource ForegroundBrush}"
|
|
|
|
FlowDirection="LeftToRight"
|
|
|
|
Stretch="Fill" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Column="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Content"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Column="4"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
Text="{TemplateBinding InputGestureText}"
|
|
|
|
Visibility="Collapsed" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<Path Grid.Column="5"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="RightArrowPath"
|
|
|
|
Margin="4,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Data="{StaticResource RightArrow}"
|
|
|
|
Fill="{TemplateBinding Foreground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Popup
|
|
|
|
x:Name="PART_Popup"
|
|
|
|
AllowsTransparency="true"
|
|
|
|
Focusable="false"
|
|
|
|
HorizontalOffset="-2"
|
|
|
|
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Placement="Right"
|
|
|
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
|
|
|
VerticalOffset="-3">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Border x:Name="Shdw" Background="Transparent">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="SubMenuBorder"
|
|
|
|
Background="{StaticResource SubMenuBackgroundBrush}"
|
|
|
|
BorderBrush="{StaticResource SubMenuBorderBrush}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ScrollViewer
|
|
|
|
x:Name="SubMenuScrollViewer"
|
|
|
|
Margin="1,0"
|
|
|
|
Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
|
|
|
|
TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid RenderOptions.ClearTypeHint="Enabled">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Canvas
|
|
|
|
Width="0"
|
|
|
|
Height="0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top">
|
|
|
|
<Rectangle
|
|
|
|
x:Name="OpaqueRect"
|
|
|
|
Width="{Binding ActualWidth, ElementName=SubMenuBorder}"
|
|
|
|
Height="{Binding ActualHeight, ElementName=SubMenuBorder}"
|
|
|
|
Fill="{StaticResource SubMenuBackgroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Canvas>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter
|
|
|
|
x:Name="ItemsPresenter"
|
|
|
|
Margin="2"
|
|
|
|
Grid.IsSharedSizeScope="true"
|
|
|
|
KeyboardNavigation.DirectionalNavigation="Cycle"
|
|
|
|
KeyboardNavigation.TabNavigation="Cycle"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="PART_Popup" Property="PopupAnimation" Value="None" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="Icon" Value="{x:Null}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
|
|
|
|
<Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
|
|
|
|
<Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
|
|
|
|
<Setter TargetName="Shdw" Property="Background" Value="#71000000" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsHighlighted" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bg" Property="Fill" Value="{StaticResource MenuItemSelectionFill}" />
|
|
|
|
<Setter TargetName="Content" Property="TextBlock.Foreground" Value="{StaticResource MouseOverForegroundBrush}" />
|
|
|
|
<Setter TargetName="RightArrowPath" Property="Fill" Value="{StaticResource MouseOverForegroundBrush}" />
|
|
|
|
<Setter TargetName="Glyph" Property="Fill" Value="{StaticResource MouseOverForegroundBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
|
|
|
<Setter TargetName="Glyph" Property="Fill" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Trigger SourceName="SubMenuScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}" />
|
|
|
|
<Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=SubMenuScrollViewer}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
<Style TargetType="{x:Type MenuItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="MinHeight" Value="21" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
|
|
|
<Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=SubmenuItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="Role" Value="TopLevelHeader">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Height" Value="25" />
|
|
|
|
<Setter Property="Padding" Value="7,6,8,3" />
|
|
|
|
<Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="Role" Value="TopLevelItem">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Height" Value="25" />
|
|
|
|
<Setter Property="Padding" Value="7,6,8,3" />
|
|
|
|
<Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=TopLevelItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="Role" Value="SubmenuHeader">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Height" Value="21" />
|
|
|
|
<Setter Property="Padding" Value="2,4,2,2" />
|
|
|
|
<Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=SubmenuHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="Role" Value="SubmenuItem">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Height" Value="21" />
|
|
|
|
<Setter Property="Padding" Value="2,4,2,2" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- Separator -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="{x:Type Separator}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Separator}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Grid
|
|
|
|
Margin="3,2,3,2"
|
|
|
|
SnapsToDevicePixels="true"
|
|
|
|
UseLayoutRounding="False">
|
|
|
|
<Rectangle Height="1" Fill="{StaticResource MenuSeparatorBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- ListBox -->
|
2019-07-31 03:59:19 +00:00
|
|
|
|
|
|
|
<Style TargetType="{x:Type ListBox}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource ListBackground}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ListBorder}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ListBox}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Padding="1"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
|
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsGrouping" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>-->
|
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type ListBoxItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
|
|
<Setter Property="Padding" Value="2,0,0,0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Bd"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="true">
|
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="true">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SelectedListItem}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource SelectedListItemForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<!--<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="false"/>
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}}"/>
|
|
|
|
</MultiTrigger>-->
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsSelected" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource MouseOverListItem}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledMenuForeground}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- GroupBox -->
|
|
|
|
<BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type GroupBox}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
|
|
|
<Grid SnapsToDevicePixels="true">
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="6" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="6" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="6" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Border Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Grid.ColumnSpan="4"
|
2019-11-10 08:12:51 +00:00
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="Transparent"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3">
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Border Grid.ColumnSpan="4"
|
|
|
|
CornerRadius="3"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.RowSpan="3">-->
|
|
|
|
<Border.OpacityMask>
|
2019-11-10 08:12:51 +00:00
|
|
|
<MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
|
|
|
|
<Binding ElementName="Header" Path="ActualWidth" />
|
|
|
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
|
|
|
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiBinding>
|
|
|
|
</Border.OpacityMask>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3">
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Border BorderBrush="White"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="4"/>-->
|
|
|
|
</Border>
|
|
|
|
</Border>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Border Grid.Row="0" Grid.RowSpan="2" Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="Header"
|
|
|
|
Padding="3,1,3,0">
|
|
|
|
<ContentPresenter
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ContentPresenter Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGrid styles -->
|
|
|
|
|
|
|
|
<!-- DataGridSelectAllButtonStyle -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
<Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Border"
|
|
|
|
Fill="{StaticResource DataGridHeaderBackgroundBrush}"
|
|
|
|
SnapsToDevicePixels="True" />
|
|
|
|
<Polygon
|
|
|
|
x:Name="Arrow"
|
|
|
|
Margin="8,8,3,3"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
Fill="Black"
|
|
|
|
Opacity="0.15"
|
|
|
|
Points="0,10 10,10 10,0"
|
|
|
|
Stretch="Uniform" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Border" Property="Stroke" Value="{StaticResource DataGridHeaderMouseOverBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Border" Property="Fill" Value="{StaticResource DataGridHeaderMouseOverBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="Arrow" Property="Visibility" Value="Collapsed" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGrid -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type DataGrid}">
|
|
|
|
<Setter Property="RowHeight" Value="22" />
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource GridLinesBrush}" />
|
|
|
|
<Setter Property="VerticalGridLinesBrush" Value="{DynamicResource GridLinesBrush}" />
|
|
|
|
<Setter Property="Background" Value="{DynamicResource DataGridBackgroundBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DataGridHeaderBorderBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected" />
|
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
|
|
|
<Setter Property="ScrollViewer.PanningMode" Value="Both" />
|
|
|
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGrid}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="True">
|
2019-07-31 03:59:19 +00:00
|
|
|
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
|
|
|
|
<ScrollViewer.Template>
|
|
|
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Button
|
|
|
|
Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
|
|
|
|
Command="{x:Static DataGrid.SelectAllCommand}"
|
|
|
|
Focusable="false"
|
|
|
|
Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle,
|
|
|
|
TypeInTargetAssembly={x:Type DataGrid}}}"
|
|
|
|
Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<DataGridColumnHeadersPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_ColumnHeadersPresenter"
|
|
|
|
Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollContentPresenter Grid.Row="1" Grid.ColumnSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_ScrollContentPresenter"
|
|
|
|
CanContentScroll="{TemplateBinding CanContentScroll}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollBar Grid.Row="1" Grid.Column="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_VerticalScrollBar"
|
|
|
|
Maximum="{TemplateBinding ScrollableHeight}"
|
|
|
|
Orientation="Vertical"
|
|
|
|
Style="{StaticResource VerticalScrollBarStyle}"
|
|
|
|
ViewportSize="{TemplateBinding ViewportHeight}"
|
|
|
|
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
|
|
|
|
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
|
<Grid Grid.Row="2" Grid.Column="1">
|
2019-07-31 03:59:19 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ScrollBar Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
x:Name="PART_HorizontalScrollBar"
|
|
|
|
Maximum="{TemplateBinding ScrollableWidth}"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
Style="{StaticResource HorisontalScrollBarStyle}"
|
|
|
|
ViewportSize="{TemplateBinding ViewportWidth}"
|
|
|
|
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
|
|
|
|
Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ScrollViewer.Template>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsGrouping" Value="true" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<!--<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>-->
|
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- ColumnHeaderGripperStyle -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Width" Value="8" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Cursor" Value="SizeWE" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGridColumnHeader -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="BorderThickness" Value="1,1,0,1" />
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DataGridHeaderBorderBrush}" />
|
|
|
|
<Setter Property="Background" Value="{DynamicResource DataGridHeaderBackgroundBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
|
|
|
|
<Setter Property="Padding" Value="3" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
<Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<ContentPresenter
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Thumb
|
|
|
|
x:Name="PART_LeftHeaderGripper"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Style="{StaticResource ColumnHeaderGripperStyle}" />
|
|
|
|
<Thumb
|
|
|
|
x:Name="PART_RightHeaderGripper"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Style="{StaticResource ColumnHeaderGripperStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource DataGridHeaderMouseOverBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="Black" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGridRow -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{DynamicResource DataGridRowBackgroundBrush}" />
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="true" />
|
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="Border.CornerRadius" Value="3" />
|
|
|
|
<Setter Property="Validation.ErrorTemplate" Value="{x:Null}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="ValidationErrorTemplate">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate>
|
2019-11-10 08:12:51 +00:00
|
|
|
<TextBlock
|
|
|
|
Margin="2,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="Red"
|
|
|
|
Text="!" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridRow}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="DGR_Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="0"
|
|
|
|
CornerRadius="{TemplateBinding Border.CornerRadius}"
|
|
|
|
SnapsToDevicePixels="True">
|
2019-07-31 03:59:19 +00:00
|
|
|
<SelectiveScrollingGrid>
|
|
|
|
<SelectiveScrollingGrid.ColumnDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</SelectiveScrollingGrid.ColumnDefinitions>
|
|
|
|
<SelectiveScrollingGrid.RowDefinitions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</SelectiveScrollingGrid.RowDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<DataGridCellsPresenter Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
ItemsPanel="{TemplateBinding ItemsPanel}"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<DataGridDetailsPresenter Grid.Row="1" Grid.Column="1"
|
2019-11-10 08:12:51 +00:00
|
|
|
SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
|
|
|
|
Visibility="{TemplateBinding DetailsVisibility}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<DataGridRowHeader Grid.RowSpan="2"
|
2019-11-10 08:12:51 +00:00
|
|
|
SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
|
|
|
|
Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Row}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</SelectiveScrollingGrid>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsMouseOver" Value="true" />
|
|
|
|
<Condition Property="IsSelected" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter TargetName="DGR_Border" Property="Background" Value="{StaticResource MouseOverListItem}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter TargetName="DGR_Border" Property="Background" Value="{StaticResource DataGridRowSelectedBrush}" />
|
|
|
|
<Setter TargetName="DGR_Border" Property="CornerRadius" Value="3" />
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsNewItem" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Margin" Value="{Binding NewItemMargin, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{DynamicResource DataGridRowSelectedBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="Black" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGridCell -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
<Setter Property="Padding" Value="5,0,5,0" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
x:Name="Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
SnapsToDevicePixels="True">
|
|
|
|
<ContentPresenter
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Foreground" Value="Black" />
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static DataGrid.FocusBorderBrushKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Condition Property="IsSelected" Value="true" />
|
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="false" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger.Conditions>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{StaticResource DataGridRowSelectedBrush}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- RowHeaderGripperStyle -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style x:Key="RowHeaderGripperStyle" TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Height" Value="8" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Cursor" Value="SizeNS" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-10 08:12:51 +00:00
|
|
|
|
|
|
|
<!-- DataGridRowHeader -->
|
2019-07-31 03:59:19 +00:00
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
2019-11-10 08:12:51 +00:00
|
|
|
<Setter Property="Background" Value="{DynamicResource DataGridBackgroundBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DataGridBackgroundBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
2019-07-31 03:59:19 +00:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
<Grid>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Border
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
2019-07-31 03:59:19 +00:00
|
|
|
<StackPanel Orientation="Horizontal">
|
2019-11-10 08:12:51 +00:00
|
|
|
<ContentPresenter
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
<Control
|
|
|
|
SnapsToDevicePixels="false"
|
|
|
|
Template="{Binding ValidationErrorTemplate, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}"
|
|
|
|
Visibility="{Binding (Validation.HasError), Converter={StaticResource bool2VisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
2019-11-10 08:12:51 +00:00
|
|
|
<Thumb
|
|
|
|
x:Name="PART_TopHeaderGripper"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Style="{StaticResource RowHeaderGripperStyle}" />
|
|
|
|
<Thumb
|
|
|
|
x:Name="PART_BottomHeaderGripper"
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
Style="{StaticResource RowHeaderGripperStyle}" />
|
2019-07-31 03:59:19 +00:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2019-11-17 07:28:33 +00:00
|
|
|
|
|
|
|
<!-- FilePicker -->
|
|
|
|
<Style x:Key="MainFilePickerStyle" TargetType="{x:Type local:FilePicker}">
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
</Style>
|
|
|
|
<Style BasedOn="{StaticResource MainFilePickerStyle}" TargetType="{x:Type local:FilePicker}" />
|
2020-01-04 23:19:54 +00:00
|
|
|
|
2020-01-25 23:25:51 +00:00
|
|
|
<Style BasedOn="{StaticResource MahApps.Styles.TabControl}" TargetType="TabControl" />
|
|
|
|
<Style BasedOn="{StaticResource MahApps.Styles.TabItem}" TargetType="{x:Type TabItem}" />
|
2020-08-08 12:44:07 +00:00
|
|
|
<Style BasedOn="{StaticResource MahApps.Styles.Slider}" TargetType="Slider" />
|
2020-01-04 23:19:54 +00:00
|
|
|
|
2020-07-25 23:37:43 +00:00
|
|
|
<Style BasedOn="{StaticResource MahApps.Styles.ToolTip}" TargetType="ToolTip">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Control.Background}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.Gray7}" />
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Tooltip}" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.ThemeForeground}" />
|
|
|
|
<Setter Property="Padding" Value="6,3" />
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type ToolTip}">
|
|
|
|
<Border
|
|
|
|
Name="Root"
|
|
|
|
MaxWidth="500"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Opacity="0"
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
|
|
|
<Border.Resources>
|
|
|
|
<Storyboard x:Key="Visible State" />
|
|
|
|
<Storyboard x:Key="Normal State" />
|
|
|
|
</Border.Resources>
|
|
|
|
<TextBlock
|
|
|
|
Margin="5"
|
|
|
|
Text="{TemplateBinding Content}"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="OpenStates">
|
|
|
|
<VisualStateGroup.Transitions>
|
|
|
|
<VisualTransition
|
|
|
|
GeneratedDuration="0:0:0.3"
|
|
|
|
From="Open"
|
|
|
|
To="Closed" />
|
|
|
|
</VisualStateGroup.Transitions>
|
|
|
|
<VisualState x:Name="Closed">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0" />
|
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Open">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1" />
|
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2019-07-31 03:59:19 +00:00
|
|
|
</ResourceDictionary>
|