|
6 | 6 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
7 | 7 | xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf" |
8 | 8 | xmlns:wpfExample="clr-namespace:MaterialDesignColors.WpfExample" |
| 9 | + xmlns:provingGroundStuff="clr-namespace:MaterialDesignDemo.ProvingGroundStuff" |
9 | 10 | mc:Ignorable="d" |
10 | 11 | d:DesignWidth="477" d:DesignHeight="272" |
11 | 12 | d:DataContext="{d:DesignInstance wpfExample:ProvingGroundViewModel, d:IsDesignTimeCreatable=False}"> |
12 | 13 | <UserControl.Resources> |
13 | 14 | <ResourceDictionary> |
14 | 15 | <ResourceDictionary.MergedDictionaries> |
15 | | - <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" /> |
| 16 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBox.xaml" /> |
16 | 17 | <!-- |
17 | 18 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" /> |
18 | 19 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ProgressBar.xaml" /> |
|
23 | 24 | </ResourceDictionary.MergedDictionaries> |
24 | 25 |
|
25 | 26 |
|
| 27 | + |
| 28 | + <Style TargetType="{x:Type provingGroundStuff:MeasuringTextBox}" BasedOn="{StaticResource MaterialDesignTextBox}" /> |
26 | 29 |
|
27 | 30 |
|
28 | 31 |
|
29 | 32 | </ResourceDictionary> |
30 | 33 | </UserControl.Resources> |
31 | 34 |
|
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> |
| 35 | + <Grid HorizontalAlignment="Left"> |
| 36 | + <StackPanel> |
| 37 | + <provingGroundStuff:MeasuringTextBox>Hello World</provingGroundStuff:MeasuringTextBox> |
| 38 | + <provingGroundStuff:MeasuringTextBox>Hello World</provingGroundStuff:MeasuringTextBox> |
| 39 | + <provingGroundStuff:MeasuringTextBox>Hello World</provingGroundStuff:MeasuringTextBox> |
| 40 | + <provingGroundStuff:MeasuringTextBox>Hello World</provingGroundStuff:MeasuringTextBox> |
| 41 | + <provingGroundStuff:MeasuringTextBox>Hello World</provingGroundStuff:MeasuringTextBox> |
| 42 | + <provingGroundStuff:MeasuringTextBox materialDesign:HintAssist.Hint="Float">Hello World</provingGroundStuff:MeasuringTextBox> |
| 43 | + <provingGroundStuff:MeasuringTextBox materialDesign:HintAssist.IsFloating="True" materialDesign:HintAssist.Hint="Float">Hello World</provingGroundStuff:MeasuringTextBox> |
| 44 | + </StackPanel> |
| 45 | + </Grid> |
136 | 46 |
|
137 | 47 | </UserControl> |
0 commit comments