|
10 | 10 | d:DesignWidth="1080" |
11 | 11 | mc:Ignorable="d"> |
12 | 12 | <DockPanel> |
13 | | - <TextBlock DockPanel.Dock="Top" Style="{StaticResource PageTitleTextBlock}" Text="Drawer" /> |
| 13 | + <TextBlock DockPanel.Dock="Top" |
| 14 | + Style="{StaticResource PageTitleTextBlock}" |
| 15 | + Text="Drawer" /> |
| 16 | + |
| 17 | + <StackPanel DockPanel.Dock="Left"> |
| 18 | + |
| 19 | + <StackPanel Orientation="Horizontal"> |
| 20 | + <TextBlock VerticalAlignment="Center" Text="Black Overlay Background" /> |
| 21 | + <ToggleButton x:Name="BackgroundToggle" Margin="8,0,16,0" /> |
| 22 | + <TextBlock VerticalAlignment="Center" Text="Primary Overlay Background" /> |
| 23 | + </StackPanel> |
| 24 | + |
| 25 | + <StackPanel Margin="0,8,0,0" Orientation="Horizontal"> |
| 26 | + <TextBlock VerticalAlignment="Center" Text="Open Mode" /> |
| 27 | + <ComboBox SelectedValue="{Binding OpenMode, ElementName=DrawerHost}" SelectedValuePath="Content"> |
| 28 | + <ComboBoxItem Content="{x:Static materialDesign:DrawerHostOpenMode.Modal}" /> |
| 29 | + <ComboBoxItem Content="{x:Static materialDesign:DrawerHostOpenMode.Standard}" /> |
| 30 | + </ComboBox> |
| 31 | + </StackPanel> |
| 32 | + |
| 33 | + <StackPanel Margin="0,8,0,0"> |
| 34 | + |
| 35 | + <CheckBox x:Name="cbApplyBlurBackground" Content="ApplyBlurBackground" /> |
| 36 | + |
| 37 | + <DockPanel> |
| 38 | + <Button Click="Drawer_ResetBlur" |
| 39 | + Content="{materialDesign:PackIcon Kind=Reload}" |
| 40 | + DockPanel.Dock="Right" |
| 41 | + Style="{StaticResource MaterialDesignFlatButton}" |
| 42 | + ToolTip="Reset the BlurRadius of the Drawers Background to it's default value" /> |
| 43 | + <Slider x:Name="BlurRadiusSlider" |
| 44 | + DockPanel.Dock="Left" |
| 45 | + Maximum="64" |
| 46 | + Minimum="1" |
| 47 | + Style="{StaticResource MaterialDesignDiscreteSlider}" /> |
| 48 | + </DockPanel> |
| 49 | + </StackPanel> |
14 | 50 |
|
15 | | - <StackPanel DockPanel.Dock="Top" Orientation="Horizontal"> |
16 | | - <TextBlock VerticalAlignment="Center" Text="Black Overlay Background" /> |
17 | | - |
18 | | - <ToggleButton x:Name="BackgroundToggle" Margin="8,0,16,0" /> |
19 | | - |
20 | | - <TextBlock VerticalAlignment="Center" Text="Primary Overlay Background" /> |
21 | | - |
22 | | - <TextBlock Margin="30,0,16,0" |
23 | | - VerticalAlignment="Center" |
24 | | - Text="Open Mode" /> |
25 | | - <ComboBox SelectedValue="{Binding OpenMode, ElementName=DrawerHost}" SelectedValuePath="Content"> |
26 | | - <ComboBoxItem Content="{x:Static materialDesign:DrawerHostOpenMode.Modal}" /> |
27 | | - <ComboBoxItem Content="{x:Static materialDesign:DrawerHostOpenMode.Standard}" /> |
28 | | - </ComboBox> |
29 | 51 | </StackPanel> |
30 | 52 |
|
31 | | - <smtx:XamlDisplay MaxHeight="{x:Static system:Double.MaxValue}" UniqueKey="drawers_1"> |
| 53 | + <smtx:XamlDisplay MaxHeight="{x:Static system:Double.MaxValue}" |
| 54 | + DockPanel.Dock="Left" |
| 55 | + UniqueKey="drawers_1"> |
32 | 56 | <materialDesign:DrawerHost x:Name="DrawerHost" |
33 | 57 | Width="480" |
34 | 58 | Height="480" |
35 | 59 | Margin="32" |
| 60 | + ApplyBlurBackground="{Binding ElementName=cbApplyBlurBackground, Path=IsChecked}" |
| 61 | + BlurRadius="{Binding ElementName=BlurRadiusSlider, Path=Value}" |
36 | 62 | HorizontalAlignment="Center" |
37 | 63 | VerticalAlignment="Center" |
38 | 64 | BorderBrush="{DynamicResource MaterialDesignDivider}" |
|
0 commit comments