| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 | 
							- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
-                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
-                     xmlns:styleableWindow="clr-namespace:WpfStyleableWindow.StyleableWindow;assembly=MECF.Framework.Common">
 
-      <!--主窗口背景色-->
 
-     <!--<Style TargetType="Window" x:Key="mainBackground">
 
-         <Setter Property="Background">
 
-             <Setter.Value>
 
-                 <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主界面_切片.png" />
 
-             </Setter.Value>
 
-         </Setter>
 
-     </Style>-->
 
-     <ImageBrush  x:Key="mainBackgroundImg" ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主界面_切片SORTER.png" />
 
-     <ImageBrush  x:Key="loginBackgroundImg" ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/login.png" />
 
-     <!--背景颜色-->
 
-     <SolidColorBrush Color="#FF0C1F6B" x:Key="mainBackgroundColor" />
 
-     <!--<LinearGradientBrush x:Key="mainBackgroundColor" StartPoint="0.5,0" EndPoint="0.5,1">
 
-         <GradientStop Color="#2f9ad1" Offset="0" />
 
-         <GradientStop Color="#33a8e4" Offset="1" />
 
-     </LinearGradientBrush>-->
 
-     <SolidColorBrush Color="#669ACC" x:Key="viewBackgroundColor" />
 
-     <SolidColorBrush x:Key="mainInnerBackgroundColor" Color="#FFD0DEEB"/>
 
-     <SolidColorBrush x:Key="mainCenterBackgroundColor" Color="#dddedf"/>
 
-     <!--<SolidColorBrush Color="#548C9B" x:Key="mainBackgroundColor" />
 
-     <SolidColorBrush Color="#548C9B" x:Key="viewBackgroundColor" />-->
 
-     <!--<SolidColorBrush Color="LightBlue" x:Key="titleBackgroundColor"/>   //  427F7D  afd5d5 -->
 
-     <!-- Top Frame -->
 
-     <!--<LinearGradientBrush x:Key="TopFrame_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF047CBF" Offset="1"/>
 
-         <GradientStop Color="#FF0C206C"/>
 
-         <GradientStop Color="#FF00337E" Offset="0.5"/>
 
-         <GradientStop Color="#FF114591" Offset="0.25"/>
 
-         <GradientStop Color="#FF114591" Offset="0.75"/>
 
-     </LinearGradientBrush>-->
 
-     <SolidColorBrush x:Key="TopFrame_BG" Color="#FF0C206C"/>
 
-     <SolidColorBrush x:Key="TopFrame_BD" Color="#FFAFD7F4"/>
 
-     <SolidColorBrush x:Key="TopFrame_TableBD_Highlight" Color="#FFAFC2D3"/>
 
-     <SolidColorBrush x:Key="TopFrame_TableBG" Color="#FF003E76"/>
 
-     <SolidColorBrush x:Key="TopFrame_TableBD_Shadow" Color="#FF1F2732"/>
 
-     <SolidColorBrush x:Key="TopFrame_TextColor" Color="White"/>
 
-     <SolidColorBrush x:Key="TopFrame_TableBG_Highlight" Color="#FF18B125"/>
 
-     <SolidColorBrush x:Key="TopFrame_BD_Highlight" Color="#FF7D9ABC"/>
 
-     <SolidColorBrush x:Key="TopFrame_BD_Shadow" Color="#FF6C7D8F"/>
 
-     <LinearGradientBrush x:Key="TopFrame_DarkBG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF010101" Offset="0"/>
 
-         <GradientStop Color="#FF2E4662" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <SolidColorBrush x:Key="TopFrame_DarkBD_Highlight" Color="#FF95999C"/>
 
-     <SolidColorBrush x:Key="TopFrame_DarkBD_Shadow" Color="#FF23354B"/>
 
-     <!-- Main Frame -->
 
-     <LinearGradientBrush x:Key="SecondMenuBar_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF92B5D3"/>
 
