Created
July 31, 2023 06:55
-
-
Save AveYo/b226156dbcbea6253ffa854061fe1131 to your computer and use it in GitHub Desktop.
Retrobar Windows 10 PitchBlack (wip)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ResourceDictionary | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:controls="clr-namespace:RetroBar.Controls" | |
xmlns:converters="clr-namespace:RetroBar.Converters" | |
xmlns:utilities="clr-namespace:RetroBar.Utilities" | |
xmlns:system="clr-namespace:System;assembly=mscorlib"> | |
<!-- Windows 10 PitchBlack center by AveYo --> | |
<Style x:Key="TaskListWrapPanel" TargetType="WrapPanel"> | |
<Setter Property="HorizontalAlignment" Value="Center"/> | |
</Style> | |
<system:Double x:Key="TaskbarHeight">24</system:Double> | |
<system:Double x:Key="TaskbarWidth">96</system:Double> | |
<Thickness x:Key="TaskButtonMargin">0,0,2,0</Thickness> | |
<Thickness x:Key="TaskButtonVerticalMargin">0,0,0,2</Thickness> | |
<FontFamily x:Key="GlobalFontFamily">Segoe UI</FontFamily> | |
<SolidColorBrush x:Key="BarForeground" Color="White" /> | |
<SolidColorBrush x:Key="BarBackground" Color="Black" /> | |
<SolidColorBrush x:Key="Bar" Color="Transparent" /> | |
<SolidColorBrush x:Key="BarBrush" Color="Transparent" /> | |
<SolidColorBrush x:Key="BarBorder" Color="Transparent" /> | |
<SolidColorBrush x:Key="BarDim" Color="#DDDDDD" /> | |
<SolidColorBrush x:Key="BarIsPressed" Color="#AA151618" /> | |
<SolidColorBrush x:Key="BarIsChecked" Color="#AA252628" /> | |
<SolidColorBrush x:Key="BarIsMouseOver" Color="#AA252628" /> | |
<SolidColorBrush x:Key="ToolTipForeground" Color="White" /> | |
<SolidColorBrush x:Key="ToolTipBackground" Color="Black" /> | |
<SolidColorBrush x:Key="ToolTipBorder" Color="#EE151618" /> | |
<SolidColorBrush x:Key="ToolTipClose" Color="#AADD1618" /> | |
<SolidColorBrush x:Key="TaskListScrollBorder" Color="Transparent" /> | |
<SolidColorBrush x:Key="TaskListScrollBackground" Color="Transparent" /> | |
<SolidColorBrush x:Key="DefaultAccent" Color="{Binding Source={x:Static SystemParameters.WindowGlassColor}}" /> | |
<SolidColorBrush x:Key="PitchBlackAccent" Color="{Binding Source={x:Static SystemColors.HighlightColor}}" /> | |
<GradientStopCollection x:Key="DefaultStops"> | |
<GradientStop Color="#00FFFFFF" Offset="0" /> | |
<GradientStop Color="{Binding Source={x:Static SystemParameters.WindowGlassColor}}" Offset="1" /> | |
</GradientStopCollection> | |
<GradientStopCollection x:Key="PitchBlackStops"> | |
<GradientStop Color="#00FFFFFF" Offset="0" /> | |
<GradientStop Color="{Binding Source={x:Static SystemColors.HighlightColor}}" Offset="1" /> | |
</GradientStopCollection> | |
<LinearGradientBrush x:Key="DefaultFill" SpreadMethod="Repeat" EndPoint="0,0" | |
GradientStops="{StaticResource DefaultStops}" Opacity=".25" /> | |
<LinearGradientBrush x:Key="PitchBlackFill" SpreadMethod="Repeat" EndPoint="0,0" | |
GradientStops="{StaticResource PitchBlackStops}" Opacity=".25" /> | |
<LinearGradientBrush x:Key="DefaultOverlay" SpreadMethod="Repeat" EndPoint="0,0" | |
GradientStops="{StaticResource DefaultStops}" Opacity="1" /> | |
<LinearGradientBrush x:Key="PitchBlackOverlay" SpreadMethod="Repeat" EndPoint="0,0" | |
GradientStops="{StaticResource PitchBlackStops}" Opacity="1" /> | |
<LinearGradientBrush x:Key="FlashingOverlay" SpreadMethod="Repeat" EndPoint="0,0"> | |
<GradientStop Color="#00FFFFFF" Offset="0" /> | |
<GradientStop Color="#FFFF8C00" Offset="1" /> | |
</LinearGradientBrush> | |
<Geometry x:Key="ArrowUp">M 5 1 L 1 5 L 2 6 L 5 3 L 8 6 L 9 5 Z</Geometry> | |
<Geometry x:Key="ArrowDown">M 5 6 L 9 2 L 8 1 L 5 4 L 2 1 L 1 2 Z</Geometry> | |
<Geometry x:Key="ArrowLeft">M 1 5 L 5 9 L 6 8 L 3 5 L 6 2 L 5 1 Z</Geometry> | |
<Geometry x:Key="ArrowRight">M 6 5 L 2 1 L 1 2 L 4 5 L 1 8 L 2 9 Z</Geometry> | |
<!-- TASKBAR --> | |
<Style x:Key="TaskbarWindow" TargetType="Window" BasedOn="{StaticResource TaskbarWindow}"> | |
<Setter Property="Background" Value="{DynamicResource Bar}" /> | |
</Style> | |
<Style x:Key="Taskbar" TargetType="ContentControl" BasedOn="{StaticResource Taskbar}"> | |
<Setter Property="Margin" Value="0" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ContentControl"> | |
<Border x:Name="TaskbarBorder" | |
Background="{DynamicResource BarBorder}" | |
BorderBrush="{DynamicResource BarIsPressed}" | |
BorderThickness="1"> | |
<ContentPresenter x:Name="Content" Margin="-1" /> | |
</Border> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- START --> | |
<ToolTip x:Key="StartButtonTip" Content="Start" /> | |
<Style x:Key="StartIcon" TargetType="Image" BasedOn="{StaticResource TaskIcon}"> | |
<Setter Property="Source" Value="{x:Null}" /> | |
<Setter Property="Width" Value="0" /> | |
<Setter Property="Height" Value="0" /> | |
<Setter Property="Margin" Value="0" /> | |
</Style> | |
<Style x:Key="StartLabel" TargetType="TextBlock" BasedOn="{StaticResource StartLabel}"> | |
<Setter Property="Text" Value="W" /> | |
<Setter Property="FontSize" Value="22" /> | |
<Setter Property="FontFamily" Value="Marlett" /> | |
<Setter Property="TextAlignment" Value="Center" /> | |
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType" /> | |
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" /> | |
</Style> | |
<Style x:Key="StartButton" TargetType="ToggleButton"> | |
<Setter Property="Foreground" Value="{DynamicResource BarDim}" /> | |
<Setter Property="MinWidth" Value="{DynamicResource TaskbarHeight}" /> | |
<Setter Property="Height" Value="Auto" /> | |
<Setter Property="Margin" Value="0,0,0,0" /> | |
<!--<Setter Property="VerticalAlignment" Value="Bottom" />--> | |
<Setter Property="FocusVisualStyle" Value="{x:Null}" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ToggleButton"> | |
<Border Name="StartButtonBorder" | |
BorderBrush="{DynamicResource BarBrush}" | |
BorderThickness="4"> | |
<ContentPresenter x:Name="Content" Margin="0,-6,0,0" /> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="StartButtonBorder" Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}" /> | |
<Setter TargetName="StartButtonBorder" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="StartButtonBorder" Property="BorderBrush" Value="{DynamicResource BarIsPressed}" /> | |
<Setter TargetName="StartButtonBorder" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<Trigger Property="IsChecked" Value="True"> | |
<!--<Setter TargetName="StartButtonBorder" Property="BorderBrush" Value="{DynamicResource DefaultFill}" />--> | |
<!--<Setter TargetName="StartButtonBorder" Property="Background" Value="{DynamicResource DefaultFill}" />--> | |
<Setter Property="Foreground" Value="{DynamicResource DefaultAccent}" /> | |
</Trigger> | |
<MultiTrigger> | |
<MultiTrigger.Conditions> | |
<Condition Property="IsChecked" Value="True" /> | |
<Condition Property="IsMouseOver" Value="True" /> | |
</MultiTrigger.Conditions> | |
<Setter TargetName="StartButtonBorder" Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}" /> | |
<Setter TargetName="StartButtonBorder" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</MultiTrigger> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding RelativeSource={RelativeSource self}, Path=IsChecked}" Value="True"/> | |
<Condition Binding="{Binding Source={x:Static SystemParameters.WindowGlassColor}}" Value="#FF000000"/> | |
</MultiDataTrigger.Conditions> | |
<Setter Property="Foreground" Value="{DynamicResource PitchBlackAccent}" /> | |
<!--<Setter TargetName="StartButtonBorder" Property="BorderBrush" Value="{DynamicResource PitchBlackFill}" />--> | |
<!--<Setter TargetName="StartButtonBorder" Property="Background" Value="{DynamicResource PitchBlackFill}" />--> | |
</MultiDataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<!--<Setter TargetName="Content" Property="VerticalAlignment" Value="Top" />--> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<!--<Setter TargetName="Content" Property="HorizontalAlignment" Value="Center" />--> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- QUICKLAUNCH --> | |
<Style x:Key="ToolbarItemszz" TargetType="ItemsControl" BasedOn="{StaticResource ToolbarItems}"> | |
<!--<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" />--> | |
<!--<Setter Property="HorizontalAlignment" Value="Stretch" />--> | |
<!--<Setter Property="Height" Value="Auto" />--> | |
<!--<Setter Property="Margin" Value="0,-5,0,-5" />--> | |
<!--<Setter Property="Padding" Value="-6" />--> | |
<!--<Setter Property="Margin" Value="0,-4,0,-4" />--> | |
<!--<Setter Property="VerticalAlignment" Value="Center" />--> | |
<!--<Setter Property="VerticalAlignment" Value="Stretch" />--> | |
<!--<Setter Property="VerticalAlignment" Value="Bottom" />--> | |
<!--<Setter Property="Height" Value="Auto" />--> | |
<!--<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" />--> | |
<Setter Property="VerticalAlignment" Value="Center" /> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<Setter Property="VerticalAlignment" Value="Center" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left"> | |
<DataTrigger.Setters> | |
<!--<Setter Property="Margin" Value="-1,0,0,0" />--> | |
<Setter Property="HorizontalAlignment" Value="Left" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right"> | |
<DataTrigger.Setters> | |
<!--<Setter Property="Margin" Value="0,0,-1,0" />--> | |
<Setter Property="HorizontalAlignment" Value="Right" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<Style x:Key="ToolbarButton" TargetType="Button" BasedOn="{StaticResource ToolbarButton}"> | |
<Setter Property="Foreground" Value="{DynamicResource BarForeground}" /> | |
<Setter Property="Background" Value="{DynamicResource Bar}" /> | |
<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" /> | |
<!--<Setter Property="Margin" Value="0,-5,0,-5" />--> | |
<!--<Setter Property="Padding" Value="-6" />--> | |
<Setter Property="VerticalAlignment" Value="Stretch" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button"> | |
<Border Name="TaskButtonBorder1" | |
BorderBrush="{DynamicResource BarBrush}" | |
BorderThickness="4,4,4,4"> | |
<ContentPresenter x:Name="Content" /> | |
</Border> | |
<ControlTemplate.Triggers> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<!--<Setter TargetName="TaskButtonBorder1" Property="BorderThickness" Value="4" />--> | |
<!--<Setter Property="Margin" Value="-2,0,0,0" />--> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left"> | |
<DataTrigger.Setters> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderThickness" Value="4" /> | |
<Setter Property="Margin" Value="-2,0,0,0" /> | |
<Setter Property="HorizontalAlignment" Value="Left" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right"> | |
<DataTrigger.Setters> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderThickness" Value="4" /> | |
<Setter Property="Margin" Value="0,0,-2,0" /> | |
<Setter Property="HorizontalAlignment" Value="Right" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}" /> | |
<Setter TargetName="TaskButtonBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderBrush" Value="{DynamicResource BarIsPressed}" /> | |
<Setter TargetName="TaskButtonBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- TASKSLIST --> | |
<Style x:Key="TaskIcon" TargetType="Image" BasedOn="{StaticResource TaskIcon}"> | |
<Setter Property="Margin" Value="0,0,2,0" /> | |
</Style> | |
<Style x:Key="TaskButton" TargetType="Button" BasedOn="{StaticResource TaskButton}"> | |
<Setter Property="Foreground" Value="{DynamicResource BarForeground}" /> | |
<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" /> | |
<Setter Property="Margin" Value="{DynamicResource TaskButtonMargin}" /> | |
<Setter Property="VerticalAlignment" Value="Bottom" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button"> | |
<Border Name="TaskButtonBorder1" | |
BorderBrush="{DynamicResource BarBrush}" | |
BorderThickness="4"> | |
<ContentPresenter x:Name="Content" /> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}" /> | |
<Setter TargetName="TaskButtonBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="TaskButtonBorder1" Property="BorderBrush" Value="{DynamicResource BarIsPressed}" /> | |
<Setter TargetName="TaskButtonBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<Setter Property="VerticalAlignment" Value="Top" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left"> | |
<DataTrigger.Setters> | |
<Setter Property="HorizontalAlignment" Value="Left" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right"> | |
<DataTrigger.Setters> | |
<Setter Property="HorizontalAlignment" Value="Right" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<Style x:Key="TaskButtonFlashing" TargetType="Button" BasedOn="{StaticResource TaskButton}"> | |
<Setter Property="Foreground" Value="{DynamicResource BarForeground}" /> | |
<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" /> | |
<Setter Property="Margin" Value="{DynamicResource TaskButtonMargin}" /> | |
<Setter Property="VerticalAlignment" Value="Bottom" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button"> | |
<Border Name="TaskButtonFlashingBorder1" | |
BorderBrush="{DynamicResource FlashingOverlay}" | |
BorderThickness="2"> | |
<ContentPresenter x:Name="Content" Margin="4,-4" /> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="TaskButtonFlashingBorder1" Property="BorderBrush" Value="{DynamicResource FlashingOverlay}" /> | |
<Setter TargetName="TaskButtonFlashingBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="TaskButtonFlashingBorder1" Property="BorderBrush" Value="{DynamicResource BarIsPressed}" /> | |
<Setter TargetName="TaskButtonFlashingBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<Setter Property="VerticalAlignment" Value="Top" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left"> | |
<DataTrigger.Setters> | |
<Setter Property="HorizontalAlignment" Value="Left" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right"> | |
<DataTrigger.Setters> | |
<Setter Property="HorizontalAlignment" Value="Right" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<Style x:Key="TaskButtonActive" TargetType="Button" BasedOn="{StaticResource TaskButton}"> | |
<Setter Property="Foreground" Value="{DynamicResource BarForeground}" /> | |
<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" /> | |
<Setter Property="Margin" Value="{DynamicResource TaskButtonMargin}" /> | |
<Setter Property="VerticalAlignment" Value="Bottom" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button"> | |
<Border Name="TaskButtonActiveBorder1" | |
Background="{DynamicResource DefaultFill}" | |
BorderBrush="{DynamicResource DefaultFill}" | |
BorderThickness="4"> | |
<Grid> | |
<Border Name="TaskButtonActiveOverlay" | |
BorderBrush="{DynamicResource DefaultOverlay}" | |
BorderThickness="0,0,0,2" | |
Margin="-4,0,-4,-4" | |
HorizontalAlignment="Stretch" /> | |
<!--VerticalAlignment="Bottom" />--> | |
<ContentPresenter x:Name="Content" /> | |
</Grid> | |
</Border> | |
<ControlTemplate.Triggers> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding Source={x:Static SystemParameters.WindowGlassColor}}" Value="#FF000000"/> | |
</MultiDataTrigger.Conditions> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="Background" Value="{DynamicResource PitchBlackFill}" /> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="BorderBrush" Value="{DynamicResource PitchBlackFill}" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="BorderBrush" Value="{DynamicResource PitchBlackOverlay}" /> | |
</MultiDataTrigger> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}" /> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="BorderBrush" Value="{DynamicResource BarIsPressed}" /> | |
<Setter TargetName="TaskButtonActiveBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<!--<Setter Property="VerticalAlignment" Value="Top" />--> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="BorderThickness" Value="0,2,0,0" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="Margin" Value="-4,-4,-4,0" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="VerticalAlignment" Value="Top" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left"> | |
<DataTrigger.Setters> | |
<!--<Setter Property="HorizontalAlignment" Value="Left" />--> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="BorderThickness" Value="2,0,0,0" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="Margin" Value="-4,-4,0,-4" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="HorizontalAlignment" Value="Left" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="VerticalAlignment" Value="Stretch" /> | |
<!--<Setter TargetName="TaskButtonActiveOverlay" Property="Margin" Value="-4,-18,-4,18" />--> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right"> | |
<DataTrigger.Setters> | |
<!--<Setter Property="HorizontalAlignment" Value="Right" />--> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="BorderThickness" Value="0,0,2,0" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="Margin" Value="0,-4,-4,-4" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="HorizontalAlignment" Value="Right" /> | |
<Setter TargetName="TaskButtonActiveOverlay" Property="VerticalAlignment" Value="Stretch" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- X TASKLIST SCROLL --> | |
<Style x:Key="TaskListScrollViewer" TargetType="ScrollViewer" BasedOn="{StaticResource TaskListScrollViewer}"> | |
<Setter Property="Margin" Value="0,0,10,0" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type ScrollViewer}"> | |
<Grid> | |
<Grid.ColumnDefinitions><ColumnDefinition Width="*" /><ColumnDefinition Width="Auto" /></Grid.ColumnDefinitions> | |
<ScrollContentPresenter Grid.Column="0" | |
Width="{TemplateBinding Width}" | |
Height="{TemplateBinding Height}" | |
HorizontalAlignment="Stretch" | |
CanContentScroll="{TemplateBinding CanContentScroll}" | |
Content="{TemplateBinding Content}" /> | |
<Grid Grid.Column="1" Grid.Margin="1,0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"> | |
<Grid.RowDefinitions><RowDefinition Height="*" /><RowDefinition Height="*" /></Grid.RowDefinitions> | |
<RepeatButton x:Name="UpButton" Grid.Column="0" Command="ScrollBar.PageUpCommand" Style="{DynamicResource TaskListScrollUpButton}" /> | |
<RepeatButton x:Name="DownButton" Grid.Row="1" Command="ScrollBar.PageDownCommand" Style="{DynamicResource TaskListScrollDownButton}" /> | |
</Grid> | |
</Grid> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type ScrollViewer}"> | |
<Grid> | |
<Grid.RowDefinitions><RowDefinition Height="*" /><RowDefinition Height="Auto" /></Grid.RowDefinitions> | |
<ScrollContentPresenter Grid.Row="0" | |
Width="{TemplateBinding Width}" | |
Height="{TemplateBinding Height}" | |
CanContentScroll="{TemplateBinding CanContentScroll}" | |
Content="{TemplateBinding Content}" /> | |
<Grid Grid.Row="1" Grid.Margin="1,0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<RepeatButton Grid.Column="0" Padding="7" Command="ScrollBar.PageUpCommand" Style="{DynamicResource TaskListScrollUpButton}"> | |
<Path Data="{DynamicResource ArrowUp}" Fill="{DynamicResource BarForeground}" Margin="4" RenderOptions.EdgeMode="Aliased" /> | |
</RepeatButton> | |
<RepeatButton Grid.Column="1" Padding="7" Command="ScrollBar.PageDownCommand" Style="{DynamicResource TaskListScrollDownButton}"> | |
<Path Data="{DynamicResource ArrowDown}" Fill="{DynamicResource BarForeground}" Margin="4" RenderOptions.EdgeMode="Aliased" /> | |
</RepeatButton> | |
</Grid> | |
</Grid> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Setter Property="Margin" Value="0,0,0,10" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<Style x:Key="TaskListScrollUpButton" TargetType="RepeatButton" BasedOn="{StaticResource TaskListScrollButton}"> | |
<Setter Property="Margin" Value="0,0,0,0" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="RepeatButton"> | |
<Border x:Name="UpArrowBorder1" Background="{DynamicResource Bar}"> | |
<Border x:Name="UpArrowBorder2" | |
BorderBrush="{DynamicResource Bar}" | |
BorderThickness="1" | |
HorizontalAlignment="Center"> | |
<Border x:Name="UpArrowBorder3" BorderBrush="{DynamicResource Bar}" BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center"> | |
<Path x:Name="ToggleArrow" | |
Fill="{DynamicResource BarForeground}" | |
Data="{DynamicResource ArrowUp}" /> | |
</Border> | |
</Border> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="UpArrowBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="UpArrowBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter TargetName="UpArrowBorder2" Property="BorderThickness" Value="0,1,0,1" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Margin" Value="0" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<Style x:Key="TaskListScrollDownButton" TargetType="RepeatButton" BasedOn="{StaticResource TaskListScrollButton}"> | |
<Setter Property="Margin" Value="0,0,0,0" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="RepeatButton"> | |
<Border x:Name="DownArrowBorder1" Background="{DynamicResource Bar}"> | |
<Border x:Name="DownArrowBorder2" | |
BorderBrush="{DynamicResource Bar}" | |
BorderThickness="1" | |
HorizontalAlignment="Center"> | |
<Border x:Name="DownArrowBorder3" BorderBrush="{DynamicResource Bar}" BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center"> | |
<Path x:Name="ToggleArrow" | |
Fill="{DynamicResource BarForeground}" | |
Data="{DynamicResource ArrowDown}"/> | |
</Border> | |
</Border> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="DownArrowBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="DownArrowBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter TargetName="DownArrowBorder2" Property="BorderThickness" Value="0,1,0,1" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Margin" Value="0" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<!-- TRAY --> | |
<SolidColorBrush x:Key="TrayLeftBorder1" Color="Transparent" /> | |
<SolidColorBrush x:Key="TrayLeftBorder2" Color="Transparent" /> | |
<SolidColorBrush x:Key="TrayLeftBorder1Vertical" Color="Transparent" /> | |
<SolidColorBrush x:Key="TrayLeftBorder2Vertical" Color="Transparent" /> | |
<SolidColorBrush x:Key="TrayBackground" Color="Transparent" /> | |
<SolidColorBrush x:Key="TrayVerticalBackground" Color="Transparent" /> | |
<Style x:Key="Tray" TargetType="GroupBox"> | |
<Setter Property="OverridesDefaultStyle" Value="True" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="GroupBox"> | |
<Border Name="TrayOuterBorder" | |
BorderThickness="0" | |
Margin="0,0,0,0" | |
> | |
<Border Name="TrayInnerBorder1" | |
Background="{DynamicResource TrayBackground}" | |
BorderBrush="{DynamicResource TrayLeftBorder1}" | |
BorderThickness="0" | |
Margin="0,0,0,0"> | |
<Border Name="TrayInnerBorder2" | |
BorderBrush="{DynamicResource TrayLeftBorder2}" | |
BorderThickness="0" | |
Padding="7,0,0,0"> | |
<ContentPresenter Name="Content" Margin="0,0,6,0" /> | |
</Border> | |
</Border> | |
</Border> | |
<ControlTemplate.Triggers> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter TargetName="TrayOuterBorder" Property="BorderThickness" Value="1,0" /> | |
<Setter TargetName="TrayInnerBorder1" Property="BorderThickness" Value="0,1,0,0" /> | |
<Setter TargetName="TrayInnerBorder2" Property="BorderThickness" Value="0,1,0,0" /> | |
<Setter TargetName="TrayInnerBorder2" Property="Padding" Value="0,7,0,0" /> | |
<Setter TargetName="TrayInnerBorder2" Property="BorderBrush" Value="{DynamicResource TrayLeftBorder2Vertical}" /> | |
<Setter TargetName="TrayInnerBorder1" Property="Background" Value="{DynamicResource TrayVerticalBackground}" /> | |
<Setter TargetName="TrayInnerBorder1" Property="BorderBrush" Value="{DynamicResource TrayLeftBorder1Vertical}" /> | |
<Setter TargetName="Content" Property="Margin" Value="0,0,0,6" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- X TRAY TOGGLE --> | |
<Style x:Key="TrayToggleButton" TargetType="ToggleButton"> | |
<Setter Property="OverridesDefaultStyle" Value="True" /> | |
<Setter Property="Background" Value="Transparent" /> | |
<Setter Property="Height" Value="Auto" /> | |
<Setter Property="Width" Value="10" /> | |
<!--<Setter Property="Padding" Value="0,0,4,0" />--> | |
<Setter Property="Margin" Value="-20,0,-2,0" /> | |
<!--<Setter Property="Height" Value="{DynamicResource TaskbarHeight}" />--> | |
<!--<Setter Property="Margin" Value="-18,0,4,0" />--> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ToggleButton"> | |
<Border x:Name="TrayToggleBorder1" Background="{DynamicResource Bar}"> | |
<Border x:Name="TrayToggleBorder2" | |
BorderBrush="{DynamicResource Bar}" | |
BorderThickness="1" | |
HorizontalAlignment="Center"> | |
<Border x:Name="TrayToggleBorder3" BorderBrush="{DynamicResource Bar}" BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center"> | |
<Path x:Name="ToggleArrow" | |
Fill="{DynamicResource BarForeground}" | |
Data="{DynamicResource ArrowLeft}" | |
RenderOptions.EdgeMode="Unspecified" /> | |
</Border> | |
</Border> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="TrayToggleBorder1" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="TrayToggleBorder1" Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
<Trigger Property="IsChecked" Value="True"> | |
<Setter TargetName="ToggleArrow" Property="Data" Value="{DynamicResource ArrowRight}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Height" Value="12" /> | |
<Setter Property="Width" Value="Auto" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}" Value="False" /> | |
<Condition Binding="{Binding Path=Orientation, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" Value="Vertical" /> | |
</MultiDataTrigger.Conditions> | |
<MultiDataTrigger.Setters> | |
<Setter TargetName="ToggleArrow" Property="Data" Value="{DynamicResource ArrowUp}" /> | |
</MultiDataTrigger.Setters> | |
</MultiDataTrigger> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}" Value="True" /> | |
<Condition Binding="{Binding Path=Orientation, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" Value="Vertical" /> | |
</MultiDataTrigger.Conditions> | |
<MultiDataTrigger.Setters> | |
<Setter TargetName="ToggleArrow" Property="Data" Value="{DynamicResource ArrowDown}" /> | |
</MultiDataTrigger.Setters> | |
</MultiDataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
<Style.Triggers> | |
<Trigger Property="IsChecked" Value="True"> | |
<Setter Property="ToolTip" Value="{DynamicResource hide}" /> | |
</Trigger> | |
<Trigger Property="IsChecked" Value="False"> | |
<Setter Property="ToolTip" Value="{DynamicResource show_hidden}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Margin" Value="0,-19,0,1" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<!-- TRAY ICONS --> | |
<Style TargetType="{x:Type Border}"> | |
<!-- <Setter Property="RenderOptions.BitmapScalingMode" Value="Fant" /> | |
<Setter Property="RenderOptions.EdgeMode" Value="Unspecified" />--> | |
<Style.Triggers> | |
<Trigger Property="Name" Value="NotifyIconBorder"> | |
<Setter Property="OverridesDefaultStyle" Value="True" /> | |
<Setter Property="HorizontalAlignment" Value="Center" /> | |
<Setter Property="VerticalAlignment" Value="Center" /> | |
<Setter Property="Margin" Value="0,0,0,0" /> | |
<Setter Property="Padding" Value="0,0,0,0" /> | |
<!--<Setter Property="VerticalAlignment" Value="Stretch" />--> | |
<!--<Setter Property="Margin" Value="0,2,0,-2" />--> | |
<!--<Setter Property="Padding" Value="1,2,2,2" />--> | |
<!--<Setter Property="BorderThickness" Value="1,2,2,2"></Setter>--> | |
</Trigger> | |
<MultiTrigger> | |
<MultiTrigger.Conditions> | |
<Condition Property="IsMouseOver" Value="True" /> | |
<Condition Property="Name" Value="NotifyIconBorder" /> | |
</MultiTrigger.Conditions> | |
<Setter Property="Background" Value="{DynamicResource BarIsMouseOver}"></Setter> | |
<Setter Property="BorderBrush" Value="{DynamicResource BarIsMouseOver}"></Setter> | |
</MultiTrigger> | |
</Style.Triggers> | |
</Style> | |
<!-- CLOCK --> | |
<ControlTemplate x:Key="ClockTemplateKey" TargetType="{x:Type UserControl}"> | |
<StackPanel> | |
<TextBlock Name="ClockVerticalDate" | |
Margin="0,2,0,2" | |
FontSize="12" | |
Style="{DynamicResource Clock}" | |
Text="{Binding Path=Now, StringFormat=d, Mode=OneWay}" | |
Visibility="Collapsed" /> | |
<Grid Name="SlimClock" HorizontalAlignment="Center" VerticalAlignment="Bottom"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition Width="Auto" /> | |
</Grid.ColumnDefinitions> | |
<TextBlock Name="ClockTextHour" | |
Grid.Column="0" | |
Padding="1,1,0,0" | |
HorizontalAlignment="Left" | |
FontSize="14" | |
Style="{DynamicResource Clock}" | |
Text="{Binding Path=Now, StringFormat={}{0: h : }, Mode=OneWay}" /> | |
<TextBlock Name="ClockTextMinute" | |
Grid.Column="1" | |
Padding="0,1,1,0" | |
HorizontalAlignment="Right" | |
FontSize="14" | |
Style="{DynamicResource Clock}" | |
Text="{Binding Path=Now, StringFormat={}{0:mm }, Mode=OneWay}" /> | |
</Grid> | |
</StackPanel> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="SlimClock" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Margin" Value="0,0,0,-5" /> | |
<Setter TargetName="ClockVerticalDate" Property="Visibility" Value="Visible" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
<Style x:Key="Clock" TargetType="TextBlock" BasedOn="{StaticResource Clock}"> | |
<Setter Property="Foreground" Value="{DynamicResource BarForeground}" /> | |
<Setter Property="VerticalAlignment" Value="Stretch" /> | |
<Setter Property="Margin" Value="0" /> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Margin" Value="0" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<!-- SHOWDESKTOP --> | |
<Style x:Key="ShowDesktopIcon" TargetType="Image" BasedOn="{StaticResource ShowDesktopIcon}"> | |
<Setter Property="Margin" Value="0" /> | |
<Setter Property="Width" Value="0" /> | |
<Setter Property="Height" Value="0" /> | |
</Style> | |
<Style x:Key="ShowDesktopButton" TargetType="ToggleButton"> | |
<Setter Property="Background" Value="Transparent" /> | |
<Setter Property="Width" Value="8" /> | |
<Setter Property="Height" Value="Auto" /> | |
<Setter Property="FocusVisualStyle" Value="{x:Null}" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ContentControl"> | |
<Border Name="OuterBorder" | |
BorderBrush="{DynamicResource BarBrush}" | |
BorderThickness="0,0,0,0"> | |
<Border Name="InnerBorder" | |
Background="{DynamicResource Bar}" | |
BorderBrush="{DynamicResource BarBrush}" | |
BorderThickness="1,0,0,0"> | |
<ContentPresenter /> | |
</Border> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="InnerBorder" Property="Background" Value="{DynamicResource BarIsMouseOver}" /> | |
</Trigger> | |
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Vertical"> | |
<DataTrigger.Setters> | |
<Setter Property="Height" Value="8" /> | |
<Setter Property="Width" Value="Auto" /> | |
<Setter TargetName="InnerBorder" Property="BorderThickness" Value="0,1,0,0" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- TOOLTIP --> | |
<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip" BasedOn="{StaticResource GlobalFonts}"> | |
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" /> | |
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" /> | |
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorder}" /> | |
<Setter Property="Padding" Value="2,1" /> | |
<Setter Property="Margin" Value="2,2,2,28" /> | |
<Setter Property="Placement" Value="Top" /> | |
</Style> | |
<!--NOTIFY BALLOON --> | |
<Style x:Key="NotifyBalloonCloseButton" TargetType="Button" BasedOn="{StaticResource GlobalFonts}"> | |
<Setter Property="HorizontalAlignment" Value="Right" /> | |
<Setter Property="VerticalAlignment" Value="Center" /> | |
<Setter Property="Margin" Value="9,-4,-7,0" /> | |
<Setter Property="Height" Value="18" /> | |
<Setter Property="Width" Value="18" /> | |
<Setter Property="FontFamily" Value="Marlett" /> | |
<Setter Property="FontSize" Value="13" /> | |
<Setter Property="TextOptions.TextRenderingMode" Value="Aliased" /> | |
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorder}" /> | |
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" /> | |
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button"> | |
<Border Background="{TemplateBinding Background}" | |
BorderBrush="{TemplateBinding BorderBrush}" | |
BorderThickness="1"> | |
<ContentPresenter Name="Content" Margin="0,1,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" /> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter Property="Background" Value="{DynamicResource ToolTipClose}" /> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter Property="Background" Value="{DynamicResource BarIsPressed}" /> | |
</Trigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<Style x:Key="NotifyBalloon" TargetType="ContentControl" BasedOn="{StaticResource GlobalFonts}"> | |
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ContentControl"> | |
<DockPanel> | |
<Border Name="Border" | |
Background="{DynamicResource ToolTipBackground}" | |
BorderBrush="{DynamicResource ToolTipBorder}" | |
BorderThickness="1" | |
CornerRadius="4" | |
DockPanel.Dock="Top"> | |
<ContentPresenter Margin="12,8,12,9" /> | |
</Border> | |
<Path Name="Arrow" | |
Fill="{DynamicResource ToolTipBackground}" | |
Stroke="{DynamicResource ToolTipBorder}" | |
StrokeThickness="1" | |
Margin="13,-1,13,0" | |
Data="M 0,0 l 20,20 V 0" | |
Width="21" | |
Height="21" | |
Visibility="Visible" | |
RenderOptions.EdgeMode="Aliased" | |
HorizontalAlignment="Right" | |
DockPanel.Dock="Bottom" /> | |
</DockPanel> | |
<ControlTemplate.Triggers> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Left" /> | |
<Condition Binding="{Binding Path=FlowDirection, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="LeftToRight" /> | |
</MultiDataTrigger.Conditions> | |
<MultiDataTrigger.Setters> | |
<Setter TargetName="Arrow" Property="Data" Value="M 0,0 V 20 l 20,-20" /> | |
<Setter TargetName="Arrow" Property="HorizontalAlignment" Value="Left" /> | |
</MultiDataTrigger.Setters> | |
</MultiDataTrigger> | |
<MultiDataTrigger> | |
<MultiDataTrigger.Conditions> | |
<Condition Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Right" /> | |
<Condition Binding="{Binding Path=FlowDirection, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="RightToLeft" /> | |
</MultiDataTrigger.Conditions> | |
<MultiDataTrigger.Setters> | |
<Setter TargetName="Arrow" Property="Data" Value="M 0,0 V 20 l 20,-20" /> | |
<Setter TargetName="Arrow" Property="HorizontalAlignment" Value="Left" /> | |
</MultiDataTrigger.Setters> | |
</MultiDataTrigger> | |
<DataTrigger Binding="{Binding Path=AppBarEdge, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Value="Top"> | |
<DataTrigger.Setters> | |
<Setter TargetName="Border" Property="DockPanel.Dock" Value="Bottom" /> | |
<Setter TargetName="Arrow" Property="Data" Value="M 0,20 l 20,-20 v 20" /> | |
<Setter TargetName="Arrow" Property="DockPanel.Dock" Value="Top" /> | |
<Setter TargetName="Arrow" Property="Margin" Value="13,0,13,-2" /> | |
</DataTrigger.Setters> | |
</DataTrigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> | |
<!-- MENU --> | |
<Style x:Key="TaskManMenuItem" TargetType="MenuItem"> | |
<Setter Property="Header" Value="{DynamicResource show_taskman}" /> | |
</Style> | |
</ResourceDictionary> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment