Skip to content

Commit

Permalink
Disabling ContextMenu style in VS2013
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirkster99 committed Aug 14, 2020
1 parent 5554de5 commit 103e106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/Components/AvalonDock.Themes.VS2013/Themes/Generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@

<Style x:Key="DropDownControlArea" TargetType="avalonDockControls:DropDownControlArea" />

<!--
Re-styling this in AvalonDock since the menu on the drop-down button for more documents is otherwise black
BugFix for Issue https://avalondock.codeplex.com/workitem/15743
-->

<!--
dirkster99: Removing this ToolTip style:
1) As it does not appear to add any additional value?
Expand Down Expand Up @@ -73,7 +68,7 @@
Re-styling this in AvalonDock since the menu on the drop-down button for more documents is otherwise black
BugFix for Issue https://avalondock.codeplex.com/workitem/15743
-->
<Style TargetType="{x:Type MenuItem}">
<Style BasedOn="{StaticResource {x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
<Setter Property="HeaderTemplate" Value="{Binding Path=Root.Manager.DocumentPaneMenuItemHeaderTemplate}" />
<Setter Property="HeaderTemplateSelector" Value="{Binding Path=Root.Manager.DocumentPaneMenuItemHeaderTemplateSelector}" />
<Setter Property="BorderThickness" Value="0" />
Expand All @@ -90,6 +85,10 @@
-->
</Style>

<!--
dirkster99: Removing this ContextMenu style:
1) As it does not appear to add any additional value?
2) As it overwrites other ContextMenu styles (eg using MLib in Edi or Aehnlich)
<Style BasedOn="{StaticResource {x:Type ContextMenu}}" TargetType="{x:Type ContextMenu}">
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
<Setter Property="Background" Value="{DynamicResource {x:Static reskeys:ResourceKeys.Background}}" />
Expand Down Expand Up @@ -137,6 +136,7 @@
</Setter.Value>
</Setter>
</Style>
-->

<Style BasedOn="{StaticResource {x:Type ContextMenu}}" TargetType="{x:Type avalonDockControls:ContextMenuEx}" />
<Style x:Key="AvalonDockThemeVs2013ToolButtonStyle" TargetType="ToggleButton">
Expand Down

0 comments on commit 103e106

Please sign in to comment.