-         <GradientStop Color="#FF93A0B0" Offset="1"/>
 
-         <GradientStop Color="#FF7DA8CB" Offset="0.05"/>
 
-         <GradientStop Color="#FFC2D4E8" Offset="0.95"/>
 
-     </LinearGradientBrush>
 
-     <SolidColorBrush x:Key="SecondMenuBar_BD" Color="#FF475059"/>
 
-     <SolidColorBrush x:Key="SubMenu_BG_Select" Color="#FFDDDEDF" />
 
-     <SolidColorBrush x:Key="SubMenu_BG_MouseOver" Color="White" />
 
-     <SolidColorBrush x:Key="SubMenu_BD_Select" Color="White"/>
 
-     <SolidColorBrush x:Key="SubMenu_BD_Shadow_Select" Color="#FF153058"/>
 
-     <SolidColorBrush x:Key="SubMenu_BD_Highlight" Color="#FFD5EAFF"/>
 
-     <SolidColorBrush x:Key="SubMenu_BD_Shadow" Color="#FF071D3F"/>
 
-     <SolidColorBrush x:Key="SubMenu_BD_SelectInnerGrow" Color="#FFD2F6FF"/>
 
-     <SolidColorBrush x:Key="SubMenu_FG_Select" Color="#FF10619E"/>
 
-     <SolidColorBrush x:Key="SubMenu_BG"  Color="#FF23416F"/>
 
-     <SolidColorBrush x:Key="SubMenu_FG" Color="#FFB1D2F2"/>
 
-     <SolidColorBrush x:Key="Table_BG_FirstTitle" Color="#FF376092"/>
 
-     <SolidColorBrush x:Key="Table_BG_Title" Color="LightBlue"/>
 
-     <SolidColorBrush x:Key="Table_BD" Color="#FF1B385C"/>
 
-     <SolidColorBrush x:Key="Table_BG_Content" Color="#d6f1ff"/>
 
-     <SolidColorBrush x:Key="HeaderPanel_BG_Title" Color="#FF6DA3CD"/>
 
-     <SolidColorBrush x:Key="HeaderPanel_BG" Color="#FFD1E1F3"/>
 
-     <LinearGradientBrush x:Key="MainFrame_BG_Title" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FFa8a7a7" Offset="0"/>
 
-         <GradientStop Color="#FFeaeaea" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="MainFrame_BG_Title_Select" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF4f6698" Offset="0"/>
 
-         <GradientStop Color="#FFbecadf" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <SolidColorBrush x:Key="MainFrame_BD" Color="#FF656565"/>
 
-     <SolidColorBrush x:Key="MainFrame_BD_Highlight" Color="LightGray"/>
 
-     <SolidColorBrush x:Key="MainFrame_BD_Shadow" Color="#FF768194"/>
 
-     <LinearGradientBrush x:Key="MainFrame_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF1E7FC3" Offset="0"/>
 
-         <GradientStop Color="#FF365F90" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <SolidColorBrush x:Key="ContentFrame_BG" Color="#FFB1D2F2"/>
 
-     <!-- Bottom Frame -->
 
-     <SolidColorBrush x:Key="BottomFrame_Shadow" Color="Black"/>
 
-     <SolidColorBrush x:Key="BottomFrame_BG" Color="#FF0C206C"/>
 
-     <LinearGradientBrush x:Key="BottomFrame_BD" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="White" Offset="0"/>
 
-         <GradientStop Color="#FF0480C3" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <!-- TextColor Style -->
 
-     <SolidColorBrush x:Key="FG_Black" Color="Black"/>
 
-     <SolidColorBrush x:Key="FG_Green" Color="LimeGreen"/>
 
-     <SolidColorBrush x:Key="FG_White" Color="White"/>
 
-     <SolidColorBrush x:Key="FG_Blue" Color="Blue"/>
 
