Mercurial > silverbladetech
diff SilverlightGlimpse/FloatableWindow/themes/generic.xaml @ 69:a0bcd783e612
Latest work
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 11:06:10 +0100 |
parents | 810116cd6b8e |
children |
line wrap: on
line diff
--- a/SilverlightGlimpse/FloatableWindow/themes/generic.xaml Mon Apr 23 11:05:11 2012 +0100 +++ b/SilverlightGlimpse/FloatableWindow/themes/generic.xaml Mon Apr 23 11:06:10 2012 +0100 @@ -1,105 +1,64 @@ -<ResourceDictionary - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:controls="clr-namespace:System.Windows.Controls" - xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"> +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:controls="clr-namespace:System.Windows.Controls" + xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"> - <Storyboard x:Name="ResizerEnter"> - <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Resizer" Storyboard.TargetProperty="(UIElement.Opacity)"> - <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/> - </DoubleAnimationUsingKeyFrames> - </Storyboard> - <Storyboard x:Name="ResizerLeave"> - <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Resizer" Storyboard.TargetProperty="(UIElement.Opacity)"> - <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/> - </DoubleAnimationUsingKeyFrames> - </Storyboard> - <Style x:Key="ResizerStyle" TargetType="Thumb"> - <Setter Property="Background" Value="#FF1F3B53"/> - <Setter Property="BorderThickness" Value="1"/> - <Setter Property="IsTabStop" Value="False"/> - <Setter Property="BorderBrush"> - <Setter.Value> - <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> - <GradientStop Color="#FFA3AEB9" Offset="0"/> - <GradientStop Color="#FF8399A9" Offset="0.375"/> - <GradientStop Color="#FF718597" Offset="0.375"/> - <GradientStop Color="#FF617584" Offset="1"/> - </LinearGradientBrush> - </Setter.Value> - </Setter> - <Setter Property="Template"> - <Setter.Value> - <ControlTemplate TargetType="Thumb"> - <Path Fill="#FFB1B1B1" Stretch="Fill" Height="20" Width="20" UseLayoutRounding="False" Data="M15.499995,0.5 L15.499995,15.5 L0.5,15.5 z"> - <VisualStateManager.VisualStateGroups> - <VisualStateGroup x:Name="CommonStates"> - <VisualState x:Name="Normal"/> - <VisualState x:Name="MouseOver"/> - <VisualState x:Name="Pressed"/> - <VisualState x:Name="Disabled"/> - </VisualStateGroup> - <VisualStateGroup x:Name="FocusStates"> - <VisualState x:Name="Unfocused"/> - <VisualState x:Name="Focused"/> - </VisualStateGroup> - </VisualStateManager.VisualStateGroups> - </Path> - </ControlTemplate> - </Setter.Value> - </Setter> - </Style> <Style TargetType="controls:FloatableWindow"> - <Setter Property="IsTabStop" Value="false"/> - <Setter Property="TabNavigation" Value="Cycle"/> - <Setter Property="HorizontalAlignment" Value="Center"/> - <Setter Property="VerticalAlignment" Value="Center"/> - <Setter Property="HorizontalContentAlignment" Value="Stretch"/> - <Setter Property="VerticalContentAlignment" Value="Stretch"/> - <Setter Property="BorderThickness" Value="1"/> + <Setter Property="IsTabStop" Value="false" /> + <Setter Property="TabNavigation" Value="Cycle" /> + <Setter Property="HorizontalAlignment" Value="Center" /> + <Setter Property="VerticalAlignment" Value="Center" /> + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> + <Setter Property="VerticalContentAlignment" Value="Stretch" /> + <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush"> <Setter.Value> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> - <GradientStop Color="#FFA3AEB9" Offset="0"/> - <GradientStop Color="#FF8399A9" Offset="0.375"/> - <GradientStop Color="#FF718597" Offset="0.375"/> - <GradientStop Color="#FF617584" Offset="1"/> + <GradientStop Offset="0" Color="#FFA3AEB9" /> + <GradientStop Offset="0.375" Color="#FF8399A9" /> + <GradientStop Offset="0.375" Color="#FF718597" /> + <GradientStop Offset="1" Color="#FF617584" /> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="OverlayBrush"> <Setter.Value> - <SolidColorBrush Color="#7F000000"/> + <SolidColorBrush Color="#7F000000" /> </Setter.Value> </Setter> - <Setter Property="OverlayOpacity" Value="1"/> + <Setter Property="OverlayOpacity" Value="1" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="controls:FloatableWindow"> <Grid x:Name="Root"> <Grid.Resources> <Style x:Key="ButtonStyle" TargetType="Button"> - <Setter Property="Background" Value="#FF1F3B53"/> - <Setter Property="Foreground" Value="#FF000000"/> - <Setter Property="Padding" Value="3"/> - <Setter Property="BorderThickness" Value="1"/> + <Setter Property="Background" Value="#FF1F3B53" /> + <Setter Property="Foreground" Value="#FF000000" /> + <Setter Property="Padding" Value="3" /> + <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush"> <Setter.Value> - <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> - <GradientStop Color="#FFA3AEB9" Offset="0"/> - <GradientStop Color="#FF8399A9" Offset="0.375"/> - <GradientStop Color="#FF718597" Offset="0.375"/> - <GradientStop Color="#FF617584" Offset="1"/> + <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> + <GradientStop Offset="0" Color="#FFA3AEB9" /> + <GradientStop Offset="0.375" Color="#FF8399A9" /> + <GradientStop Offset="0.375" Color="#FF718597" /> + <GradientStop Offset="1" Color="#FF617584" /> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> - <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Background="#02FFFFFF" x:Name="grid"> + <Grid x:Name="grid" + Width="15" + Height="14" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Background="#02FFFFFF"> <vsm:VisualStateManager.VisualStateGroups> <vsm:VisualStateGroup x:Name="CommonStates"> - <vsm:VisualState x:Name="Normal"/> + <vsm:VisualState x:Name="Normal" /> <vsm:VisualState x:Name="MouseOver"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility"> @@ -111,12 +70,18 @@ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz0" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> - <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.95"/> + <DoubleAnimation Duration="0" + Storyboard.TargetName="X" + Storyboard.TargetProperty="Opacity" + To="0.95" /> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Pressed"> <Storyboard> - <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.85"/> + <DoubleAnimation Duration="0" + Storyboard.TargetName="X" + Storyboard.TargetProperty="Opacity" + To="0.85" /> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> @@ -130,31 +95,78 @@ </vsm:VisualState> <vsm:VisualState x:Name="Disabled"> <Storyboard> - <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.5"/> + <DoubleAnimation Duration="0" + Storyboard.TargetName="X" + Storyboard.TargetProperty="Opacity" + To="0.5" /> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> </vsm:VisualStateManager.VisualStateGroups> - <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#14C51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz2" Stroke="#14C51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"> + <Path x:Name="X_Fuzz2" + Width="9" + Height="8" + Margin="0,-1,0,0" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" + Fill="#14C51900" + Opacity="1" + RenderTransformOrigin="0.5,0.5" + Stretch="Fill" + Stroke="#14C51900" + Visibility="Collapsed"> <Path.RenderTransform> <TransformGroup> - <ScaleTransform ScaleX="1.3" ScaleY="1.3"/> + <ScaleTransform ScaleX="1.3" ScaleY="1.3" /> </TransformGroup> </Path.RenderTransform> </Path> - <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#1EC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz1" Stroke="#1EC51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"> + <Path x:Name="X_Fuzz1" + Width="9" + Height="8" + Margin="0,-1,0,0" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" + Fill="#1EC51900" + Opacity="1" + RenderTransformOrigin="0.5,0.5" + Stretch="Fill" + Stroke="#1EC51900" + Visibility="Collapsed"> <Path.RenderTransform> <TransformGroup> - <ScaleTransform ScaleX="1.1" ScaleY="1.1"/> + <ScaleTransform ScaleX="1.1" ScaleY="1.1" /> </TransformGroup> </Path.RenderTransform> </Path> - <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz0" Stroke="#FFC51900" Height="8" VerticalAlignment="Center" Opacity="1" Visibility="Collapsed"/> - <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFFFFFFF" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X" Height="8" VerticalAlignment="Center" Opacity="0.7"> + <Path x:Name="X_Fuzz0" + Width="9" + Height="8" + Margin="0,-1,0,0" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" + Fill="#FFC51900" + Opacity="1" + Stretch="Fill" + Stroke="#FFC51900" + Visibility="Collapsed" /> + <Path x:Name="X" + Width="9" + Height="8" + Margin="0,-1,0,0" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" + Fill="#FFFFFFFF" + Opacity="0.7" + Stretch="Fill"> <Path.Stroke> - <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> - <GradientStop Color="#FF313131" Offset="1"/> - <GradientStop Color="#FF8E9092" Offset="0"/> + <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> + <GradientStop Offset="1" Color="#FF313131" /> + <GradientStop Offset="0" Color="#FF8E9092" /> </LinearGradientBrush> </Path.Stroke> </Path> @@ -168,48 +180,74 @@ <vsm:VisualStateGroup x:Name="WindowStates"> <vsm:VisualState x:Name="Open"> <Storyboard> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity"> - <EasingDoubleKeyFrame KeyTime="0" Value="0"/> - <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="Overlay" + Storyboard.TargetProperty="Opacity"> + <EasingDoubleKeyFrame KeyTime="0" Value="0" /> + <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1" /> </DoubleAnimationUsingKeyFrames> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> - <SplineDoubleKeyFrame KeyTime="0" Value="0"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/> - <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="ContentRoot" + Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> + <SplineDoubleKeyFrame KeyTime="0" Value="0" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1" /> + <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" + KeyTime="00:00:00.45" + Value="1.05" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1" /> </DoubleAnimationUsingKeyFrames> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> - <SplineDoubleKeyFrame KeyTime="0" Value="0"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/> - <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="ContentRoot" + Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> + <SplineDoubleKeyFrame KeyTime="0" Value="0" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1" /> + <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" + KeyTime="00:00:00.45" + Value="1.05" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1" /> </DoubleAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Closed"> <Storyboard> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity"> - <EasingDoubleKeyFrame KeyTime="0" Value="1"/> - <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="Overlay" + Storyboard.TargetProperty="Opacity"> + <EasingDoubleKeyFrame KeyTime="0" Value="1" /> + <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0" /> </DoubleAnimationUsingKeyFrames> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> - <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="ContentRoot" + Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> + <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0" /> </DoubleAnimationUsingKeyFrames> - <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> - <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/> - <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/> + <DoubleAnimationUsingKeyFrames BeginTime="0" + Storyboard.TargetName="ContentRoot" + Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> + <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05" /> + <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0" /> </DoubleAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> </vsm:VisualStateManager.VisualStateGroups> - <Grid x:Name="Overlay" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0" Background="{TemplateBinding OverlayBrush}" Opacity="{TemplateBinding OverlayOpacity}"/> - <Grid x:Name="ContentRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"> + <Grid x:Name="Overlay" + Margin="0" + HorizontalAlignment="Stretch" + VerticalAlignment="Top" + Background="{TemplateBinding OverlayBrush}" + Opacity="{TemplateBinding OverlayOpacity}" /> + <Grid x:Name="ContentRoot" + Width="{TemplateBinding Width}" + Height="{TemplateBinding Height}" + HorizontalAlignment="{TemplateBinding HorizontalAlignment}" + VerticalAlignment="{TemplateBinding VerticalAlignment}" + RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> <TransformGroup> <ScaleTransform /> @@ -218,51 +256,90 @@ <TranslateTransform /> </TransformGroup> </Grid.RenderTransform> - <Border BorderThickness="1" CornerRadius="2" BorderBrush="#14000000" Background="#14000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-1"/> - <Border BorderThickness="1" CornerRadius="2.25" BorderBrush="#0F000000" Background="#0F000000" HorizontalAlignment="Stretch" Margin="-2" VerticalAlignment="Stretch"/> - <Border BorderThickness="1" CornerRadius="2.5" BorderBrush="#0C000000" Background="#0C000000" HorizontalAlignment="Stretch" Margin="-3" VerticalAlignment="Stretch"/> - <Border BorderThickness="1" CornerRadius="2.75" BorderBrush="#0A000000" Background="#0A000000" HorizontalAlignment="Stretch" Margin="-4" VerticalAlignment="Stretch"/> - <Border Background="#FFFFFFFF" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="2"> - <Border CornerRadius="1.5" Margin="1"> + <Border Margin="-1" + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch" + Background="#14000000" + BorderBrush="#14000000" + BorderThickness="1" + CornerRadius="2" /> + <Border Margin="-2" + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch" + Background="#0F000000" + BorderBrush="#0F000000" + BorderThickness="1" + CornerRadius="2.25" /> + <Border Margin="-3" + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch" + Background="#0C000000" + BorderBrush="#0C000000" + BorderThickness="1" + CornerRadius="2.5" /> + <Border Margin="-4" + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch" + Background="#0A000000" + BorderBrush="#0A000000" + BorderThickness="1" + CornerRadius="2.75" /> + <Border Background="#FFFFFFFF" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + CornerRadius="2"> + <Border Margin="1" CornerRadius="1.5"> <Border.Background> - <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> - <GradientStop Color="#FFE5E8EB" Offset="1"/> - <GradientStop Color="#FFF6F8F9" Offset="0"/> + <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> + <GradientStop Offset="1" Color="#FFE5E8EB" /> + <GradientStop Offset="0" Color="#FFF6F8F9" /> </LinearGradientBrush> </Border.Background> <Grid> <Grid.RowDefinitions> - <RowDefinition Height="Auto"/> - <RowDefinition/> + <RowDefinition Height="Auto" /> + <RowDefinition /> </Grid.RowDefinitions> - <Border x:Name="Chrome" Width="Auto" BorderBrush="#FFFFFFFF" BorderThickness="0,0,0,1"> + <Border x:Name="Chrome" + Width="Auto" + BorderBrush="#FFFFFFFF" + BorderThickness="0,0,0,1"> <Border.Background> - <LinearGradientBrush EndPoint="0.5,0.528" StartPoint="0.5,0"> - <GradientStop Color="#FFE5E8EB" Offset="1"/> - <GradientStop Color="#FFFEFEFE" Offset="0"/> + <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,0.528"> + <GradientStop Offset="1" Color="#FFE5E8EB" /> + <GradientStop Offset="0" Color="#FFFEFEFE" /> </LinearGradientBrush> </Border.Background> - <Grid Height="Auto" Width="Auto"> + <Grid Width="Auto" Height="Auto"> <Grid.ColumnDefinitions> - <ColumnDefinition/> - <ColumnDefinition Width="30"/> + <ColumnDefinition /> + <ColumnDefinition Width="30" /> </Grid.ColumnDefinitions> - <ContentControl Content="{TemplateBinding Title}" - IsTabStop="False" - FontWeight="Bold" + <ContentControl Margin="6,0,6,0" HorizontalAlignment="Stretch" VerticalAlignment="Center" - Margin="6,0,6,0"/> - <Button x:Name="CloseButton" Grid.Column="1" IsTabStop="False" HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Style="{StaticResource ButtonStyle}"/> + Content="{TemplateBinding Title}" + FontWeight="Bold" + IsTabStop="False" /> + <Button x:Name="CloseButton" + Grid.Column="1" + Width="15" + Height="14" + HorizontalAlignment="Center" + VerticalAlignment="Center" + IsTabStop="False" + Style="{StaticResource ButtonStyle}" /> </Grid> </Border> - <Border Background="{TemplateBinding Background}" Margin="7" Grid.Row="1"> - <ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}" - ContentTemplate="{TemplateBinding ContentTemplate}" - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" - VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> + <Border Grid.Row="1" + Margin="7" + Background="{TemplateBinding Background}"> + <ContentPresenter x:Name="ContentPresenter" + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" + Content="{TemplateBinding Content}" + ContentTemplate="{TemplateBinding ContentTemplate}" /> </Border> - <Path x:Name="Resizer" Opacity=".25" Fill="#FFB1B1B1" Stretch="Fill" Height="20" Width="20" UseLayoutRounding="False" Grid.Row="1" Data="M15.499995,0.5 L15.499995,15.5 L0.5,15.5 z" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> </Grid> </Border> </Border> @@ -272,5 +349,4 @@ </Setter.Value> </Setter> </Style> - </ResourceDictionary> \ No newline at end of file