1+ <ResourceDictionary xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3+ xmlns : vsShell =" clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0" >
4+
5+ <Style x : Key =" ContextMenuStyle" TargetType =" {x:Type ContextMenu}" >
6+ <Setter Property =" Background" Value =" {DynamicResource {x:Static vsShell:EnvironmentColors.DropDownPopupBackgroundBeginBrushKey}}" />
7+ <Setter Property =" BorderBrush" Value =" {DynamicResource {x:Static vsShell:EnvironmentColors.DropDownBorderBrushKey}}" />
8+ <Setter Property =" Foreground" Value =" {DynamicResource {x:Static vsShell:EnvironmentColors.ToolWindowTextBrushKey}}" />
9+ <Setter Property =" Template" >
10+ <Setter .Value>
11+ <ControlTemplate TargetType =" {x:Type ContextMenu}" >
12+ <Border Uid =" Border_93" >
13+ <Border .Style>
14+ <Style TargetType =" {x:Type Border}" >
15+ <Setter Property =" Tag" Value =" {DynamicResource {x:Static SystemParameters.DropShadowKey}}" />
16+ <Style .Triggers>
17+ <DataTrigger Binding =" {Binding Tag, RelativeSource={RelativeSource Self}}" Value =" True" >
18+ <Setter Property =" Background" Value =" Transparent" />
19+ <Setter Property =" Padding" Value =" 0,0,5,5" />
20+ <Setter Property =" Effect" >
21+ <Setter .Value>
22+ <DropShadowEffect BlurRadius =" 4" Opacity =" 0.8" ShadowDepth =" 1" />
23+ </Setter .Value>
24+ </Setter >
25+ </DataTrigger >
26+ </Style .Triggers>
27+ </Style >
28+ </Border .Style>
29+ <Border BorderBrush =" {TemplateBinding BorderBrush}"
30+ BorderThickness =" {TemplateBinding BorderThickness}"
31+ Background =" {TemplateBinding Background}"
32+ Uid =" Border_50" >
33+ <ScrollViewer CanContentScroll =" True"
34+ Style =" {DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
35+ TypeInTargetAssembly={x:Type FrameworkElement}}}"
36+ Uid =" ScrollViewer_9" >
37+ <ItemsPresenter
38+ KeyboardNavigation.DirectionalNavigation=" Cycle"
39+ Margin =" {TemplateBinding Padding}"
40+ SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}"
41+ Uid =" ItemsPresenter_5" />
42+ </ScrollViewer >
43+ </Border >
44+ </Border >
45+ </ControlTemplate >
46+ </Setter .Value>
47+ </Setter >
48+ </Style >
49+ </ResourceDictionary >
0 commit comments