-     <SolidColorBrush x:Key="FG_TopInfo_Title" Color="White"/>
 
-     <SolidColorBrush x:Key="FG_TopInfo_Content" Color="#FFF4FF58"/>
 
-     <!--BottomView Style-->
 
-     <SolidColorBrush x:Key="BtmnavButton_FG" Color="White"/>
 
-     
 
-     <!-- Login Page -->
 
-     <LinearGradientBrush x:Key="Login_TopOuter_BG" EndPoint="1,1" StartPoint="0,0">
 
-         <GradientStop Color="#FFB8B8B8" Offset="0"/>
 
-         <GradientStop Color="#FFB1B1B1" Offset="1"/>
 
-         <GradientStop Color="#FFEDEDED" Offset="0.153"/>
 
-         <GradientStop Color="#FFBABABA" Offset="0.3"/>
 
-         <GradientStop Color="#FFD4D4D4" Offset="0.305"/>
 
-         <GradientStop Color="White" Offset="0.5"/>
 
-         <GradientStop Color="#FFD8D5D5" Offset="0.65"/>
 
-         <GradientStop Color="#FFCACACA" Offset="0.655"/>
 
-         <GradientStop Color="#FEEDEDED" Offset="0.75"/>
 
-         <GradientStop Color="#FEC8C8C8" Offset="0.8"/>
 
-         <GradientStop Color="#FEE4E4E4" Offset="0.805"/>
 
-         <GradientStop Color="#FEFFFFFF" Offset="0.9"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_TopOuter_BD" EndPoint="0.514,1.285" StartPoint="0.496,-0.007">
 
-         <GradientStop Color="White"/>
 
-         <GradientStop Color="#FF5C5C5C" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_TopInner_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF003A7A" Offset="0"/>
 
-         <GradientStop Color="#FF346FB1" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_TopInner_BD" EndPoint="0.5,-0.002" StartPoint="0.513,1.002">
 
-         <GradientStop Color="White"/>
 
-         <GradientStop Color="#FF002949" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_MainOuter_BG" EndPoint="1,1" StartPoint="0,0">
 
-         <GradientStop Color="#FFB8B8B8" Offset="0"/>
 
-         <GradientStop Color="#FFB1B1B1" Offset="1"/>
 
-         <GradientStop Color="#FFEDEDED" Offset="0.153"/>
 
-         <GradientStop Color="#FFBABABA" Offset="0.3"/>
 
-         <GradientStop Color="#FFD4D4D4" Offset="0.305"/>
 
-         <GradientStop Color="White" Offset="0.5"/>
 
-         <GradientStop Color="#FFD8D5D5" Offset="0.65"/>
 
-         <GradientStop Color="#FFCACACA" Offset="0.655"/>
 
-         <GradientStop Color="#FEEDEDED" Offset="0.75"/>
 
-         <GradientStop Color="#FEC8C8C8" Offset="0.8"/>
 
-         <GradientStop Color="#FEE4E4E4" Offset="0.805"/>
 
-         <GradientStop Color="#FEFFFFFF" Offset="0.9"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_MainOuter_BD" EndPoint="0.595,0.983" StartPoint="0.325,0.023">
 
-         <GradientStop Color="White"/>
 
-         <GradientStop Color="#FF5C5C5C" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_MainInner_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FFACE2F9" Offset="0"/>
 
-         <GradientStop Color="#FF2CA7DC" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_MainInner_BD" EndPoint="0.301,0.038" StartPoint="0.619,0.968">
 
-         <GradientStop Color="White"/>
 
-         <GradientStop Color="#FF5C5C5C" Offset="1"/>
 
-     </LinearGradientBrush>
 
-     <LinearGradientBrush x:Key="Login_BG" EndPoint="0.5,1" StartPoint="0.5,0">
 
-         <GradientStop Color="#FF0093D2" Offset="1"/>
 
-         <GradientStop Color="#FF003876"/>
 
