You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2073 lines
104 KiB
2073 lines
104 KiB
<!--***********************************************************************************
|
|
|
|
Toolkit for WPF
|
|
|
|
Copyright (C) 2007-2020 Xceed Software Inc.
|
|
|
|
This program is provided to you under the terms of the XCEED SOFTWARE, INC.
|
|
COMMUNITY LICENSE AGREEMENT (for non-commercial use) as published at
|
|
https://github.com/xceedsoftware/wpftoolkit/blob/master/license.md
|
|
|
|
For more features, controls, and fast professional support,
|
|
pick up the Plus Edition at https://xceed.com/xceed-toolkit-plus-for-wpf/
|
|
|
|
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
|
|
|
|
**********************************************************************************-->
|
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:shell="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
xmlns:avalonDockControls="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
xmlns:avalonDockConverters="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
xmlns:avalonDockProperties="http://schemas.xceed.com/wpf/xaml/avalondock">
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="Brushes.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<avalonDockConverters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
|
<avalonDockConverters:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibilityConverter" />
|
|
<avalonDockConverters:AnchorSideToOrientationConverter x:Key="AnchorSideToOrientationConverter" />
|
|
<avalonDockConverters:AnchorSideToAngleConverter x:Key="AnchorSideToAngleConverter" />
|
|
<avalonDockConverters:NullToDoNothingConverter x:Key="NullToDoNothingConverter" />
|
|
<avalonDockConverters:LayoutItemFromLayoutModelConverter x:Key="LayoutItemFromLayoutModelConverter" />
|
|
<avalonDockConverters:ActivateCommandLayoutItemFromLayoutModelConverter x:Key="ActivateCommandLayoutItemFromLayoutModelConverter" />
|
|
<avalonDockConverters:AnchorableContextMenuHideVisibilityConverter x:Key="AnchorableContextMenuHideVisibilityConverter" />
|
|
|
|
<DataTemplate x:Key="DocumentPaneControlContentTemplate">
|
|
<avalonDockControls:LayoutDocumentControl Model="{Binding}" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AnchorablePaneControlContentTemplate">
|
|
<avalonDockControls:LayoutAnchorableControl Model="{Binding}" />
|
|
</DataTemplate>
|
|
|
|
<Style x:Key="AvalonDock_ThemeMetro_ToolButtonStyle"
|
|
TargetType="ToggleButton">
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="Padding"
|
|
Value="0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<ContentPresenter />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="AvalonDock_ThemeMetro_ButtonStyle"
|
|
TargetType="Button">
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="Padding"
|
|
Value="0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<ContentPresenter />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--DocumentPaneControlStyle-->
|
|
<Style x:Key="AvalonDock_ThemeMetro_DocumentPaneControlStyle"
|
|
TargetType="{x:Type avalonDockControls:LayoutDocumentPaneControl}">
|
|
<Setter Property="BorderBrush"
|
|
Value="{x:Null}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutDocumentPaneControl}">
|
|
<Grid ClipToBounds="true"
|
|
SnapsToDevicePixels="true"
|
|
KeyboardNavigation.TabNavigation="Local">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<!--Following border is required to catch mouse events-->
|
|
<Border Background="Transparent"
|
|
Grid.RowSpan="2" />
|
|
<Grid Visibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type avalonDockControls:LayoutDocumentPaneControl}}, Path=Model.ShowHeader, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Panel.ZIndex="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<avalonDockControls:DocumentPaneTabPanel x:Name="HeaderPanel"
|
|
Grid.Column="0"
|
|
IsItemsHost="true"
|
|
Margin="2,0,2,0"
|
|
Grid.Row="0"
|
|
KeyboardNavigation.TabIndex="1"
|
|
KeyboardNavigation.DirectionalNavigation="Cycle" />
|
|
<avalonDockControls:DropDownButton x:Name="MenuDropDownButton"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ToolButtonStyle}"
|
|
Focusable="False"
|
|
VerticalAlignment="Center"
|
|
Grid.Column="1">
|
|
<avalonDockControls:DropDownButton.DropDownContextMenu>
|
|
<avalonDockControls:ContextMenuEx ItemsSource="{Binding Model.ChildrenSorted, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<avalonDockControls:ContextMenuEx.ItemContainerStyle>
|
|
<Style TargetType="{x:Type avalonDockControls:MenuItemEx}"
|
|
BasedOn="{StaticResource {x:Type MenuItem}}">
|
|
<Setter Property="HeaderTemplate"
|
|
Value="{Binding Path=Root.Manager.DocumentPaneMenuItemHeaderTemplate}" />
|
|
<Setter Property="HeaderTemplateSelector"
|
|
Value="{Binding Path=Root.Manager.DocumentPaneMenuItemHeaderTemplateSelector}" />
|
|
<Setter Property="IconTemplate"
|
|
Value="{Binding Path=Root.Manager.IconContentTemplate}" />
|
|
<Setter Property="IconTemplateSelector"
|
|
Value="{Binding Path=Root.Manager.IconContentTemplateSelector}" />
|
|
<Setter Property="Command"
|
|
Value="{Binding Path=., Converter={StaticResource ActivateCommandLayoutItemFromLayoutModelConverter}}" />
|
|
</Style>
|
|
</avalonDockControls:ContextMenuEx.ItemContainerStyle>
|
|
</avalonDockControls:ContextMenuEx>
|
|
</avalonDockControls:DropDownButton.DropDownContextMenu>
|
|
<Image Source="Images/PinDocMenu.png" >
|
|
</Image>
|
|
</avalonDockControls:DropDownButton>
|
|
</Grid>
|
|
<Border x:Name="ContentPanel"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
Grid.Column="0"
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
Grid.Row="1"
|
|
KeyboardNavigation.TabIndex="2"
|
|
KeyboardNavigation.TabNavigation="Cycle"
|
|
Padding="0,1,0,2">
|
|
<ContentPresenter x:Name="PART_SelectedContentHost"
|
|
ContentSource="SelectedContent"
|
|
Margin="0,2,0,2"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="MenuDropDownButton"
|
|
Value="True">
|
|
<Setter Property="Content"
|
|
TargetName="MenuDropDownButton">
|
|
<Setter.Value>
|
|
<Image Source="Images/PinDocMenu_Black.png" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked"
|
|
SourceName="MenuDropDownButton"
|
|
Value="True">
|
|
<Setter Property="Content"
|
|
TargetName="MenuDropDownButton">
|
|
<Setter.Value>
|
|
<Image Source="Images/PinDocMenu_Black.png" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled"
|
|
Value="false">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Model.ChildrenCount}"
|
|
Value="0">
|
|
<Setter Property="Visibility"
|
|
Value="Collapsed"
|
|
TargetName="MenuDropDownButton" />
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="ItemContainerStyle">
|
|
<Setter.Value>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="IsSelected"
|
|
Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="ToolTip"
|
|
Value="{Binding ToolTip}" />
|
|
<Setter Property="Padding"
|
|
Value="4" />
|
|
<Setter Property="Margin"
|
|
Value="2,0,2,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid SnapsToDevicePixels="true"
|
|
Margin="0,4,4,4">
|
|
<Border x:Name="Bd"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="0,3,0,0"
|
|
Background="{TemplateBinding Background}">
|
|
</Border>
|
|
<ContentPresenter x:Name="Content"
|
|
Margin="2"
|
|
ContentSource="Header"
|
|
HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Selector.IsSelected"
|
|
Value="true">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="1" />
|
|
</Trigger>
|
|
|
|
<DataTrigger Binding="{Binding IsActive}"
|
|
Value="True">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="1" />
|
|
</DataTrigger>
|
|
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver"
|
|
Value="true" />
|
|
<Condition Property="Selector.IsSelected"
|
|
Value="false" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor4}" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="0" />
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled"
|
|
Value="false">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="ItemTemplate">
|
|
<Setter.Value>
|
|
<DataTemplate>
|
|
<avalonDockControls:LayoutDocumentTabItem Model="{Binding}" />
|
|
</DataTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="ContentTemplate"
|
|
Value="{StaticResource DocumentPaneControlContentTemplate}" />
|
|
|
|
</Style>
|
|
|
|
<!--AnchorablePaneControlStyle-->
|
|
<Style x:Key="AvalonDock_ThemeMetro_AnchorablePaneControlStyle"
|
|
TargetType="{x:Type avalonDockControls:LayoutAnchorablePaneControl}">
|
|
<Setter Property="TabStripPlacement"
|
|
Value="Bottom" />
|
|
<Setter Property="Padding"
|
|
Value="0" />
|
|
<Setter Property="BorderThickness"
|
|
Value="0" />
|
|
<Setter Property="Foreground"
|
|
Value="{Binding Model.Root.Manager.Foreground, RelativeSource={RelativeSource Self}}" />
|
|
<Setter Property="Background"
|
|
Value="{Binding Model.Root.Manager.Background, RelativeSource={RelativeSource Self}}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutAnchorablePaneControl}">
|
|
<Grid ClipToBounds="true"
|
|
SnapsToDevicePixels="true"
|
|
KeyboardNavigation.TabNavigation="Local">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<!--Following border is required to catch mouse events-->
|
|
<Border Background="Transparent"
|
|
Grid.RowSpan="2" />
|
|
<Border x:Name="ContentPanel"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
Grid.Column="0"
|
|
KeyboardNavigation.DirectionalNavigation="Contained"
|
|
Grid.Row="0"
|
|
KeyboardNavigation.TabIndex="2"
|
|
KeyboardNavigation.TabNavigation="Cycle">
|
|
<ContentPresenter x:Name="PART_SelectedContentHost"
|
|
ContentSource="SelectedContent"
|
|
Margin="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<avalonDockControls:AnchorablePaneTabPanel x:Name="HeaderPanel"
|
|
Margin="0,0,2,2"
|
|
IsItemsHost="true"
|
|
Grid.Row="1"
|
|
KeyboardNavigation.TabIndex="1"
|
|
KeyboardNavigation.DirectionalNavigation="Cycle"
|
|
Panel.ZIndex="1" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled"
|
|
Value="false">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding Items.Count, RelativeSource={RelativeSource Self}}"
|
|
Value="1">
|
|
<Setter Property="Margin"
|
|
Value="0"
|
|
TargetName="HeaderPanel" />
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="ItemContainerStyle">
|
|
<Setter.Value>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="IsSelected"
|
|
Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
<Setter Property="ToolTip"
|
|
Value="{Binding ToolTip}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid SnapsToDevicePixels="true">
|
|
<Border x:Name="Bd"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
Margin="4"
|
|
BorderThickness="0,2,0,0"
|
|
Background="{TemplateBinding Background}">
|
|
<ContentPresenter x:Name="Content"
|
|
ContentSource="Header"
|
|
HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Selector.IsSelected"
|
|
Value="true">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="1" />
|
|
</Trigger>
|
|
|
|
<DataTrigger Binding="{Binding IsActive}"
|
|
Value="True">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="1" />
|
|
</DataTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver"
|
|
Value="true" />
|
|
<Condition Property="Selector.IsSelected"
|
|
Value="false" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor4}" />
|
|
<Setter Property="Panel.ZIndex"
|
|
Value="0" />
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled"
|
|
Value="false">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type TabControl}}, Path=Items.Count}"
|
|
Value="1">
|
|
<Setter Property="Visibility"
|
|
Value="Collapsed" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="ItemTemplate">
|
|
<Setter.Value>
|
|
<DataTemplate>
|
|
<avalonDockControls:LayoutAnchorableTabItem Model="{Binding}" />
|
|
</DataTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
<Setter Property="ContentTemplate"
|
|
Value="{StaticResource AnchorablePaneControlContentTemplate}" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="avalonDockControls:AnchorablePaneTitle">
|
|
<Setter Property="BorderThickness"
|
|
Value="0,3,0,0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="0,3,0,0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<avalonDockControls:DropDownControlArea DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DropDownContextMenuDataContext="{Binding Path=LayoutItem, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<ContentPresenter x:Name="Header"
|
|
Margin="2,0,0,0"
|
|
TextElement.Foreground="{DynamicResource AvalonDock_ThemeMetro_BaseColor2}"
|
|
Content="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Model.Root.Manager.AnchorableTitleTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding Model.Root.Manager.AnchorableTitleTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</avalonDockControls:DropDownControlArea>
|
|
|
|
|
|
<avalonDockControls:DropDownButton x:Name="MenuDropDownButton"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ToolButtonStyle}"
|
|
Focusable="False"
|
|
Grid.Column="1"
|
|
DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DropDownContextMenuDataContext="{Binding Path=LayoutItem, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}">
|
|
<Image x:Name="PART_ImgMenuPin"
|
|
Source="Images/PinMenu.png" >
|
|
</Image>
|
|
</avalonDockControls:DropDownButton>
|
|
|
|
<Button x:Name="PART_AutoHidePin"
|
|
Grid.Column="2"
|
|
Focusable="False"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Command="{Binding Path=LayoutItem.AutoHideCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_BtnAutoHide_Hint}">
|
|
<Image x:Name="PART_ImgAutoHidePin"
|
|
Source="Images/PinAutoHide.png" >
|
|
</Image>
|
|
</Button>
|
|
<Button x:Name="PART_HidePin"
|
|
Grid.Column="3"
|
|
Focusable="False"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Command="{Binding Path=LayoutItem.HideCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_Hide}">
|
|
<Image x:Name="PART_ImgHidePin"
|
|
Source="Images/PinClose.png" >
|
|
</Image>
|
|
</Button>
|
|
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Model.IsAutoHidden, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="True">
|
|
<Setter Property="LayoutTransform"
|
|
TargetName="PART_AutoHidePin">
|
|
<Setter.Value>
|
|
<RotateTransform Angle="90" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Model.CanClose, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="True">
|
|
<Setter Property="Command"
|
|
TargetName="PART_HidePin"
|
|
Value="{Binding Path=LayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
<Setter Property="ToolTip"
|
|
TargetName="PART_HidePin"
|
|
Value="{x:Static avalonDockProperties:Resources.Document_Close}" />
|
|
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Model.IsActive, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="True">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Model.IsActive, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgAutoHidePin"
|
|
Value="Images/PinAutoHide_Dark.png" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgHidePin"
|
|
Value="Images/PinClose_Dark.png" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgMenuPin"
|
|
Value="Images/PinMenu_Dark.png" />
|
|
</DataTrigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="MenuDropDownButton"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgMenuPin"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked"
|
|
SourceName="MenuDropDownButton"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgMenuPin"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_AutoHidePin"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgAutoHidePin"
|
|
Value="Images/PinAutoHide_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_HidePin"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgHidePin"
|
|
Value="Images/PinClose_Black.png" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="AvalonDock_ThemeMetro_AnchorSideTemplate"
|
|
TargetType="{x:Type avalonDockControls:LayoutAnchorSideControl}">
|
|
<ItemsControl ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Children}"
|
|
Background="{TemplateBinding Background}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel MinWidth="4"
|
|
MinHeight="4"
|
|
Orientation="{Binding Path=Model.Side, RelativeSource={RelativeSource AncestorType={x:Type avalonDockControls:LayoutAnchorSideControl}, Mode=FindAncestor}, Converter={StaticResource AnchorSideToOrientationConverter}}" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
</ControlTemplate>
|
|
|
|
<ControlTemplate x:Key="AvalonDock_ThemeMetro_AnchorGroupTemplate"
|
|
TargetType="{x:Type avalonDockControls:LayoutAnchorGroupControl}">
|
|
<ItemsControl ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Children}">
|
|
<ItemsControl.LayoutTransform>
|
|
<RotateTransform Angle="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Model.Parent.Side, Converter={StaticResource AnchorSideToAngleConverter}}" />
|
|
</ItemsControl.LayoutTransform>
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
</ControlTemplate>
|
|
|
|
<ControlTemplate x:Key="AvalonDock_ThemeMetro_AnchorTemplate"
|
|
TargetType="{x:Type avalonDockControls:LayoutAnchorControl}">
|
|
<Border x:Name="Bd"
|
|
BorderThickness="0,2,0,0"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
Margin="4"
|
|
Padding="2">
|
|
<ContentPresenter TextElement.Foreground="{DynamicResource AvalonDock_ThemeMetro_BaseColor2}"
|
|
Content="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Model.Root.Manager.AnchorableHeaderTemplate, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding Model.Root.Manager.AnchorableHeaderTemplateSelector, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Side"
|
|
Value="Right">
|
|
<Setter Property="BorderThickness"
|
|
Value="0,0,0,2"
|
|
TargetName="Bd" />
|
|
</Trigger>
|
|
<Trigger Property="Side"
|
|
Value="Bottom">
|
|
<Setter Property="BorderThickness"
|
|
Value="0,2,0,0"
|
|
TargetName="Bd" />
|
|
</Trigger>
|
|
<Trigger Property="Side"
|
|
Value="Top">
|
|
<Setter Property="BorderThickness"
|
|
Value="0,0,0,2"
|
|
TargetName="Bd" />
|
|
</Trigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver"
|
|
Value="true" />
|
|
<Condition Property="Selector.IsSelected"
|
|
Value="false" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor4}" />
|
|
</MultiTrigger>
|
|
<DataTrigger Binding="{Binding Model.IsActive, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="true">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
<Style x:Key="{x:Type avalonDockControls:OverlayWindow}"
|
|
TargetType="{x:Type avalonDockControls:OverlayWindow}">
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:OverlayWindow}">
|
|
<Canvas x:Name="PART_DropTargetsContainer"
|
|
Opacity="0.9">
|
|
<Path x:Name="PART_PreviewBox"
|
|
Fill="AliceBlue"
|
|
StrokeThickness="2"
|
|
Stroke="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
|
|
<Grid x:Name="PART_DockingManagerDropTargets">
|
|
<Image x:Name="PART_DockingManagerDropTargetLeft"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Source="Images/DockAnchorableLeft.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
<Image x:Name="PART_DockingManagerDropTargetRight"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Right"
|
|
Source="Images/DockAnchorableRight.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
<Image x:Name="PART_DockingManagerDropTargetBottom"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="Center"
|
|
Source="Images/DockAnchorableBottom.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
<Image x:Name="PART_DockingManagerDropTargetTop"
|
|
VerticalAlignment="Top"
|
|
HorizontalAlignment="Center"
|
|
Source="Images/DockAnchorableTop.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Grid>
|
|
<Grid x:Name="PART_AnchorablePaneDropTargets">
|
|
<Grid Width="112"
|
|
Height="112"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.ColumnSpan="3"
|
|
Grid.RowSpan="3"
|
|
Source="Images/DockPaneEmpty.png"
|
|
Stretch="None"
|
|
Margin="0,0.5,0,-0.5" >
|
|
</Image>
|
|
<Border Name="PART_AnchorablePaneDropTargetTop"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Margin="0,3.5,0, 0">
|
|
<Image Source="Images/DockDocumentAsAnchorableTop.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_AnchorablePaneDropTargetRight"
|
|
Grid.Column="2"
|
|
Grid.Row="1"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentAsAnchorableRight.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_AnchorablePaneDropTargetBottom"
|
|
Grid.Column="1"
|
|
Grid.Row="2"
|
|
Margin="0,-0.5,0,0">
|
|
<Image Source="Images/DockDocumentAsAnchorableBottom.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_AnchorablePaneDropTargetLeft"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentAsAnchorableLeft.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_AnchorablePaneDropTargetInto"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Margin="0,0.5,0,0">
|
|
<Image Source="Images/DockDocumentInside.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid x:Name="PART_DocumentPaneDropTargets">
|
|
<Grid Width="112"
|
|
Height="112"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.ColumnSpan="3"
|
|
Grid.RowSpan="3"
|
|
Source="Images/DockPaneEmpty.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
<Border Name="PART_DocumentPaneDropTargetTop"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentTop.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetRight"
|
|
Grid.Column="2"
|
|
Grid.Row="1"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentRight.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetBottom"
|
|
Grid.Column="1"
|
|
Grid.Row="2"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentBottom.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetLeft"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Margin="2">
|
|
<Image Source="Images/DockDocumentLeft.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetInto"
|
|
Grid.Column="1"
|
|
Grid.Row="1">
|
|
<Image Source="Images/DockDocumentInside.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Grid x:Name="PART_DocumentPaneFullDropTargets">
|
|
<Grid Width="184"
|
|
Height="184"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.ColumnSpan="5"
|
|
Grid.RowSpan="5"
|
|
Source="Images/DockPaneLargeEmpty.PNG"
|
|
Stretch="None" >
|
|
</Image>
|
|
<Border Name="PART_DocumentPaneFullDropTargetTop"
|
|
Grid.Column="2"
|
|
Grid.Row="1">
|
|
<Image Source="Images/DockDocumentTop.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneFullDropTargetRight"
|
|
Grid.Column="3"
|
|
Grid.Row="2">
|
|
<Image Source="Images/DockDocumentRight.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneFullDropTargetBottom"
|
|
Grid.Column="2"
|
|
Grid.Row="3">
|
|
<Image Source="Images/DockDocumentBottom.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneFullDropTargetLeft"
|
|
Grid.Column="1"
|
|
Grid.Row="2">
|
|
<Image Source="Images/DockDocumentLeft.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneFullDropTargetInto"
|
|
Grid.Column="2"
|
|
Grid.Row="2">
|
|
<Image Source="Images/DockDocumentInside.png"
|
|
Stretch="None" >
|
|
</Image>
|
|
</Border>
|
|
|
|
<Border Name="PART_DocumentPaneDropTargetTopAsAnchorablePane"
|
|
Grid.Column="2"
|
|
Grid.Row="0">
|
|
<Image Source="Images/DockDocumentAsAnchorableTop.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetRightAsAnchorablePane"
|
|
Grid.Column="4"
|
|
Grid.Row="2">
|
|
<Image Source="Images/DockDocumentAsAnchorableRight.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetBottomAsAnchorablePane"
|
|
Grid.Column="2"
|
|
Grid.Row="4">
|
|
<Image Source="Images/DockDocumentAsAnchorableBottom.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
<Border Name="PART_DocumentPaneDropTargetLeftAsAnchorablePane"
|
|
Grid.Column="0"
|
|
Grid.Row="2">
|
|
<Image Source="Images/DockDocumentAsAnchorableLeft.png"
|
|
Stretch="None"
|
|
Margin="2" >
|
|
</Image>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
</Canvas>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<DataTemplate x:Key="AvalonDock_ThemeMetro_DocumentHeaderTemplate">
|
|
<TextBlock Text="{Binding Title}"
|
|
TextTrimming="CharacterEllipsis" >
|
|
</TextBlock>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AvalonDock_ThemeMetro_AnchorableHeaderTemplate">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Image x:Name="icon"
|
|
Source="{Binding IconSource, Converter={StaticResource NullToDoNothingConverter}}"
|
|
Stretch="Uniform" >
|
|
</Image>
|
|
<TextBlock x:Name="title"
|
|
Margin="4,0,0,0"
|
|
Text="{Binding Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
Grid.Column="1" >
|
|
</TextBlock>
|
|
</Grid>
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding IconSource}"
|
|
Value="{x:Null}">
|
|
<Setter Property="Margin"
|
|
Value="0"
|
|
TargetName="title" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AvalonDock_ThemeMetro_DocumentTitleTemplate">
|
|
<TextBlock Text="{Binding Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
VerticalAlignment="Center" >
|
|
</TextBlock>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AvalonDock_ThemeMetro_AnchorableTitleTemplate">
|
|
<TextBlock Text="{Binding Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
VerticalAlignment="Center" >
|
|
</TextBlock>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AvalonDock_ThemeMetro_IconContentTemplate">
|
|
<Image Source="{Binding IconSource, Converter={StaticResource NullToDoNothingConverter}}"
|
|
Stretch="Uniform" >
|
|
</Image>
|
|
</DataTemplate>
|
|
|
|
<ContextMenu x:Key="AvalonDock_ThemeMetro_AnchorableContextMenu">
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Anchorable_Float}"
|
|
Command="{Binding Path=FloatCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Anchorable_Dock}"
|
|
Command="{Binding Path=DockCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Anchorable_DockAsDocument}"
|
|
Command="{Binding Path=DockAsDocumentCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Anchorable_AutoHide}"
|
|
Command="{Binding Path=AutoHideCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_Close}"
|
|
Command="{Binding Path=CloseCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Anchorable_Hide}"
|
|
Command="{Binding Path=HideCommand}">
|
|
<MenuItem.Visibility>
|
|
<MultiBinding Converter="{StaticResource AnchorableContextMenuHideVisibilityConverter}">
|
|
<Binding Path="IsEnabled"
|
|
RelativeSource="{RelativeSource Self}"
|
|
Mode="OneWay"
|
|
Converter="{StaticResource BoolToVisibilityConverter}" />
|
|
<Binding Path="CanClose" />
|
|
</MultiBinding>
|
|
</MenuItem.Visibility>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
|
|
<ContextMenu x:Key="AvalonDock_ThemeMetro_DocumentContextMenu">
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_Close}"
|
|
Command="{Binding Path=CloseCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_CloseAllButThis}"
|
|
Command="{Binding Path=CloseAllButThisCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_CloseAll}"
|
|
Command="{Binding Path=CloseAllCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_Float}"
|
|
Command="{Binding Path=FloatCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_DockAsDocument}"
|
|
Command="{Binding Path=DockAsDocumentCommand}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_NewHorizontalTabGroup}"
|
|
Command="{Binding Path=NewHorizontalTabGroupCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<MenuItem.Icon>
|
|
<Image Source="Images/HTabGroup.png"
|
|
Stretch="Uniform"
|
|
Width="14" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_NewVerticalTabGroup}"
|
|
Command="{Binding Path=NewVerticalTabGroupCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<MenuItem.Icon>
|
|
<Image Source="Images/VTabGroup.png"
|
|
Stretch="Uniform"
|
|
Width="14" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_MoveToNextTabGroup}"
|
|
Command="{Binding Path=MoveToNextTabGroupCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
<MenuItem Header="{x:Static avalonDockProperties:Resources.Document_MoveToPreviousTabGroup}"
|
|
Command="{Binding Path=MoveToPreviousTabGroupCommand}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
</ContextMenu>
|
|
|
|
<!--DockingManager-->
|
|
<Style x:Key="{x:Type avalonDock:DockingManager}"
|
|
TargetType="{x:Type avalonDock:DockingManager}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}" />
|
|
<Setter Property="DocumentPaneControlStyle"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_DocumentPaneControlStyle}" />
|
|
<Setter Property="AnchorablePaneControlStyle"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorablePaneControlStyle}" />
|
|
<Setter Property="AnchorSideTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorSideTemplate}" />
|
|
<Setter Property="AnchorGroupTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorGroupTemplate}" />
|
|
<Setter Property="AnchorTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorTemplate}" />
|
|
<Setter Property="DocumentHeaderTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_DocumentHeaderTemplate}" />
|
|
<Setter Property="AnchorableHeaderTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorableHeaderTemplate}" />
|
|
<Setter Property="DocumentTitleTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_DocumentTitleTemplate}" />
|
|
<Setter Property="AnchorableTitleTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorableTitleTemplate}" />
|
|
<Setter Property="AnchorableContextMenu"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_AnchorableContextMenu}" />
|
|
<Setter Property="DocumentContextMenu"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_DocumentContextMenu}" />
|
|
<Setter Property="DocumentPaneMenuItemHeaderTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_DocumentHeaderTemplate}" />
|
|
<Setter Property="IconContentTemplate"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_IconContentTemplate}" />
|
|
<Setter Property="GridSplitterWidth"
|
|
Value="5" />
|
|
<Setter Property="GridSplitterHeight"
|
|
Value="5" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDock:DockingManager}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Content="{TemplateBinding LayoutRootPanel}"
|
|
Grid.Column="1"
|
|
Grid.Row="1" />
|
|
<ContentPresenter Content="{TemplateBinding RightSidePanel}"
|
|
Grid.Column="2"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="3" />
|
|
<ContentPresenter Content="{TemplateBinding LeftSidePanel}"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="3"/>
|
|
<ContentPresenter Content="{TemplateBinding TopSidePanel}"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Grid.Row="0" />
|
|
<ContentPresenter Content="{TemplateBinding BottomSidePanel}"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Grid.Row="2" />
|
|
<ContentPresenter x:Name="PART_AutoHideArea"
|
|
Content="{TemplateBinding AutoHideWindow}"
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
Grid.Column="1"
|
|
Grid.Row="1" />
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--LayoutGridResizerControl-->
|
|
<Style x:Key="{x:Type avalonDockControls:LayoutGridResizerControl}"
|
|
TargetType="{x:Type avalonDockControls:LayoutGridResizerControl}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor7}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutGridResizerControl}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
Margin="2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type avalonDockControls:LayoutDocumentControl}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutDocumentControl}">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<ContentPresenter Content="{Binding LayoutItem.View.Content, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding LayoutItem.View.ContentTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding LayoutItem.View.ContentTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type avalonDockControls:LayoutDocumentTabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutDocumentTabItem}">
|
|
<!--Use a transparent background to hit for contextMenu popup-->
|
|
<avalonDockControls:DropDownControlArea DropDownContextMenu="{Binding Root.Manager.DocumentContextMenu}"
|
|
DropDownContextMenuDataContext="{Binding LayoutItem, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Background="Transparent">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="0,2,0,1"
|
|
Margin="{Binding Padding, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.ColumnSpan="3"
|
|
Background="Transparent" />
|
|
<ContentPresenter Content="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Root.Manager.DocumentHeaderTemplate, Mode=OneWay}"
|
|
ContentTemplateSelector="{Binding Root.Manager.DocumentHeaderTemplateSelector, Mode=OneWay}" />
|
|
<!-- Close button should be moved out to the container style -->
|
|
<Button x:Name="DocumentCloseButton"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Grid.Column="2"
|
|
Visibility="Hidden"
|
|
Command="{Binding Path=LayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Document_Close}">
|
|
<Image x:Name="PART_ImgPinClose"
|
|
Source="Images/PinClose.png" >
|
|
</Image>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
</avalonDockControls:DropDownControlArea>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding Path=IsSelected}"
|
|
Value="True" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Visibility"
|
|
Value="Visible"
|
|
TargetName="DocumentCloseButton" />
|
|
</MultiDataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Value="True" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Visibility"
|
|
Value="Visible"
|
|
TargetName="DocumentCloseButton" />
|
|
</MultiDataTrigger>
|
|
<DataTrigger Binding="{Binding Path=IsLastFocusedDocument}"
|
|
Value="true">
|
|
<Setter Property="Visibility"
|
|
Value="Visible"
|
|
TargetName="DocumentCloseButton" />
|
|
<Setter Property="Source"
|
|
Value="Images/PinClose_Dark.png"
|
|
TargetName="PART_ImgPinClose" />
|
|
</DataTrigger>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding Path=IsActive}"
|
|
Value="True" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Visibility"
|
|
Value="Visible"
|
|
TargetName="DocumentCloseButton" />
|
|
<Setter Property="Source"
|
|
Value="Images/PinClose_Dark.png"
|
|
TargetName="PART_ImgPinClose" />
|
|
</MultiDataTrigger>
|
|
<DataTrigger Binding="{Binding Path=CanClose}"
|
|
Value="false">
|
|
<Setter Property="Visibility"
|
|
Value="Collapsed"
|
|
TargetName="DocumentCloseButton" />
|
|
</DataTrigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="DocumentCloseButton"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinClose"
|
|
Value="Images/PinClose_Black.png" />
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type avalonDockControls:LayoutAnchorableTabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutAnchorableTabItem}">
|
|
<!--Use a transparent background to hit for contextMenu popup-->
|
|
<avalonDockControls:DropDownControlArea DropDownContextMenu="{Binding Root.Manager.AnchorableContextMenu}"
|
|
DropDownContextMenuDataContext="{Binding LayoutItem, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Background="Transparent">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Margin="{Binding Padding, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
|
|
<Grid>
|
|
<ContentPresenter Content="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Root.Manager.AnchorableHeaderTemplate, Mode=OneWay}"
|
|
ContentTemplateSelector="{Binding Root.Manager.AnchorableHeaderTemplateSelector, Mode=OneWay}" />
|
|
</Grid>
|
|
</Border>
|
|
</avalonDockControls:DropDownControlArea>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type avalonDockControls:LayoutAnchorableControl}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutAnchorableControl}">
|
|
<Border x:Name="Bd"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border x:Name="Header">
|
|
<avalonDockControls:AnchorablePaneTitle Model="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</Border>
|
|
<ContentPresenter Grid.Row="1"
|
|
FlowDirection="{TemplateBinding FlowDirection}"
|
|
Content="{Binding LayoutItem.View.Content, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding LayoutItem.View.ContentTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding LayoutItem.View.ContentTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
|
<!--<ContentPresenter
|
|
Content="{Binding Model.Content, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding LayoutItemTemplate, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type avalonDock:DockingManager}, Mode=FindAncestor}}"
|
|
ContentTemplateSelector="{Binding LayoutItemTemplateSelector, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type avalonDock:DockingManager}, Mode=FindAncestor}}"
|
|
Grid.Row="1"/>-->
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Model.IsFloating}"
|
|
Value="True" />
|
|
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Model.Parent.IsDirectlyHostedInFloatingWindow}"
|
|
Value="True" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="Visibility"
|
|
Value="Collapsed"
|
|
TargetName="Header" />
|
|
</MultiDataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type avalonDockControls:LayoutDocumentFloatingWindowControl}"
|
|
TargetType="{x:Type avalonDockControls:LayoutDocumentFloatingWindowControl}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor6}" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="shell:WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<shell:WindowChrome CornerRadius="0"
|
|
ResizeBorderThickness="10"
|
|
CaptionHeight="24"
|
|
GlassFrameThickness="0"
|
|
ShowSystemMenu="False" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutDocumentFloatingWindowControl}">
|
|
<AdornerDecorator>
|
|
<Grid>
|
|
<Border x:Name="WindowBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MinHeight="24"
|
|
Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border x:Name="bd"
|
|
Width="5"
|
|
VerticalAlignment="Stretch"
|
|
Background="{DynamicResource AvalonDock_ThemeMetro_BaseColor5}" />
|
|
|
|
<Border x:Name="Header"
|
|
Padding="2,0,2,0"
|
|
Grid.Column="1">
|
|
<Grid UseLayoutRounding="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Content="{Binding Model.RootDocument, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Model.Root.Manager.DocumentTitleTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding Model.Root.Manager.DocumentTitleTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
|
|
|
<avalonDockControls:DropDownButton x:Name="ContextMenuDropdownButton"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ToolButtonStyle}"
|
|
Focusable="False"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
DropDownContextMenu="{Binding Model.Root.Manager.DocumentContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DropDownContextMenuDataContext="{Binding Path=RootDocumentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Document_CxMenu_Hint}">
|
|
<Image x:Name="PART_ImgPinMenu"
|
|
Stretch="None"
|
|
Source="Images/PinMenu.png"
|
|
Width="13">
|
|
</Image>
|
|
</avalonDockControls:DropDownButton>
|
|
|
|
<Button x:Name="PART_PinMaximize"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InverseBoolToVisibilityConverter}}"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
Command="{x:Static shell:SystemCommands.MaximizeWindowCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Maximize}"
|
|
Grid.Column="2">
|
|
<Image x:Name="PART_ImgPinMaximize"
|
|
Source="Images/PinMaximize.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
|
|
<Button x:Name="PART_PinRestore"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
Command="{x:Static shell:SystemCommands.RestoreWindowCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Restore}"
|
|
Grid.Column="2">
|
|
<Image x:Name="PART_ImgPinRestore"
|
|
Source="Images/PinRestore.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
|
|
<Button x:Name="PART_PinClose"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Command="{Binding Path=RootDocumentLayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Document_Close}"
|
|
Grid.Column="3">
|
|
<Image x:Name="PART_ImgPinClose"
|
|
Source="Images/PinClose.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</AdornerDecorator>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="WindowState"
|
|
Value="Maximized">
|
|
<Setter Property="Padding"
|
|
Value="3"
|
|
TargetName="WindowBorder" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Model.RootDocument.IsActive}"
|
|
Value="True">
|
|
<Setter TargetName="bd"
|
|
Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
<Setter TargetName="Header"
|
|
Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" />
|
|
<Setter TargetName="Header"
|
|
Property="TextElement.Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}" />
|
|
</DataTrigger>
|
|
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="ContextMenuDropdownButton"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMenu"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked"
|
|
SourceName="ContextMenuDropdownButton"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMenu"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinMaximize"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMaximize"
|
|
Value="Images/PinMaximize_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinRestore"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinRestore"
|
|
Value="Images/PinRestore_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinClose"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinClose"
|
|
Value="Images/PinClose_Black.png" />
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type avalonDockControls:LayoutAnchorableFloatingWindowControl}"
|
|
TargetType="{x:Type avalonDockControls:LayoutAnchorableFloatingWindowControl}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor6}" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="shell:WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<shell:WindowChrome CornerRadius="0"
|
|
ResizeBorderThickness="10"
|
|
CaptionHeight="24"
|
|
GlassFrameThickness="0" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:LayoutAnchorableFloatingWindowControl}">
|
|
<AdornerDecorator>
|
|
<Grid>
|
|
<Border x:Name="WindowBorder"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MinHeight="24"
|
|
Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border x:Name="Header"
|
|
Padding="2,0,2,0"
|
|
TextElement.Foreground="{DynamicResource AvalonDock_ThemeMetro_BaseColor2}"
|
|
Background="{TemplateBinding Background}">
|
|
<Grid UseLayoutRounding="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Visibility="{Binding Path=Model.IsSinglePane, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<avalonDockControls:DropDownControlArea DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DropDownContextMenuDataContext="{Binding Path=SingleContentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<ContentPresenter Content="{Binding Model.SinglePane.SelectedContent, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplate="{Binding Model.Root.Manager.AnchorableTitleTemplate, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ContentTemplateSelector="{Binding Model.Root.Manager.AnchorableTitleTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</avalonDockControls:DropDownControlArea>
|
|
</Border>
|
|
|
|
<avalonDockControls:DropDownButton x:Name="SinglePaneContextMenu"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Visibility="{Binding Path=Model.IsSinglePane, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ToolButtonStyle}"
|
|
Focusable="False"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}"
|
|
DropDownContextMenuDataContext="{Binding Path=SingleContentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}">
|
|
<Image x:Name="PART_ImgPinMenu"
|
|
Stretch="None"
|
|
Source="Images/PinMenu.png"
|
|
Width="13">
|
|
</Image>
|
|
</avalonDockControls:DropDownButton>
|
|
|
|
<Button x:Name="PART_PinMaximize"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InverseBoolToVisibilityConverter}}"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
Command="{x:Static shell:SystemCommands.MaximizeWindowCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Maximize}"
|
|
Grid.Column="2">
|
|
<Image x:Name="PART_ImgPinMaximize"
|
|
Source="Images/PinMaximize.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
|
|
<Button x:Name="PART_PinRestore"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static shell:SystemCommands.RestoreWindowCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Restore}"
|
|
Grid.Column="2">
|
|
<Image x:Name="PART_ImgPinRestore"
|
|
Source="Images/PinRestore.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
|
|
<Button x:Name="PART_PinClose"
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True"
|
|
Focusable="False"
|
|
Style="{StaticResource AvalonDock_ThemeMetro_ButtonStyle}"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Command="{Binding HideWindowCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_BtnClose_Hint}"
|
|
Grid.Column="3">
|
|
<Image x:Name="PART_ImgPinClose"
|
|
Source="Images/PinClose.png"
|
|
Width="13">
|
|
</Image>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
Grid.Row="1" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</AdornerDecorator>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="WindowState"
|
|
Value="Maximized">
|
|
<Setter Property="Padding"
|
|
Value="3"
|
|
TargetName="WindowBorder" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Model.SinglePane.SelectedContent.IsActive}"
|
|
Value="True">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}"
|
|
TargetName="Header" />
|
|
<Setter Property="TextElement.Foreground"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}"
|
|
TargetName="Header" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinClose"
|
|
Value="Images/PinClose_Dark.png" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinRestore"
|
|
Value="Images/PinRestore_Dark.png" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMaximize"
|
|
Value="Images/PinMaximize_Dark.png" />
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMenu"
|
|
Value="Images/PinMenu_Dark.png" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Model.SinglePane.SelectedContent.CanClose, RelativeSource={RelativeSource Mode=Self}}"
|
|
Value="True">
|
|
<Setter Property="Command"
|
|
TargetName="PART_PinClose"
|
|
Value="{Binding CloseWindowCommand, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
<Setter Property="ToolTip"
|
|
TargetName="PART_PinClose"
|
|
Value="{x:Static avalonDockProperties:Resources.Document_Close}" />
|
|
|
|
</DataTrigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="SinglePaneContextMenu"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMenu"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked"
|
|
SourceName="SinglePaneContextMenu"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMenu"
|
|
Value="Images/PinMenu_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinMaximize"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinMaximize"
|
|
Value="Images/PinMaximize_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinRestore"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinRestore"
|
|
Value="Images/PinRestore_Black.png" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver"
|
|
SourceName="PART_PinClose"
|
|
Value="True">
|
|
<Setter Property="Source"
|
|
TargetName="PART_ImgPinClose"
|
|
Value="Images/PinClose_Black.png" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type avalonDockControls:LayoutAutoHideWindowControl}"
|
|
TargetType="{x:Type avalonDockControls:LayoutAutoHideWindowControl}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor1}" />
|
|
</Style>
|
|
|
|
|
|
<Style x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle RadiusY="2"
|
|
RadiusX="2"
|
|
Stroke="#8E6EA6F5"
|
|
StrokeThickness="1" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<LinearGradientBrush x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemHoverFill"
|
|
EndPoint="0,1"
|
|
StartPoint="0,0">
|
|
<GradientStop Color="#FFF1FBFF"
|
|
Offset="0" />
|
|
<GradientStop Color="#FFD5F1FE"
|
|
Offset="1" />
|
|
</LinearGradientBrush>
|
|
<LinearGradientBrush x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedFill"
|
|
EndPoint="0,1"
|
|
StartPoint="0,0">
|
|
<GradientStop Color="#FFD9F4FF"
|
|
Offset="0" />
|
|
<GradientStop Color="#FF9BDDFB"
|
|
Offset="1" />
|
|
</LinearGradientBrush>
|
|
<LinearGradientBrush x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedInactiveFill"
|
|
EndPoint="0,1"
|
|
StartPoint="0,0">
|
|
<GradientStop Color="#FFEEEDED"
|
|
Offset="0" />
|
|
<GradientStop Color="#FFDDDDDD"
|
|
Offset="1" />
|
|
</LinearGradientBrush>
|
|
<LinearGradientBrush x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedHoverFill"
|
|
EndPoint="0,1"
|
|
StartPoint="0,0">
|
|
<GradientStop Color="#FFEAF9FF"
|
|
Offset="0" />
|
|
<GradientStop Color="#FFC9EDFD"
|
|
Offset="1" />
|
|
</LinearGradientBrush>
|
|
|
|
<Style x:Key="AvalonDock_ThemeMetro_NavigatorWindowListBoxItemStyle"
|
|
TargetType="ListBoxItem">
|
|
<Setter Property="FocusVisualStyle"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemFocusVisual}" />
|
|
<Setter Property="Background"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderBrush"
|
|
Value="Transparent" />
|
|
<Setter Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="Padding"
|
|
Value="5,0,5,0" />
|
|
<Setter Property="VerticalContentAlignment"
|
|
Value="Center" />
|
|
<Setter Property="Cursor"
|
|
Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}"
|
|
SnapsToDevicePixels="true">
|
|
<Border x:Name="InnerBorder"
|
|
BorderThickness="1">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MaxHeight="11" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle x:Name="UpperHighlight"
|
|
Fill="#75FFFFFF"
|
|
Visibility="Collapsed" />
|
|
<ContentPresenter Grid.RowSpan="2"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
Value="true">
|
|
<Setter Property="Background"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedFill}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="#FF98DDFB" />
|
|
<Setter Property="BorderBrush"
|
|
TargetName="InnerBorder"
|
|
Value="#80FFFFFF" />
|
|
<Setter Property="Visibility"
|
|
TargetName="UpperHighlight"
|
|
Value="Visible" />
|
|
<Setter Property="Fill"
|
|
TargetName="UpperHighlight"
|
|
Value="#40FFFFFF" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected"
|
|
Value="true">
|
|
<Setter Property="Background"
|
|
Value="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedFill}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="#FF98DDFB" />
|
|
<Setter Property="BorderBrush"
|
|
TargetName="InnerBorder"
|
|
Value="#80FFFFFF" />
|
|
<Setter Property="Visibility"
|
|
TargetName="UpperHighlight"
|
|
Value="Visible" />
|
|
<Setter Property="Fill"
|
|
TargetName="UpperHighlight"
|
|
Value="#40FFFFFF" />
|
|
</Trigger>
|
|
<!--<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
<Condition Property="IsMouseOver" Value="true"/>
|
|
</MultiTrigger.Conditions>
|
|
<Setter Property="Background" Value="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemSelectedHoverFill}"/>
|
|
<Setter Property="BorderBrush" Value="#FF98DDFB"/>
|
|
</MultiTrigger>-->
|
|
<Trigger Property="IsEnabled"
|
|
Value="false">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="{x:Type avalonDockControls:NavigatorWindow}"
|
|
TargetType="{x:Type avalonDockControls:NavigatorWindow}">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
|
|
<Setter Property="SizeToContent"
|
|
Value="WidthAndHeight" />
|
|
<Setter Property="ResizeMode"
|
|
Value="NoResize" />
|
|
<!--<Setter Property="shell:WindowChrome.WindowChrome">
|
|
<Setter.Value>
|
|
<shell:WindowChrome
|
|
ResizeBorderThickness="10"
|
|
CaptionHeight="16"
|
|
GlassFrameThickness="4"/>
|
|
</Setter.Value>
|
|
</Setter>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type avalonDockControls:NavigatorWindow}">
|
|
<Grid>
|
|
<Border x:Name="WindowBorder"
|
|
BorderThickness="1"
|
|
Background="White"
|
|
BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="54" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding SelectedDocument.LayoutElement.IconSource, Converter={StaticResource NullToDoNothingConverter}}"
|
|
Stretch="None"
|
|
Visibility="{Binding SelectedDocument.LayoutElement.IconSource, Converter={StaticResource BoolToVisibilityConverter} }" >
|
|
</Image>
|
|
<TextBlock x:Name="selectedElementTitle"
|
|
Text="{Binding SelectedDocument.LayoutElement.Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
FontWeight="Bold"
|
|
Margin="4,0,0,0" >
|
|
</TextBlock>
|
|
</Grid>
|
|
<TextBlock x:Name="selectedElementDescription"
|
|
Text="{Binding SelectedDocument.LayoutElement.Description}"
|
|
TextTrimming="CharacterEllipsis"
|
|
VerticalAlignment="Center" >
|
|
</TextBlock>
|
|
</Grid>
|
|
|
|
<Border Grid.Row="1"
|
|
BorderThickness="0,1,0,0"
|
|
Background="{DynamicResource AvalonDock_ThemeMetro_BaseColor7}"
|
|
MinHeight="200">
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="Active Tool Windows"
|
|
FontWeight="Bold"
|
|
Margin="0,3,0,4" >
|
|
</TextBlock>
|
|
<ListBox x:Name="PART_AnchorableListBox"
|
|
Grid.Row="1"
|
|
ItemsSource="{Binding Anchorables}"
|
|
SelectedItem="{Binding SelectedAnchorable, Mode=TwoWay}"
|
|
ItemContainerStyle="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemStyle}"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
MaxHeight="400">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="16" />
|
|
<ColumnDefinition Width="150" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding LayoutElement.IconSource, Converter={StaticResource NullToDoNothingConverter}}"
|
|
Stretch="None" >
|
|
</Image>
|
|
<TextBlock Text="{Binding LayoutElement.Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
Grid.Column="1"
|
|
Margin="4,0,0,0" >
|
|
</TextBlock>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
<Grid Grid.Column="1"
|
|
Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="Active Files"
|
|
FontWeight="Bold"
|
|
Margin="0,3,0,4" >
|
|
</TextBlock>
|
|
<ListBox x:Name="PART_DocumentListBox"
|
|
Grid.Row="1"
|
|
ItemsSource="{Binding Documents}"
|
|
SelectedItem="{Binding SelectedDocument, Mode=TwoWay}"
|
|
ItemContainerStyle="{StaticResource AvalonDock_ThemeMetro_NavigatorWindowListBoxItemStyle}"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
MaxHeight="400">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="16" />
|
|
<ColumnDefinition Width="150" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding LayoutElement.IconSource, Converter={StaticResource NullToDoNothingConverter}}"
|
|
Stretch="None" >
|
|
</Image>
|
|
<TextBlock Text="{Binding LayoutElement.Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
Grid.Column="1"
|
|
Margin="4,0,0,0" >
|
|
</TextBlock>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel Orientation="Vertical" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
</ListBox>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Grid Grid.Row="2"
|
|
Margin="5">
|
|
<TextBlock Text="{Binding SelectedDocument.LayoutElement.ToolTip}"
|
|
VerticalAlignment="Center">
|
|
</TextBlock>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="SelectedDocument"
|
|
Value="{x:Null}">
|
|
<Setter Property="Text"
|
|
Value="{Binding SelectedAnchorable.LayoutElement.Title}"
|
|
TargetName="selectedElementTitle" />
|
|
<Setter Property="Text"
|
|
Value="{x:Null}"
|
|
TargetName="selectedElementDescription" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
</ResourceDictionary>
|
|
|