Subversion Repositories SoapBoxCore

Rev

Rev 17 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ad="clr-namespace:AvalonDock">


        <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/AvalonDock;component/themes/generic.xaml"/>

                <!--Aero colors-->
                <ResourceDictionary Source="/AvalonDock;component/themes/aero.normalcolor.brushes.xaml"/>
        </ResourceDictionary.MergedDictionaries>


        <!-- styles for Aero theme thanks to Alexey Potapov-->

        <!--DockableContentTabItemStyle-->
        <Style x:Key="DockableContentTabItemStyle" TargetType="{x:Type ad:DockableContent}">
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:DockableContent}">
                                        <Grid SnapsToDevicePixels="True">
                                                <Border 
                                                    x:Name="PART_DragArea" 
                                                    BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}" 
                                                    BorderThickness="1,0,1,1" 
                            Margin="0,2,-1,0"
                            CornerRadius="0"
                            Background="{StaticResource ManagedContentTabItemNormalBackground}"   
                            Padding="1"
                            >
                                                        <!--<StackPanel Orientation="Horizontal" Margin="4,0,4,0">-->
                                                        <Grid Margin="4,0,4,0">
                                                                <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                </Grid.ColumnDefinitions>
                                                                <ad:AlignedImage>
                                                                        <ContentPresenter x:Name="Icon"
                                                                                                        Grid.Column="0"
                                                                                                        Margin="1"
                                                                                                        VerticalAlignment="Center"
                                                                                                        ContentSource="Icon"
                                                                                                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                                                </ad:AlignedImage>
                                                                <TextBlock 
                                                                        x:Name="tabItemTitle"
                                        Grid.Column="1"
                                                                        TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
                                                                        Text="{TemplateBinding Title}" 
                                                                        Margin="2,0,0,0" VerticalAlignment="Center"
                                                                        Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                                                        </Grid>
                                                        <!--</StackPanel>-->
                                                </Border>
                                        </Grid>

                                        <ControlTemplate.Triggers>
                                                <Trigger Property="Selector.IsSelected"
                                                                 Value="true">
                                                        <Setter Property="BorderBrush"
                                                                        Value="{StaticResource ManagedContentTabItemSelectedBorderBrush}" TargetName="PART_DragArea"/>
                                                        <Setter Property="Background"
                                                                        Value="{StaticResource ManagedContentTabItemSelectedBackground}" TargetName="PART_DragArea"/>
                                                        <Setter Property="Foreground"
                                                                        Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" TargetName="tabItemTitle"/>
                                                        <Setter Property="Margin"
                                    Value="0,1,-1,-2" TargetName="PART_DragArea"/>
                                                        <Setter Property="Padding"
                                    Value="2" TargetName="PART_DragArea"/>
                                                        <Setter Property="Panel.ZIndex" 
                                    Value="100" />
                                                </Trigger>
                                                <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                                <Condition Property="IsMouseOver" Value="true"/>
                                                                <Condition Property="Selector.IsSelected" Value="false"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemHotBorderBrush}" 
                                    TargetName="PART_DragArea" />
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}" 
                                    TargetName="PART_DragArea" />
                                                        <Setter Property="Panel.ZIndex" Value="99" />
                                                </MultiTrigger>
                                                <Trigger Property="IsEnabled" Value="false">
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemDisabledBorderBrush}"
                                    TargetName="PART_DragArea" />
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemDisabledBackground}"
                                    TargetName="PART_DragArea" />
                                                        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"
                                    TargetName="tabItemTitle" />
                                                        <Setter TargetName="Icon" Property="IsEnabled" Value="false" />
                                                </Trigger>
                                                <Trigger Property="Icon"
                     Value="{x:Null}">
                                                        <Setter TargetName="Icon"
                        Property="Visibility"
                        Value="Collapsed"/>
                                                </Trigger>
                                        </ControlTemplate.Triggers>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
        </Style>

        <!--DockablePane-->
        <Style x:Key="{x:Type ad:DockablePane}" TargetType="{x:Type ad:DockablePane}">
                <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:DockablePane}">
                                        <Border
                            Focusable="True"
                            Background="{TemplateBinding Background}"
                            >
                                                <Grid FocusManager.FocusedElement="{Binding ElementName=PART_SelectedContent}">
                                                        <Grid.RowDefinitions>
                                                                <RowDefinition Height="Auto"/>
                                                                <RowDefinition Height="*"/>
                                                                <RowDefinition Height="Auto"/>
                                                        </Grid.RowDefinitions>
                                                        <Border x:Name="PART_Header" 
                                                                Grid.Row="0" Focusable="False" 
                                                                Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackground}}}"
                                                                BorderThickness="1,1,1,0" 
                                                                BorderBrush="DarkGray"
                                    Height="18">
                                                                <DockPanel LastChildFill="True">
                                                                        <Button DockPanel.Dock="Right" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePane.CloseCommand"
                                                Width="15" Height="15" Margin="2,0,2,0" VerticalAlignment="Center">
                                                                                <Image Source="/AvalonDock;component/resources/Images/PinClose.png" Width="13" Height="13" Stretch="None"/>
                                                                        </Button>
                                                                        <Button x:Name="btnPinAutoHide" DockPanel.Dock="Right" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePane.ToggleAutoHideCommand"
                                                Width="15" Height="15" VerticalAlignment="Center">
                                                                                <Image Source="/AvalonDock;component/resources/Images/PinAutoHide.png" Width="13" Height="13" Stretch="None"/>
                                                                        </Button>
                                                                        <Button x:Name="PART_ShowContextMenuButton"  DockPanel.Dock="Right" Style="{StaticResource PaneHeaderContextMenuCommandStyle}" Command="ad:DockablePane.ShowOptionsCommand"
                                                Width="15" Height="15" VerticalAlignment="Center">
                                                                                <Image Source="/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" Stretch="None"/>
                                                                        </Button>
                                                                        <TextBlock 
                                                                                Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Title}" 
                                                                                x:Name="paneTitle"
                                                                                Grid.Row="0" 
                                                                                Margin="2,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
                                            VerticalAlignment="Center"
                                                                                Foreground="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleForeground}}}"/>
                                                                </DockPanel>
                                                        </Border>
                                                        <Border Grid.Row="1" 
                                                                    BorderThickness="1,0,1,1" 
                                                                    BorderBrush="DarkGray"
                                        Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}"   
                                    >
                                                                <ContentPresenter 
                                        x:Name="PART_SelectedContent"
                                        
                                        Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
                                                                        KeyboardNavigation.TabNavigation="Local"
                                                                        KeyboardNavigation.DirectionalNavigation="Contained"
                                                                        KeyboardNavigation.TabIndex="1"
                                        />
                                                        </Border>
                                                        <Border x:Name="PART_Tabs"
                                        Grid.Row="2" 
                                                                        Margin ="0,2,0,0" 
                                        Height ="23" 
                                                                        BorderThickness="0,1,0,0" 
                                                                        BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}" 
                                                                        >
                                                        </Border>
                                                        <ad:DockableTabPanel
                                        Grid.Row="2" 
                                        Height ="22" 
                                        KeyboardNavigation.TabIndex="2"                                                         
                                        IsItemsHost="True" 
                                        x:Name="paneTabsPanel" 
                                        Margin="0,0,0,2"
                                        TabItemStyle="{StaticResource DockableContentTabItemStyle}"/>
                                                </Grid>
                                        </Border>
                                        <ControlTemplate.Triggers>
                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.IsActiveContent}" Value="True" >
                                                        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackgroundSelected}}}" TargetName="PART_Header"/>
                                                        <Setter Property="Foreground" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleForegroundSelected}}}" TargetName="paneTitle"/>
                                                </DataTrigger>
                                                <Trigger Property ="ShowHeader" Value="False">
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Header"/>
                                                </Trigger>
                                                <Trigger Property ="ShowTabs" Value="False">
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
                                                </Trigger>
                                                <Trigger Property ="HasSingleItem" Value="True">
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="paneTabsPanel"/>
                                                </Trigger>
                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.State}" Value="AutoHide">
                                                        <Setter Property="LayoutTransform" TargetName="btnPinAutoHide">
                                                                <Setter.Value>
                                                                        <RotateTransform Angle="90"/>
                                                                </Setter.Value>
                                                        </Setter>
                                                </DataTrigger>
                                        </ControlTemplate.Triggers>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
        </Style>

        <!--DocumentTabItemStyle-->
        <Style x:Key="DocumentTabItemStyle" TargetType="{x:Type ad:ManagedContent}">
                <Setter Property="Background"
                Value="Transparent"/>
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:ManagedContent}">
                                        <Border 
                                                x:Name="PART_DragArea" 
                                                BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
                        Margin="-10,0,0,0"
                                                SnapsToDevicePixels="True"
                        ContextMenu="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:ContextMenuElement.DocumentPane}}}"
                        >
                                                <Grid Margin="0,0,0,0" >
                                                        <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="20"/>
                                                                <ColumnDefinition Width="Auto"/>
                                                        </Grid.ColumnDefinitions>
                                                        <Path Data="M 20,0.5 Q 16,0.5 10,10 Q 5,19.5 0,19.5 L 20,19.5"
                                x:Name="tabItemIntPathBackground"  
                                  Fill="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackground}}}"/>
                                                        <Path 
                                x:Name="tabItemIntPathBorder"  
                                Stroke="{StaticResource ManagedContentTabControlNormalBorderBrush}"
                                Data="M 20,0.5 Q 16,0.5 10,10 Q 5,19.5 0, 19.5"
                            />
                                                        <Border
                                    x:Name="tabItemIntBorder"
                                    Grid.Column="1"
                                    BorderThickness="0,1,1,0"
                                    Margin="-0.5,0,0,0"
                                    CornerRadius="0,3,0,0"
                                    BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
                                    Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackground}}}"
                                >
                                                                <StackPanel Orientation="Horizontal" 
                                            Margin="5,0,4,0">
                                                                        <TextBlock 
                                                                        x:Name="tabItemTitle" 
                                                                        TextTrimming="CharacterEllipsis" 
                                            TextWrapping="NoWrap"
                                                                        Text="{TemplateBinding Title}" 
                                                                        Foreground="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderForeground}}}"/>
                                                                        <ad:AlignedImage x:Name="PART_LockedIcon" Margin="2,0,0,0" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center">
                                                                                <Image Source="/AvalonDock;component/resources/Images/Locked.png" Width="6" Height="8" Stretch="Uniform"/>
                                                                        </ad:AlignedImage>
                                                                </StackPanel>
                                                        </Border>
                                                </Grid>
                                        </Border>
                                        <ControlTemplate.Triggers>
                                                <Trigger Property="Selector.IsSelected" Value="True">
                                                        <Setter Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundSelected}}}"
                                    />
                                                        <Setter Property="Fill" 
                                    TargetName="tabItemIntPathBackground" 
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundSelected}}}"
                                    />
                                                        <Setter Property="BorderBrush" TargetName="tabItemIntBorder" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}"/>
                                                        <Setter Property="Stroke" TargetName="tabItemIntPathBorder" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}"/>
                                                        <!--<Setter Property="Panel.ZIndex" Value="1"/> DOES NOT WORK! I DON'T KNOW WHY!!???-->
                                                </Trigger>
                                                <DataTrigger Binding="{Binding Path=IsActiveDocument, RelativeSource={RelativeSource Self}}" Value="True">
                                                        <Setter Property="TextBlock.FontWeight" TargetName="tabItemTitle" Value="Bold"/>
                                                </DataTrigger>
                                                <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                                <Condition Property="IsMouseOver" SourceName="tabItemIntBorder" Value="True"/>
                                                                <Condition Property="Selector.IsSelected" Value="False"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundMouseOver}}}"
                                    />
                                                        <Setter Property="Fill" 
                                    TargetName="tabItemIntPathBackground" 
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundMouseOver}}}"
                                    />
                                                </MultiTrigger>

                                                <DataTrigger Binding="{Binding Path=IsLocked, RelativeSource={RelativeSource Self}}" Value="True">
                                                        <Setter Property="Visibility" Value="Visible" TargetName="PART_LockedIcon"/>
                                                </DataTrigger>
                                        </ControlTemplate.Triggers>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
        </Style>

        <!--DocumentPane-->
        <Style TargetType="{x:Type ad:DocumentPane}">
                <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
                <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:DocumentPane}" >
                                        <ControlTemplate.Resources>
                                                <ContextMenu x:Key="DocumentsListMenu" StaysOpen="True" >
                                                        <!--ItemTemplate="{StaticResource ManagedContentHeaderDataTemplate}"-->
                                                        <ContextMenu.ItemContainerStyle>
                                                                <Style TargetType="{x:Type MenuItem}">
                                                                        <Setter Property="CommandParameter" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Header}"/>
                                                                        <Setter Property="Command" Value="ad:DocumentPane.ActivateDocumentCommand"/>
                                                                        <Setter Property="Template">
                                                                                <Setter.Value>
                                                                                        <ControlTemplate TargetType="MenuItem">
                                                                                                <Border x:Name="intBorder" BorderThickness="1" Background="{TemplateBinding Background}" CornerRadius="2">
                                                                                                        <Grid>
                                                                                                                <Grid.ColumnDefinitions>
                                                                                                                        <ColumnDefinition Width="Auto" MinWidth="24"/>
                                                                                                                        <ColumnDefinition Width="*"/>
                                                                                                                </Grid.ColumnDefinitions>
                                                                                                                <ContentPresenter x:Name="Icon" Margin="2" Content="{Binding Path=Icon}" Grid.Column="0" VerticalAlignment="Center"/>
                                                                                                                <TextBlock x:Name="intMenuTitle" Margin="5,2,20,2" Text="{Binding Path=Title}" Grid.Column="1" VerticalAlignment="Center"/>
                                                                                                        </Grid>
                                                                                                </Border>
                                                                                                <ControlTemplate.Triggers>
                                                                                                        <Trigger Property="IsMouseOver" Value="true">
                                                                                                                <Setter Property="Background" TargetName="intBorder">
                                                                                                                        <Setter.Value>
                                                                                                                                <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ActiveCaptionColorKey}}" Opacity="0.3"/>
                                                                                                                        </Setter.Value>
                                                                                                                </Setter>
                                                                                                                <Setter Property="BorderBrush" TargetName="intBorder" Value="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}"/>
                                                                                                        </Trigger>
                                                                                                        <DataTrigger Binding="{Binding Path=IsActiveDocument}" Value="True">
                                                                                                                <Setter Property="FontWeight" Value="Bold" TargetName="intMenuTitle"/>
                                                                                                        </DataTrigger>
                                                                                                        <!--<Trigger Property="Icon"
                                                            Value="{x:Null}">
                                                        <Setter TargetName="Icon"
                                                            Property="Visibility"
                                                            Value="Collapsed"/>
                                                    </Trigger>-->
                                                                                                </ControlTemplate.Triggers>
                                                                                        </ControlTemplate>
                                                                                </Setter.Value>
                                                                        </Setter>
                                                                </Style>
                                                        </ContextMenu.ItemContainerStyle>
                                                </ContextMenu>
                                        </ControlTemplate.Resources>
                                        <Border 
                        Focusable="False"
                        Background="{TemplateBinding Background}"
                        >
                                                <Grid>
                                                        <Grid.RowDefinitions>
                                                                <RowDefinition Height="20"/>
                                                                <RowDefinition Height="*"/>
                                                        </Grid.RowDefinitions>
                                                        <Grid Grid.Row="1" Margin="0,-1,0,0">
                                                                <Border 
                                    BorderThickness="5" 
                                    BorderBrush="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}" 
                                    CornerRadius="3" 
                                    Focusable="False">
                                                                </Border>
                                                                <Border BorderThickness="2" 
                                        BorderBrush="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder2}}}" 
                                        CornerRadius="3" 
                                        Margin="1" 
                                        Focusable="False"
                                        Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}"   
                                        >
                                                                        <ContentPresenter 
                                        Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
                                        Margin="2"
                                                                        KeyboardNavigation.TabNavigation="Local"
                                                                        KeyboardNavigation.DirectionalNavigation="Contained"
                                                                        KeyboardNavigation.TabIndex="1"
                                        />
                                                                </Border>
                                                        </Grid>
                                                        <Border x:Name="PART_Header" 
                                                            Grid.Row="0" 
                                                            Focusable="False" 
                                                            BorderThickness="1,1,1,0">
                                                                <DockPanel LastChildFill="True">
                                                                        <Button DockPanel.Dock="Right" Width="15" Height="15" Margin="2,0,2,0" Style="{StaticResource PaneHeaderCommandStyle}" Command="ApplicationCommands.Close">
                                                                                <Image Source="/AvalonDock;component/resources/Images/PinClose.png" Width="13" Height="13" Stretch="None"/>
                                                                        </Button>
                                                                        <Button x:Name="PART_ShowContextMenuButton" DockPanel.Dock="Right" Width="15" Height="15" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DocumentPane.ShowDocumentsListMenuCommand">
                                                                                <Image x:Name="ShowContextMenuIcon" Source="/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" Stretch="None"/>
                                                                        </Button>
                                                                        <ad:DocumentTabPanel 
                                      x:Name="paneTabsPanel" 
                                      Panel.ZIndex ="1" 
                                      KeyboardNavigation.TabIndex="2"                                                           
                                                                      IsItemsHost="True" 
                                                                      Margin="10,2,0,0"
                                                                      TabItemStyle="{StaticResource DocumentTabItemStyle}"/>
                                                                </DockPanel>
                                                        </Border>
                                                </Grid>
                                        </Border>
                                        <ControlTemplate.Triggers>
                                                <Trigger Property="HasItems" Value="False">
                                                        <Setter Property="Visibility" Value="Hidden"/>
                                                </Trigger>
                                                <DataTrigger Binding="{Binding Path=IsMainDocumentPane, RelativeSource={RelativeSource Self}}" Value="True">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images\PinDocMenu.png" TargetName="ShowContextMenuIcon"/>
                                                </DataTrigger>
                                                <EventTrigger RoutedEvent="Window.Loaded">
                                                        <BeginStoryboard>
                                                                <Storyboard>
                                                                        <DoubleAnimation
                                        Storyboard.TargetProperty="Opacity"
                                        From="0" To="1"  Duration="0:0:0.200" />
                                                                </Storyboard>
                                                        </BeginStoryboard>
                                                </EventTrigger>
                                        </ControlTemplate.Triggers>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
        </Style>

        <!--DockablePaneAnchorTab-->
        <Style TargetType="{x:Type ad:DockablePaneAnchorTab}">
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:DockablePaneAnchorTab}">
                                        <Grid>
                                                <Border 
                          Name="PART_Border" 
                          BorderThickness="1,0,1,1" 
                          BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
                          Background="{StaticResource ManagedContentTabItemNormalBackground}">
                                                        
                                                        <Grid>
                                                                <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                </Grid.ColumnDefinitions>

                                                                <Border Grid.Column="0" Width="16" Height="16">
                                                                        <Border.Background>
                                                                                <VisualBrush Stretch="None" Visual="{Binding Path=ReferencedContent.Icon, RelativeSource={RelativeSource TemplatedParent}}"/>
                                                                        </Border.Background>
                                                                </Border>
                                                                <TextBlock 
                                    Grid.Column="1"
                                    Text="{Binding Path=ReferencedContent.Title, RelativeSource={RelativeSource TemplatedParent}}"  
                                    Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"  
                                    Margin="4,2,2,2"/>
                                                        </Grid>
                                                </Border>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                                <Trigger Property="Anchor" >
                                                        <Trigger.Value>
                                                                <ad:AnchorStyle>
                                                                        Left
                                                                </ad:AnchorStyle>
                                                        </Trigger.Value>
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemInvNormalBackground}"/>
                                                        <Setter TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
                                                </Trigger>
                                                <Trigger Property="Anchor">
                                                        <Trigger.Value>
                                                                <ad:AnchorStyle>
                                                                        Bottom
                                                                </ad:AnchorStyle>
                                                        </Trigger.Value>
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemInvNormalBackground}"/>
                                                        <Setter TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
                                                </Trigger>

                                                <Trigger Property="IsMouseOver"
                                                                 Value="true">
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemHotBorderBrush}" 
                                    TargetName="PART_Border" />
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemInvHotBackground}" 
                                    TargetName="PART_Border" />
                                                </Trigger>

                                                <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                                <Condition Property="IsMouseOver" Value="True"/>
                                                                <Condition Property="Anchor">
                                                                        <Condition.Value>
                                                                                <ad:AnchorStyle>
                                                                                        Top
                                                                                </ad:AnchorStyle>
                                                                        </Condition.Value>
                                                                </Condition>
                                                        </MultiTrigger.Conditions>
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}"/>
                                                </MultiTrigger>
                                                <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                                <Condition Property="IsMouseOver" Value="True"/>
                                                                <Condition Property="Anchor">
                                                                        <Condition.Value>
                                                                                <ad:AnchorStyle>
                                                                                        Right
                                                                                </ad:AnchorStyle>
                                                                        </Condition.Value>
                                                                </Condition>
                                                        </MultiTrigger.Conditions>
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}"/>
                                                </MultiTrigger>

                                        </ControlTemplate.Triggers>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
        </Style>

        <!--DockablePaneAnchorTabGroup-->
        <Style TargetType="{x:Type ad:DockablePaneAnchorTabGroup}">
                <Setter Property="Orientation" Value="Horizontal"/>
                <Setter Property="Margin" Value="7,0,0,0"/>
        </Style>

        <!--OverlayWindow-->
        <Style TargetType="{x:Type ad:OverlayWindow}">
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="Focusable" Value="False"/>
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ad:OverlayWindow}">
                                        <Grid SnapsToDevicePixels="True" Opacity="0.9">
                                                <Canvas>
                                                        <Border x:Name="PART_SelectionBox" Background="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" BorderBrush="Gray" BorderThickness="3" Opacity="0.2" Visibility="Hidden"/>
                                                </Canvas>
                                                <Grid x:Name="panelDrag" >
                                                        <ad:AlignedImage Name="PART_btnDockLeft" VerticalAlignment="Center" HorizontalAlignment="Left">
                                                                <Image x:Name="IMG_DockLeft" Source="/AvalonDock;component/resources/Images/Aero/AeroDockLeft.PNG" Stretch="Uniform" Width="32" Height="31"/>
                                                        </ad:AlignedImage>
                                                        <ad:AlignedImage Name="PART_btnDockRight" VerticalAlignment="Center" HorizontalAlignment="Right">
                                                                <Image x:Name="IMG_DockRight" Source="/AvalonDock;component/resources/Images/Aero/AeroDockRight.PNG" Stretch="Uniform" Width="32" Height="31"/>
                                                        </ad:AlignedImage>
                                                        <ad:AlignedImage Name="PART_btnDockBottom" VerticalAlignment="Bottom" HorizontalAlignment="Center">
                                                                <Image x:Name="IMG_DockBottom" Source="/AvalonDock;component/resources/Images/Aero/AeroDockBottom.PNG" Stretch="Uniform" Width="31" Height="32"/>
                                                        </ad:AlignedImage>
                                                        <ad:AlignedImage Name="PART_btnDockTop" VerticalAlignment="Top" HorizontalAlignment="Center">
                                                                <Image x:Name="IMG_DockTop" Source="/AvalonDock;component/resources/Images/Aero/AeroDockTop.PNG" Stretch="Uniform" Width="31" Height="32"/>
                                                        </ad:AlignedImage>
                                                </Grid>
                                                <Canvas>
                                                        <Grid Name="PART_gridPaneRelativeDockingOptions" Visibility="Collapsed" Width="103" Height="101">
                                                                <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition/>
                                                                        <ColumnDefinition/>
                                                                        <ColumnDefinition/>
                                                                </Grid.ColumnDefinitions>
                                                                <Grid.RowDefinitions>
                                                                        <RowDefinition/>
                                                                        <RowDefinition/>
                                                                        <RowDefinition/>
                                                                </Grid.RowDefinitions>
                                                                <ad:AlignedImage Grid.ColumnSpan="3" Grid.RowSpan="3" >
                                                                        <Image x:Name="IMG_DockPane" Source="/AvalonDock;component/resources/Images/Aero/AeroDockPane.png" Stretch="Uniform"/>
                                                                </ad:AlignedImage>
                                                                <Border Name="PART_btnDockPaneTop" Grid.Column="1" Grid.Row="0"/>
                                                                <Border Name="PART_btnDockPaneRight" Grid.Column="2" Grid.Row="1"/>
                                                                <Border Name="PART_btnDockPaneBottom" Grid.Column="1" Grid.Row="2"/>
                                                                <Border Name="PART_btnDockPaneLeft" Grid.Column="0" Grid.Row="1"/>
                                                                <Border Name="PART_btnDockPaneInto" Grid.Column="1" Grid.Row="1"/>
                                                        </Grid>
                                                </Canvas>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderLeft">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockLeftHover.PNG" TargetName="IMG_DockLeft"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderRight">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockRightHover.PNG" TargetName="IMG_DockRight"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderTop">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockTopHover.PNG" TargetName="IMG_DockTop"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderBottom">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockBottomHover.PNG" TargetName="IMG_DockBottom"/>
                                                </DataTrigger>

                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneInto">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneInto.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>

                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneLeft">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneLeft.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneRight">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneRight.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneTop">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneTop.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneBottom">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneBottom.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>

                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="None">
                                                        <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPane.PNG" TargetName="IMG_DockPane"/>
                                                </DataTrigger>

                                        </ControlTemplate.Triggers>

                                </ControlTemplate>
                        </Setter.Value>
                </Setter>

        </Style>


</ResourceDictionary>