|
35 | 35 | </ResourceDictionary>
|
36 | 36 | </Window.Resources>
|
37 | 37 |
|
38 |
| - <materialDesign:DialogHost Identifier="RootDialog"> |
| 38 | + <materialDesign:DialogHost Identifier="RootDialog" SnackbarMessageQueue="{Binding ElementName=MainSnackbar, Path=MessageQueue}"> |
39 | 39 | <materialDesign:DrawerHost IsLeftDrawerOpen="{Binding ElementName=MenuToggleButton, Path=IsChecked}">
|
40 | 40 | <materialDesign:DrawerHost.LeftDrawerContent>
|
41 | 41 | <DockPanel MinWidth="212">
|
42 | 42 | <ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}"
|
43 |
| - DockPanel.Dock="Top" |
44 |
| - HorizontalAlignment="Right" Margin="16" |
45 |
| - IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" /> |
| 43 | + DockPanel.Dock="Top" |
| 44 | + HorizontalAlignment="Right" Margin="16" |
| 45 | + IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" /> |
46 | 46 | <ListBox x:Name="DemoItemsListBox" Margin="0 16 0 16" SelectedIndex="0"
|
47 |
| - PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp"> |
| 47 | + PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp"> |
48 | 48 | <ListBox.ItemTemplate>
|
49 | 49 | <DataTemplate DataType="domain:DemoItem">
|
50 | 50 | <TextBlock Text="{Binding Name}" Margin="32 0 32 0" />
|
|
178 | 178 | <materialDesignDemo:Drawers />
|
179 | 179 | </domain:DemoItem.Content>
|
180 | 180 | </domain:DemoItem>
|
| 181 | + <domain:DemoItem Name="Snackbar"> |
| 182 | + <domain:DemoItem.Content> |
| 183 | + <materialDesignDemo:Snackbars /> |
| 184 | + </domain:DemoItem.Content> |
| 185 | + </domain:DemoItem> |
181 | 186 | <domain:DemoItem Name="Transitions">
|
182 | 187 | <domain:DemoItem.Content>
|
183 | 188 | <materialDesignDemo:Transitions />
|
|
193 | 198 | </materialDesign:DrawerHost.LeftDrawerContent>
|
194 | 199 | <DockPanel>
|
195 | 200 | <materialDesign:ColorZone Padding="16" materialDesign:ShadowAssist.ShadowDepth="Depth2"
|
196 |
| - Mode="PrimaryMid" DockPanel.Dock="Top"> |
| 201 | + Mode="PrimaryMid" DockPanel.Dock="Top"> |
197 | 202 | <DockPanel>
|
198 | 203 | <ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}" IsChecked="False"
|
199 |
| - x:Name="MenuToggleButton"/> |
| 204 | + x:Name="MenuToggleButton"/> |
200 | 205 | <materialDesign:PopupBox DockPanel.Dock="Right" PlacementMode="BottomAndAlignRightEdges" StaysOpen="False">
|
201 | 206 | <StackPanel>
|
202 | 207 | <Button Content="Hello World" Click="MenuPopupButton_OnClick"/>
|
|
209 | 214 | <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22">Material Design In XAML Toolkit</TextBlock>
|
210 | 215 | </DockPanel>
|
211 | 216 | </materialDesign:ColorZone>
|
212 |
| - <ContentControl Margin="16" Content="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.Content}" /> |
| 217 | + <Grid> |
| 218 | + <ContentControl Margin="16" Content="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.Content}" /> |
| 219 | + <materialDesign:Snackbar MessageQueue="{materialDesign:MessageQueue}" x:Name="MainSnackbar" /> |
| 220 | + </Grid> |
213 | 221 | </DockPanel>
|
214 | 222 | </materialDesign:DrawerHost>
|
215 | 223 | </materialDesign:DialogHost>
|
|
0 commit comments