|
9 | 9 | mc:Ignorable="d"> |
10 | 10 |
|
11 | 11 | <Page.Resources> |
12 | | - <DataTemplate x:Key="HamburgerMenuItem" x:DataType="controls:HamburgerMenuGlyphItem"> |
13 | | - <Grid> |
14 | | - <Grid.ColumnDefinitions> |
15 | | - <ColumnDefinition Width="48" /> |
16 | | - <ColumnDefinition /> |
17 | | - </Grid.ColumnDefinitions> |
18 | | - <FontIcon Grid.Column="0" |
19 | | - FontFamily="Segoe MDL2 Assets" |
20 | | - Glyph="{Binding Glyph}" |
21 | | - Foreground="White" /> |
22 | | - <TextBlock Grid.Column="1" |
23 | | - Text="{x:Bind Label}" |
24 | | - Foreground="White" |
25 | | - FontSize="16" |
26 | | - VerticalAlignment="Center" /> |
27 | | - </Grid> |
28 | | - </DataTemplate> |
| 12 | + <DataTemplate x:Key="HamburgerMenuItem" x:DataType="controls:HamburgerMenuGlyphItem"> |
| 13 | + <Grid> |
| 14 | + <Grid.ColumnDefinitions> |
| 15 | + <ColumnDefinition Width="48" /> |
| 16 | + <ColumnDefinition /> |
| 17 | + </Grid.ColumnDefinitions> |
| 18 | + <FontIcon Grid.Column="0" |
| 19 | + FontFamily="Segoe MDL2 Assets" |
| 20 | + Glyph="{Binding Glyph}" |
| 21 | + Foreground="White" /> |
| 22 | + <TextBlock Grid.Column="1" |
| 23 | + Text="{x:Bind Label}" |
| 24 | + Foreground="White" |
| 25 | + FontSize="16" |
| 26 | + VerticalAlignment="Center" /> |
| 27 | + </Grid> |
| 28 | + </DataTemplate> |
29 | 29 |
|
30 | | - <DataTemplate x:Key="HamburgerMenuImageItem" x:DataType="controls:HamburgerMenuGlyphItem"> |
31 | | - <Grid> |
32 | | - <Grid.ColumnDefinitions> |
33 | | - <ColumnDefinition Width="48" /> |
34 | | - <ColumnDefinition /> |
35 | | - </Grid.ColumnDefinitions> |
36 | | - <Image Source="{Binding Glyph}" Stretch="UniformToFill" Margin="12,12,11,12" /> |
37 | | - <TextBlock Grid.Column="1" |
38 | | - Text="{x:Bind Label}" |
39 | | - Foreground="White" |
40 | | - FontSize="16" |
41 | | - VerticalAlignment="Center" /> |
42 | | - </Grid> |
43 | | - </DataTemplate> |
| 30 | + <DataTemplate x:Key="HamburgerMenuImageItem" x:DataType="controls:HamburgerMenuImageItem"> |
| 31 | + <Grid> |
| 32 | + <Grid.ColumnDefinitions> |
| 33 | + <ColumnDefinition Width="48" /> |
| 34 | + <ColumnDefinition /> |
| 35 | + </Grid.ColumnDefinitions> |
| 36 | + <Image Source="{Binding Thumbnail}" Stretch="UniformToFill" Margin="12,12,11,12" /> |
| 37 | + <TextBlock Grid.Column="1" |
| 38 | + Text="{x:Bind Label}" |
| 39 | + Foreground="White" |
| 40 | + FontSize="16" |
| 41 | + VerticalAlignment="Center" /> |
| 42 | + </Grid> |
| 43 | + </DataTemplate> |
44 | 44 | </Page.Resources> |
45 | 45 |
|
46 | 46 | <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="50" BorderThickness="1" BorderBrush="Black"> |
|
58 | 58 | IsPaneOpen="@[IsPaneOpen:Bool:False]"> |
59 | 59 | <!-- Items --> |
60 | 60 | <controls:HamburgerMenu.ItemsSource> |
61 | | - <controls:HamburgerMenuItemCollection> |
62 | | - <controls:HamburgerMenuGlyphItem Label="Big four summer heat" |
63 | | - Glyph="/Assets/Photos/BigFourSummerHeat.jpg"/> |
64 | | - <controls:HamburgerMenuGlyphItem Label="Bison badlands Chillin" |
65 | | - Glyph="/Assets/Photos/BisonBadlandsChillin.jpg"/> |
66 | | - <controls:HamburgerMenuGlyphItem Label="Giant slab in Oregon" |
67 | | - Glyph="/Assets/Photos/GiantSlabInOregon.jpg"/> |
68 | | - <controls:HamburgerMenuGlyphItem Label="Lake Ann Mushroom" |
69 | | - Glyph="/Assets/Photos/LakeAnnMushroom.jpg"/> |
70 | | - </controls:HamburgerMenuItemCollection> |
| 61 | + <controls:HamburgerMenuItemCollection> |
| 62 | + <controls:HamburgerMenuImageItem Label="Big four summer heat" |
| 63 | + Thumbnail="/Assets/Photos/BigFourSummerHeat.jpg"/> |
| 64 | + <controls:HamburgerMenuImageItem Label="Bison badlands Chillin" |
| 65 | + Thumbnail="/Assets/Photos/BisonBadlandsChillin.jpg"/> |
| 66 | + <controls:HamburgerMenuImageItem Label="Giant slab in Oregon" |
| 67 | + Thumbnail="/Assets/Photos/GiantSlabInOregon.jpg"/> |
| 68 | + <controls:HamburgerMenuImageItem Label="Lake Ann Mushroom" |
| 69 | + Thumbnail="/Assets/Photos/LakeAnnMushroom.jpg"/> |
| 70 | + </controls:HamburgerMenuItemCollection> |
71 | 71 | </controls:HamburgerMenu.ItemsSource> |
72 | 72 |
|
73 | 73 | <!-- Options --> |
|
0 commit comments