-     </LinearGradientBrush>
 
-     <!--the brushes used in the template (use these to customize the window look along with the window style (see the bottom of this file)-->
 
-     <SolidColorBrush x:Key="WindowColor" Color="Red"/>
 
-     <SolidColorBrush x:Key="WindowBackColor" Color="LightBlue"/>
 
-     <SolidColorBrush x:Key="WindowForeColor" Color="WhiteSmoke"/>
 
-     <SolidColorBrush x:Key="WindowForeHighlightColor" Color="WhiteSmoke"/>
 
-     <SolidColorBrush x:Key="WindowButtonColor" Color="DodgerBlue"/>
 
-     <SolidColorBrush x:Key="WindowButtonOverColor" Color="LightBlue"/>
 
-     <SolidColorBrush x:Key="WindowButtonPressedColor" Color="DarkBlue"/>
 
-     <!---red window brushes-->
 
-     <!--<SolidColorBrush x:Key="WindowColor" Color="DarkRed"/>
 
-         <SolidColorBrush x:Key="WindowBackColor" Color="DarkRed"/>
 
-         <SolidColorBrush x:Key="WindowForeColor" Color="White"/>
 
-         <SolidColorBrush x:Key="WindowForeHighlightColor" Color="White"/>
 
-         <SolidColorBrush x:Key="WindowButtonColor" Color="OrangeRed"/>
 
-         <SolidColorBrush x:Key="WindowButtonOverColor" Color="Orange"/>
 
-         <SolidColorBrush x:Key="WindowButtonPressedColor" Color="DarkOrange"/>-->
 
-     <!--The window template and it's components -->
 
-     <styleableWindow:WindowMinimizeCommand x:Key="MinimizeCommand"></styleableWindow:WindowMinimizeCommand>
 
-     <styleableWindow:WindowMaximizeCommand x:Key="MaximizeCommand"></styleableWindow:WindowMaximizeCommand>
 
-     <styleableWindow:WindowCloseCommand x:Key="CloseCommand"></styleableWindow:WindowCloseCommand>
 
-     <Style TargetType="{x:Type Button}" x:Key="WindowButton">
 
-         <Setter Property="Height" Value="25"/>
 
-         <Setter Property="Width" Value="25"/>
 
-         <Setter Property="Background" Value="{StaticResource WindowButtonColor}"/>
 
-         <Setter Property="Foreground" Value="{StaticResource WindowForeColor}"/>
 
-         <Setter Property="Template">
 
-             <Setter.Value>
 
-                 <ControlTemplate TargetType="{x:Type Button}">
 
-                     <Border Background="{TemplateBinding Background}">
 
-                         <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
 
-                     </Border>
 
-                     <ControlTemplate.Triggers>
 
-                         <Trigger Property="IsEnabled" Value="False">
 
-                             <Setter Property="Background" Value="{StaticResource WindowButtonColor}"/>
 
-                             <Setter Property="Foreground" Value="{StaticResource WindowColor}"/>
 
-                         </Trigger>
 
-                         <Trigger Property="IsMouseOver" Value="True">
 
-                             <Setter Property="Background" Value="{StaticResource WindowButtonOverColor}"/>
 
-                             <Setter Property="Foreground" Value="{StaticResource WindowForeHighlightColor}"/>
 
-                         </Trigger>
 
-                         <Trigger Property="IsPressed" Value="True">
 
-                             <Setter Property="Background" Value="{StaticResource WindowButtonPressedColor}"/>
 
-                             <Setter Property="Foreground" Value="{StaticResource WindowForeColor}"/>
 
-                         </Trigger>
 
-                     </ControlTemplate.Triggers>
 
-                 </ControlTemplate>
 
-             </Setter.Value>
 
-         </Setter>
 
-     </Style>
 
-     <Style TargetType="{x:Type Image}" x:Key="WindowIcon">
 
-         <Setter Property="Height" Value="25"/>
 
-         <Setter Property="Width" Value="25"/>
 
-     </Style>
 
-     <ControlTemplate x:Key="WindowTemplate" TargetType="{x:Type Window}">
 
-         <Grid Background="{StaticResource WindowBackColor}">
 
-             <Grid>
 
-                 <Grid.RowDefinitions>
 
-                     <RowDefinition Height="30"/>
 
-                     <RowDefinition Height="*"/>
 
-                 </Grid.RowDefinitions>
 
-                 <Grid Grid.Row="0" Margin="5,0,5,0">
 
-                     <Grid.ColumnDefinitions>
 
-                         <ColumnDefinition Width="auto"/>
 
-                         <ColumnDefinition Width="*"/>
 
-                         <ColumnDefinition Width="75"/>
 
-                     </Grid.ColumnDefinitions>
 
-                     <Label Grid.Column="0"                                           
 
-                                     styleableWindow:ControlDoubleClickBehavior.ExecuteCommand="{StaticResource CloseCommand}"                                               
 
-                                     styleableWindow:ControlDoubleClickBehavior.ExecuteCommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" Padding="0">
 
-                         <Image DockPanel.Dock="Left" Style="{StaticResource WindowIcon}" Source="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}},Path=Icon}"                                         
 
-                                     Width="16"                                           
 
-                                     styleableWindow:ShowSystemMenuBehavior.TargetWindow="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"                                           
 
-                                     styleableWindow:ShowSystemMenuBehavior.LeftButtonShowAt="{Binding ElementName=WindowContent}"/>
 
-                     </Label>
 
-                     <Label Grid.Column="1" DockPanel.Dock="Left" Content="{TemplateBinding Property=Title}" Padding="3,0,0,0"                                                                                  
 
-                                     HorizontalContentAlignment="Center"
 
-                                     VerticalContentAlignment="Center"
 
-                                     HorizontalAlignment="Stretch"
 
-                                     VerticalAlignment="Stretch"
 
-                                     Foreground="{StaticResource WindowForeColor}"                                           
 
-                                     FontSize="16"
 
-                                     styleableWindow:WindowDragBehavior.LeftMouseButtonDrag="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
 
-                                     styleableWindow:ControlDoubleClickBehavior.ExecuteCommand="{StaticResource MaximizeCommand}"
 
-                                     styleableWindow:ControlDoubleClickBehavior.ExecuteCommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
 
-                                     styleableWindow:ShowSystemMenuBehavior.TargetWindow="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
 
-                                     styleableWindow:ShowSystemMenuBehavior.RightButtonShow="true">
 
-                     </Label>
 
-                     <StackPanel Grid.Column="2" Orientation="Horizontal">
 
-                         <Button DockPanel.Dock="Right" Style="{StaticResource WindowButton}" Command="{StaticResource MinimizeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}">_</Button>
 
-                         <Button DockPanel.Dock="Right" Style="{StaticResource WindowButton}" Command="{StaticResource MaximizeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}">+</Button>
 
-                         <Button DockPanel.Dock="Right"  Style="{StaticResource WindowButton}" Command="{StaticResource CloseCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}">X</Button>
 
-                     </StackPanel>
 
-                 </Grid>
 
-                 <Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
 
-                     <Grid>
 
-                         <AdornerDecorator>
 
-                             <ContentPresenter x:Name="WindowContent"/>
 
-                         </AdornerDecorator>
 
-                         <ResizeGrip  x:Name="WindowResizeGrip" HorizontalAlignment="Right" IsTabStop="false" Visibility="Collapsed" VerticalAlignment="Bottom"/>
 
-                     </Grid>
 
-                 </Border>
 
-             </Grid>
 
-             <Thumb x:Name="ThumbTop" Height="6" Margin="14,0" VerticalAlignment="Top" Cursor="SizeNS"  Opacity="0" styleableWindow:WindowResizeBehavior.TopResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbTopLeft" Height="6" Width="6" VerticalAlignment="Top" HorizontalAlignment="Left" Cursor="SizeNWSE"  Opacity="0" styleableWindow:WindowResizeBehavior.TopLeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbBottom" Height="6" Margin="14,0" VerticalAlignment="Bottom" Cursor="SizeNS" Opacity="0" styleableWindow:WindowResizeBehavior.BottomResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbTopRight" Height="6" Width="6" VerticalAlignment="Top" HorizontalAlignment="Right" Cursor="SizeNESW"  Opacity="0" styleableWindow:WindowResizeBehavior.TopRightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbRight" HorizontalAlignment="Right" Margin="0,14" Width="6" Cursor="SizeWE"  Opacity="0" styleableWindow:WindowResizeBehavior.RightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbBottomRight" Height="6" Width="6" VerticalAlignment="Bottom" HorizontalAlignment="Right" Cursor="SizeNWSE"  Opacity="0" styleableWindow:WindowResizeBehavior.BottomRightResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbLeft" HorizontalAlignment="Left" Margin="0,14" Width="6" Cursor="SizeWE"  Opacity="0" styleableWindow:WindowResizeBehavior.LeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-             <Thumb x:Name="ThumbBottomLeft" Height="6" Width="6" VerticalAlignment="Bottom" HorizontalAlignment="Left" Cursor="SizeNESW"  Opacity="0" styleableWindow:WindowResizeBehavior.BottomLeftResize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/>
 
-         </Grid>
 
-         <ControlTemplate.Triggers>
 
-             <MultiTrigger>
 
-                 <MultiTrigger.Conditions>
 
-                     <Condition Property="ResizeMode" Value="CanResizeWithGrip"/>
 
-                     <Condition Property="WindowState" Value="Normal"/>
 
-                 </MultiTrigger.Conditions>
 
-                 <Setter Property="Visibility" TargetName="WindowResizeGrip" Value="Visible"/>
 
-             </MultiTrigger>
 
-         </ControlTemplate.Triggers>
 
-     </ControlTemplate>
 
-     <!-- the custom window style and the window template 
 
-         Here you can customize the look of the window without having to touch the control template 
 
-         or comment out the brushes and create a new style (see the red style below)-->
 
-     <Style x:Key="CustomWindowStyle" TargetType="{x:Type Window}">
 
-         <Setter Property="WindowStyle" Value="None"/>
 
-         <Setter Property="AllowsTransparency" Value="True"/>
 
-         <Setter Property="MinWidth" Value="200"/>
 
-         <Setter Property="MinHeight" Value="46"/>
 
-         <!--CaptionHeight + ResizeBorderThickness * 2-->
 
-         <Setter Property="Background" Value="LightGray"/>
 
-         <Setter Property="BorderBrush" Value="DodgerBlue"/>
 
-         <Setter Property="BorderThickness" Value="2"/>
 
-         <Setter Property="Foreground" Value="Black"/>
 
-         <Setter Property="Template" Value="{StaticResource WindowTemplate}"/>
 
-     </Style>
 
-     <!--the red style window-->
 
-     <Style x:Key="RedWindowStyle" TargetType="{x:Type Window}">
 
-         <Setter Property="WindowStyle" Value="None"/>
 
-         <Setter Property="AllowsTransparency" Value="True"/>
 
-         <Setter Property="MinWidth" Value="100"/>
 
-         <Setter Property="MinHeight" Value="46"/>
 
-         <Setter Property="Background" Value="white"/>
 
-         <Setter Property="BorderBrush" Value="DarkRed"/>
 
-         <Setter Property="BorderThickness" Value="2"/>
 
-         <Setter Property="Foreground" Value="DarkGray"/>
 
-         <Setter Property="Template" Value="{StaticResource WindowTemplate}"/>
 
-     </Style>
 
- </ResourceDictionary>
 
 
  |