|
12 | 12 | <UserControl.Resources>
|
13 | 13 | <ResourceDictionary>
|
14 | 14 | <ResourceDictionary.MergedDictionaries>
|
| 15 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" /> |
15 | 16 | <!--
|
16 | 17 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
|
17 | 18 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ProgressBar.xaml" />
|
|
28 | 29 | </ResourceDictionary>
|
29 | 30 | </UserControl.Resources>
|
30 | 31 |
|
31 |
| - <materialDesign:DialogHost Identifier="RootDialog"> |
32 |
| - <ScrollViewer VerticalScrollBarVisibility="Auto" Background="White"> |
33 |
| - <Grid> |
34 |
| - <TextBox x:Name="loginText" |
35 |
| - materialDesign:HintAssist.FloatingScale=".56" |
36 |
| - materialDesign:HintAssist.FloatingOffset="1,-42" |
37 |
| - Style="{StaticResource MaterialDesignFloatingHintTextBox}" materialDesign:TextFieldAssist.TextBoxViewMargin="1 0 1 0" Margin="0,350,0,0" materialDesign:HintAssist.IsFloating="True" HorizontalAlignment="Center" VerticalAlignment="Top" Width="400" FontSize="36" Height="100" Background="White" Padding="6,0,0,2"> |
38 |
| - <materialDesign:HintAssist.Hint> |
39 |
| - <StackPanel Orientation="Horizontal" Margin="0 0 0 0"> |
40 |
| - <materialDesign:PackIcon Kind="Account" Width="50" Height="50" /> |
41 |
| - <TextBlock Padding="5,0,0,0">Enter login</TextBlock> |
42 |
| - </StackPanel> |
43 |
| - </materialDesign:HintAssist.Hint> |
44 |
| - </TextBox> |
45 |
| - </Grid> |
46 |
| - </ScrollViewer> |
47 |
| - </materialDesign:DialogHost> |
| 32 | + <materialDesign:DrawerHost> |
| 33 | + <materialDesign:DrawerHost.LeftDrawerContent> |
| 34 | + <StackPanel Margin="16"> |
| 35 | + <TextBlock Margin="4" HorizontalAlignment="Center">LEFT FIELD</TextBlock> |
| 36 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 37 | + CommandParameter="{x:Static Dock.Left}" |
| 38 | + Margin="4" HorizontalAlignment="Center" |
| 39 | + Style="{DynamicResource MaterialDesignFlatButton}"> |
| 40 | + CLOSE THIS |
| 41 | + </Button> |
| 42 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 43 | + Margin="4" HorizontalAlignment="Center" |
| 44 | + Style="{DynamicResource MaterialDesignFlatButton}"> |
| 45 | + CLOSE ALL |
| 46 | + </Button> |
| 47 | + </StackPanel> |
| 48 | + </materialDesign:DrawerHost.LeftDrawerContent> |
| 49 | + <materialDesign:DrawerHost.TopDrawerContent> |
| 50 | + <StackPanel Margin="16" HorizontalAlignment="Center" Orientation="Horizontal"> |
| 51 | + <TextBlock Margin="4" VerticalAlignment="Center">TOP BANANA</TextBlock> |
| 52 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 53 | + Style="{DynamicResource MaterialDesignFlatButton}" |
| 54 | + Margin="4" VerticalAlignment="Center"> |
| 55 | + CLOSE ALL |
| 56 | + </Button> |
| 57 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 58 | + CommandParameter="{x:Static Dock.Top}" |
| 59 | + Style="{DynamicResource MaterialDesignFlatButton}" |
| 60 | + Margin="4" VerticalAlignment="Center"> |
| 61 | + CLOSE THIS |
| 62 | + </Button> |
| 63 | + </StackPanel> |
| 64 | + </materialDesign:DrawerHost.TopDrawerContent> |
| 65 | + <materialDesign:DrawerHost.RightDrawerContent> |
| 66 | + <StackPanel Margin="16"> |
| 67 | + <TextBlock Margin="4" HorizontalAlignment="Center">THE RIGHT STUFF</TextBlock> |
| 68 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 69 | + CommandParameter="{x:Static Dock.Right}" |
| 70 | + Margin="4" HorizontalAlignment="Center" |
| 71 | + Style="{DynamicResource MaterialDesignFlatButton}"> |
| 72 | + CLOSE THIS |
| 73 | + </Button> |
| 74 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 75 | + Margin="4" HorizontalAlignment="Center" |
| 76 | + Style="{DynamicResource MaterialDesignFlatButton}"> |
| 77 | + CLOSE ALL |
| 78 | + </Button> |
| 79 | + </StackPanel> |
| 80 | + </materialDesign:DrawerHost.RightDrawerContent> |
| 81 | + <materialDesign:DrawerHost.BottomDrawerContent> |
| 82 | + <StackPanel Margin="16" HorizontalAlignment="Center" Orientation="Horizontal"> |
| 83 | + <TextBlock Margin="4" VerticalAlignment="Center">BOTTOM BRACKET</TextBlock> |
| 84 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 85 | + Style="{DynamicResource MaterialDesignFlatButton}" |
| 86 | + Margin="4" VerticalAlignment="Center"> |
| 87 | + CLOSE ALL |
| 88 | + </Button> |
| 89 | + <Button Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}" |
| 90 | + CommandParameter="{x:Static Dock.Bottom}" |
| 91 | + Style="{DynamicResource MaterialDesignFlatButton}" |
| 92 | + Margin="4" VerticalAlignment="Center"> |
| 93 | + CLOSE THIS |
| 94 | + </Button> |
| 95 | + </StackPanel> |
| 96 | + </materialDesign:DrawerHost.BottomDrawerContent> |
| 97 | + |
| 98 | + <Grid VerticalAlignment="Center" HorizontalAlignment="Center"> |
| 99 | + <Grid.RowDefinitions> |
| 100 | + <RowDefinition /> |
| 101 | + <RowDefinition /> |
| 102 | + <RowDefinition /> |
| 103 | + </Grid.RowDefinitions> |
| 104 | + <Grid.ColumnDefinitions> |
| 105 | + <ColumnDefinition /> |
| 106 | + <ColumnDefinition /> |
| 107 | + <ColumnDefinition /> |
| 108 | + </Grid.ColumnDefinitions> |
| 109 | + <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" |
| 110 | + CommandParameter="{x:Static Dock.Left}" |
| 111 | + Grid.Row="1" Grid.Column="0" Margin="4"> |
| 112 | + <materialDesign:PackIcon Kind="ArrowLeft" /> |
| 113 | + </Button> |
| 114 | + <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" |
| 115 | + CommandParameter="{x:Static Dock.Top}" |
| 116 | + Grid.Row="0" Grid.Column="1" Margin="4"> |
| 117 | + <materialDesign:PackIcon Kind="ArrowUp" /> |
| 118 | + </Button> |
| 119 | + <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" |
| 120 | + CommandParameter="{x:Static Dock.Right}" |
| 121 | + Grid.Row="1" Grid.Column="2" Margin="4"> |
| 122 | + <materialDesign:PackIcon Kind="ArrowRight" /> |
| 123 | + </Button> |
| 124 | + <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" |
| 125 | + CommandParameter="{x:Static Dock.Bottom}" |
| 126 | + Grid.Row="2" Grid.Column="1" Margin="4"> |
| 127 | + <materialDesign:PackIcon Kind="ArrowDown" /> |
| 128 | + </Button> |
| 129 | + <Button Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" |
| 130 | + Grid.Row="1" Grid.Column="1" Margin="4" |
| 131 | + Style="{DynamicResource MaterialDesignRaisedAccentButton}"> |
| 132 | + <materialDesign:PackIcon Kind="ArrowAll" /> |
| 133 | + </Button> |
| 134 | + </Grid> |
| 135 | + </materialDesign:DrawerHost> |
48 | 136 |
|
49 | 137 | </UserControl>
|
0 commit comments