更新
This commit is contained in:
21
WPFDark/Controls/BiaHamburgerMenu.xaml
Normal file
21
WPFDark/Controls/BiaHamburgerMenu.xaml
Normal file
@@ -0,0 +1,21 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:WPFDark2="clr-namespace:WPFDark"
|
||||
xmlns:controls="clr-namespace:WPFDark.Controls"
|
||||
xmlns:internals="clr-namespace:WPFDark.Internals">
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<internals:SharedResourceDictionary Source="pack://application:,,,/WPFDark;component/StandardControls/Menu.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style BasedOn="{StaticResource MenuItemBaseStyle}" TargetType="{x:Type controls:BiaHamburgerMenu}">
|
||||
<Setter Property="Header">
|
||||
<Setter.Value>
|
||||
<Canvas Width="32.0"
|
||||
Height="32.0"
|
||||
Margin="-8,-4,0,0">
|
||||
<Path Data="m16,18.66797c0.73828,0 1.33203,0.59375 1.33203,1.33203c0,0.73828 -0.59375,1.33203 -1.33203,1.33203c-0.73828,0 -1.33203,-0.59375 -1.33203,-1.33203c0,-0.73828 0.59375,-1.33203 1.33203,-1.33203m0,-4c0.73828,0 1.33203,0.59375 1.33203,1.33203c0,0.73828 -0.59375,1.33203 -1.33203,1.33203c-0.73828,0 -1.33203,-0.59375 -1.33203,-1.33203c0,-0.73828 0.59375,-1.33203 1.33203,-1.33203m0,-4c0.73828,0 1.33203,0.59375 1.33203,1.33203c0,0.73828 -0.59375,1.33203 -1.33203,1.33203c-0.73828,0 -1.33203,-0.59375 -1.33203,-1.33203c0,-0.73828 0.59375,-1.33203 1.33203,-1.33203zm0,0" Fill="{Binding RelativeSource={RelativeSource AncestorType=Menu}, Mode=OneWay, Path=Foreground}" />
|
||||
</Canvas>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user