forked from MahApps/MahApps.Metro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHamburgerMenuSample.xaml
43 lines (38 loc) · 2.03 KB
/
HamburgerMenuSample.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<UserControl x:Class="MetroDemo.ExampleViews.HamburgerMenuSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:exampleViews="clr-namespace:MetroDemo.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:metroDemo="clr-namespace:MetroDemo"
d:DataContext="{d:DesignInstance metroDemo:MainWindowViewModel}"
d:DesignHeight="300"
d:DesignWidth="400"
mc:Ignorable="d">
<UserControl.Resources>
<Style BasedOn="{StaticResource MahApps.Styles.ToggleSwitch.Win10}" TargetType="{x:Type Controls:ToggleSwitch}">
<Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="0" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style BasedOn="{StaticResource MahApps.Styles.Slider.Win10}" TargetType="{x:Type Slider}" />
<Style BasedOn="{StaticResource {x:Type Controls:MetroHeader}}" TargetType="{x:Type Controls:MetroHeader}">
<Setter Property="Controls:HeaderedControlHelper.HeaderMargin" Value="0 0 0 5" />
<Setter Property="FontSize" Value="15" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</UserControl.Resources>
<Grid>
<TabControl x:Name="HamburgerTabControl"
Margin="10"
Controls:TabControlHelper.Underlined="TabPanel">
<TabItem Header="Default">
<exampleViews:HamburgerMenuDefault DataContext="{Binding}" />
</TabItem>
<TabItem Header="Creators Style">
<exampleViews:HamburgerMenuCreatorsUpdate DataContext="{Binding}" />
</TabItem>
</TabControl>
</Grid>
</UserControl>