|
|
|
@ -42,6 +42,97 @@ |
|
|
|
<avalonDockControls:LayoutAnchorableControl Model="{Binding}" /> |
|
|
|
</DataTemplate> |
|
|
|
|
|
|
|
<Style x:Key="AeroToolBarButtonStyle" |
|
|
|
TargetType="Button"> |
|
|
|
<Setter Property="FocusVisualStyle" |
|
|
|
Value="{x:Null}" /> |
|
|
|
<Setter Property="Background" |
|
|
|
Value="Transparent" /> |
|
|
|
<Setter Property="BorderBrush" |
|
|
|
Value="Transparent" /> |
|
|
|
<Setter Property="BorderThickness" |
|
|
|
Value="1" /> |
|
|
|
<Setter Property="Padding" |
|
|
|
Value="2" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="Button"> |
|
|
|
<Border x:Name="Bd" |
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"> |
|
|
|
<ContentPresenter HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
</Border> |
|
|
|
<ControlTemplate.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" |
|
|
|
Value="True"> |
|
|
|
<Setter TargetName="Bd" |
|
|
|
Property="Background" |
|
|
|
Value="{DynamicResource ToolBarButtonHoverBackground}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsPressed" |
|
|
|
Value="True"> |
|
|
|
<Setter TargetName="Bd" |
|
|
|
Property="Background" |
|
|
|
Value="{DynamicResource ToolBarButtonPressedBackground}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsEnabled" |
|
|
|
Value="False"> |
|
|
|
<Setter Property="Opacity" |
|
|
|
Value="0.5" /> |
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style x:Key="AeroToolBarDropDownButtonStyle" |
|
|
|
TargetType="ToggleButton"> |
|
|
|
<Setter Property="FocusVisualStyle" |
|
|
|
Value="{x:Null}" /> |
|
|
|
<Setter Property="Background" |
|
|
|
Value="Transparent" /> |
|
|
|
<Setter Property="BorderBrush" |
|
|
|
Value="Transparent" /> |
|
|
|
<Setter Property="BorderThickness" |
|
|
|
Value="1" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="ToggleButton"> |
|
|
|
<Border x:Name="Bd" |
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"> |
|
|
|
<ContentPresenter HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
</Border> |
|
|
|
<ControlTemplate.Triggers> |
|
|
|
<Trigger Property="IsChecked" |
|
|
|
Value="True"> |
|
|
|
<Setter TargetName="Bd" |
|
|
|
Property="Background" |
|
|
|
Value="{DynamicResource ToolBarButtonCheckedBackground}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" |
|
|
|
Value="True"> |
|
|
|
<Setter TargetName="Bd" |
|
|
|
Property="Background" |
|
|
|
Value="{DynamicResource ToolBarButtonHoverBackground}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsPressed" |
|
|
|
Value="True"> |
|
|
|
<Setter TargetName="Bd" |
|
|
|
Property="Background" |
|
|
|
Value="{DynamicResource ToolBarButtonPressedBackground}" /> |
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<!--DocumentPaneControlStyle--> |
|
|
|
<Style x:Key="DocumentPaneControlStyle" |
|
|
|
TargetType="{x:Type avalonDockControls:LayoutDocumentPaneControl}"> |
|
|
|
@ -71,7 +162,7 @@ |
|
|
|
KeyboardNavigation.TabIndex="1" |
|
|
|
KeyboardNavigation.DirectionalNavigation="Cycle" /> |
|
|
|
<avalonDockControls:DropDownButton x:Name="MenuDropDownButton" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ToggleButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarDropDownButtonStyle}" |
|
|
|
Focusable="False" |
|
|
|
Grid.Column="1"> |
|
|
|
<avalonDockControls:DropDownButton.DropDownContextMenu> |
|
|
|
@ -374,7 +465,7 @@ |
|
|
|
ContentTemplateSelector="{Binding Model.Root.Manager.AnchorableTitleTemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" /> |
|
|
|
</avalonDockControls:DropDownControlArea> |
|
|
|
|
|
|
|
<avalonDockControls:DropDownButton Style="{DynamicResource {x:Static ToolBar.ToggleButtonStyleKey}}" |
|
|
|
<avalonDockControls:DropDownButton Style="{StaticResource AeroToolBarDropDownButtonStyle}" |
|
|
|
Focusable="False" |
|
|
|
Grid.Column="1" |
|
|
|
DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
@ -389,7 +480,7 @@ |
|
|
|
<Button x:Name="PART_AutoHidePin" |
|
|
|
Grid.Column="2" |
|
|
|
Focusable="False" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
Command="{Binding Path=LayoutItem.AutoHideCommand, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_BtnAutoHide_Hint}"> |
|
|
|
@ -402,7 +493,7 @@ |
|
|
|
<Button x:Name="PART_HidePin" |
|
|
|
Grid.Column="3" |
|
|
|
Focusable="False" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
Command="{Binding Path=LayoutItem.HideCommand, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_Hide}"> |
|
|
|
@ -882,7 +973,7 @@ |
|
|
|
ContentTemplateSelector="{Binding Root.Manager.DocumentHeaderTemplateSelector, Mode=OneWay}" /> |
|
|
|
|
|
|
|
<Button x:Name="DocumentCloseButton" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Grid.Column="2" |
|
|
|
Visibility="Hidden" |
|
|
|
Command="{Binding Path=LayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
@ -1043,7 +1134,7 @@ |
|
|
|
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InverseBoolToVisibilityConverter}}" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{x:Static shell:SystemCommands.MaximizeWindowCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Maximize}" |
|
|
|
@ -1055,7 +1146,7 @@ |
|
|
|
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{x:Static shell:SystemCommands.RestoreWindowCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Restore}" |
|
|
|
@ -1066,7 +1157,7 @@ |
|
|
|
|
|
|
|
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{Binding Path=RootDocumentLayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Document_Close}" |
|
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
@ -1153,7 +1244,7 @@ |
|
|
|
<avalonDockControls:DropDownButton x:Name="SinglePaneContextMenu" |
|
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Visibility="{Binding Path=Model.IsSinglePane, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ToggleButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarDropDownButtonStyle}" |
|
|
|
Focusable="False" |
|
|
|
Grid.Column="1" |
|
|
|
DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
@ -1166,7 +1257,7 @@ |
|
|
|
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InverseBoolToVisibilityConverter}}" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{x:Static shell:SystemCommands.MaximizeWindowCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Maximize}" |
|
|
|
@ -1178,7 +1269,7 @@ |
|
|
|
<Button shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Visibility="{Binding IsMaximized, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{x:Static shell:SystemCommands.RestoreWindowCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Window_Restore}" |
|
|
|
@ -1190,7 +1281,7 @@ |
|
|
|
<Button x:Name="CloseButton" |
|
|
|
shell:WindowChrome.IsHitTestVisibleInChrome="True" |
|
|
|
Focusable="False" |
|
|
|
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" |
|
|
|
Style="{StaticResource AeroToolBarButtonStyle}" |
|
|
|
Command="{Binding HideWindowCommand, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_BtnClose_Hint}" |
|
|
|
Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" |
|
|
|
|