|
12 | 12 | d:DesignHeight="300"
|
13 | 13 | d:DesignWidth="600"
|
14 | 14 | d:DataContext="{d:DesignInstance domain:FieldsViewModel, IsDesignTimeCreatable=False}">
|
15 |
| - |
| 15 | + |
16 | 16 | <UserControl.Resources>
|
17 | 17 | <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignTextBox}">
|
18 | 18 | <Setter Property="Margin" Value="0,8"/>
|
19 | 19 | <Setter Property="VerticalAlignment" Value="Center"/>
|
20 | 20 | </Style>
|
21 |
| - |
| 21 | + |
22 | 22 | <Style TargetType="{x:Type PasswordBox}" BasedOn="{StaticResource MaterialDesignPasswordBox}">
|
23 | 23 | <Setter Property="Margin" Value="0,8"/>
|
24 | 24 | </Style>
|
25 |
| - |
| 25 | + |
26 | 26 | <Style TargetType="{x:Type Viewbox}">
|
27 | 27 | <Setter Property="Width" Value="18"/>
|
28 | 28 | <Setter Property="Height" Value="18"/>
|
29 | 29 | <Setter Property="Margin" Value="0 0 8 0"/>
|
30 | 30 | <Setter Property="VerticalAlignment" Value="Center"/>
|
31 | 31 | </Style>
|
32 |
| - |
| 32 | + |
33 | 33 | <Style TargetType="{x:Type materialDesign:PackIcon}" BasedOn="{StaticResource {x:Type materialDesign:PackIcon}}">
|
34 | 34 | <Setter Property="VerticalAlignment" Value="Center"/>
|
35 | 35 | <Setter Property="Margin" Value="4 0 4 0"/>
|
36 | 36 | </Style>
|
37 | 37 | </UserControl.Resources>
|
38 |
| - |
| 38 | + |
39 | 39 | <StackPanel Margin="16 0 16 16">
|
40 | 40 | <Grid VerticalAlignment="Top">
|
41 | 41 | <Grid.ColumnDefinitions>
|
|
45 | 45 | <ColumnDefinition Width="155"/>
|
46 | 46 | <ColumnDefinition Width="*"/>
|
47 | 47 | </Grid.ColumnDefinitions>
|
48 |
| - |
| 48 | + |
49 | 49 | <Grid.RowDefinitions>
|
50 | 50 | <RowDefinition Height="Auto"/>
|
51 | 51 | <RowDefinition Height="Auto"/>
|
52 | 52 | <RowDefinition Height="Auto"/>
|
53 | 53 | <RowDefinition Height="Auto"/>
|
54 | 54 | <RowDefinition Height="Auto"/>
|
55 |
| - <RowDefinition/> |
| 55 | + <RowDefinition Height="Auto"/> |
56 | 56 | </Grid.RowDefinitions>
|
57 | 57 |
|
58 | 58 | <TextBlock
|
|
61 | 61 | Grid.ColumnSpan="2"
|
62 | 62 | Style="{StaticResource MaterialDesignHeadline5TextBlock}"
|
63 | 63 | Text="Common Fields"/>
|
64 |
| - |
| 64 | + |
65 | 65 | <materialDesign:PackIcon
|
66 | 66 | Grid.Row="1"
|
67 | 67 | Grid.Column="0"
|
68 | 68 | Kind="Account"
|
69 | 69 | Foreground="{Binding ElementName=NameTextBox, Path=BorderBrush}"/>
|
70 |
| - |
| 70 | + |
71 | 71 | <smtx:XamlDisplay
|
72 | 72 | UniqueKey="fields_1"
|
73 | 73 | Grid.Column="1"
|
|
86 | 86 | </TextBox.Text>
|
87 | 87 | </TextBox>
|
88 | 88 | </smtx:XamlDisplay>
|
89 |
| - |
| 89 | + |
90 | 90 | <materialDesign:PackIcon
|
91 | 91 | Grid.Row="2"
|
92 | 92 | Grid.Column="0"
|
93 | 93 | Kind="Phone"
|
94 | 94 | Foreground="{Binding ElementName=PhoneTextBox, Path=BorderBrush}"/>
|
95 |
| - |
| 95 | + |
96 | 96 | <smtx:XamlDisplay
|
97 | 97 | UniqueKey="fields_4"
|
98 | 98 | Grid.Row="2"
|
|
101 | 101 | x:Name="PhoneTextBox"
|
102 | 102 | materialDesign:TransitionAssist.DisableTransitions="True"/>
|
103 | 103 | </smtx:XamlDisplay>
|
104 |
| - |
| 104 | + |
105 | 105 | <materialDesign:PackIcon
|
106 | 106 | Grid.Row="3"
|
107 | 107 | Grid.Column="0"
|
108 | 108 | Kind="Comment"
|
109 | 109 | Foreground="{Binding ElementName=CommentTextBox, Path=BorderBrush}"/>
|
110 |
| - |
| 110 | + |
111 | 111 | <smtx:XamlDisplay
|
112 | 112 | UniqueKey="fields_6"
|
113 | 113 | Grid.Row="3"
|
114 | 114 | Grid.Column="1">
|
115 | 115 | <TextBox
|
116 | 116 | x:Name="CommentTextBox"
|
117 | 117 | materialDesign:HintAssist.Hint="Comment"
|
118 |
| - materialDesign:HintAssist.HelperText="Insert your comment here"/> |
| 118 | + materialDesign:HintAssist.HelperText="Bigger Helper Text" |
| 119 | + materialDesign:HintAssist.HelperTextFontSize="16"/> |
119 | 120 | </smtx:XamlDisplay>
|
120 |
| - |
| 121 | + |
121 | 122 | <smtx:XamlDisplay
|
122 | 123 | UniqueKey="fields_8"
|
123 | 124 | Grid.Row="4"
|
|
134 | 135 | Kind="Key"
|
135 | 136 | Foreground="{Binding ElementName=PasswordBox, Path=BorderBrush}"
|
136 | 137 | HorizontalAlignment="Right"/>
|
137 |
| - |
| 138 | + |
138 | 139 | <smtx:XamlDisplay
|
139 | 140 | UniqueKey="fields_7"
|
140 | 141 | Grid.Row="1"
|
|
145 | 146 | materialDesign:TextFieldAssist.HasClearButton="True"
|
146 | 147 | materialDesign:HintAssist.HelperText="At least 8 characters"/>
|
147 | 148 | </smtx:XamlDisplay>
|
148 |
| - |
| 149 | + |
149 | 150 | <materialDesign:PackIcon
|
150 | 151 | Grid.Row="2"
|
151 | 152 | Grid.Column="2"
|
152 | 153 | Kind="Key"
|
153 | 154 | Margin="0 12 0 0"
|
154 | 155 | Foreground="{Binding ElementName=FloatingPasswordBox, Path=BorderBrush}"/>
|
155 |
| - |
| 156 | + |
156 | 157 | <smtx:XamlDisplay
|
157 | 158 | UniqueKey="fields_18"
|
158 | 159 | Grid.Row="2"
|
|
165 | 166 | materialDesign:TextFieldAssist.UnderlineBrush="Green"
|
166 | 167 | Style="{StaticResource MaterialDesignFloatingHintPasswordBox}"/>
|
167 | 168 | </smtx:XamlDisplay>
|
168 |
| - |
| 169 | + |
169 | 170 | <smtx:XamlDisplay
|
170 | 171 | UniqueKey="fields_19"
|
171 | 172 | Grid.Row="3"
|
|
179 | 180 | Style="{StaticResource MaterialDesignFloatingHintTextBox}"
|
180 | 181 | FontSize="24"/>
|
181 | 182 | </smtx:XamlDisplay>
|
182 |
| - |
| 183 | + |
183 | 184 | <smtx:XamlDisplay
|
184 | 185 | UniqueKey="fields_13"
|
185 | 186 | Grid.Row="4"
|
|
189 | 190 | IsEnabled="False"
|
190 | 191 | MinWidth="72"/>
|
191 | 192 | </smtx:XamlDisplay>
|
192 |
| - |
| 193 | + |
193 | 194 | <smtx:XamlDisplay
|
194 | 195 | UniqueKey="fields_15"
|
195 | 196 | Grid.Row="5"
|
|
206 | 207 | Style="{StaticResource MaterialDesignHeadline5TextBlock}"
|
207 | 208 | Margin="32 0 0 0"
|
208 | 209 | Text="Multi-line"/>
|
209 |
| - |
| 210 | + |
210 | 211 | <smtx:XamlDisplay
|
211 | 212 | UniqueKey="fields_3"
|
212 | 213 | Grid.Row="1"
|
|
224 | 225 | Height="80"
|
225 | 226 | Text="Multiline. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. War and peace. Keep going. Go on. For how long? Not long. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."/>
|
226 | 227 | </smtx:XamlDisplay>
|
227 |
| - |
| 228 | + |
228 | 229 | <smtx:XamlDisplay
|
229 | 230 | UniqueKey="fields_32"
|
230 | 231 | Grid.Row="3"
|
|
236 | 237 | <RowDefinition Height="Auto"/>
|
237 | 238 | <RowDefinition/>
|
238 | 239 | </Grid.RowDefinitions>
|
239 |
| - |
| 240 | + |
240 | 241 | <CheckBox
|
241 | 242 | Content="Rich Text Box: IsReadOnly"
|
242 | 243 | IsChecked="True"
|
243 | 244 | x:Name="RichTextBoxIsReadOnlyCheckBox"/>
|
244 |
| - |
| 245 | + |
245 | 246 | <RichTextBox
|
246 | 247 | MinWidth="280" AcceptsReturn="True" IsDocumentEnabled="True"
|
247 | 248 | IsReadOnly="{Binding IsChecked, ElementName=RichTextBoxIsReadOnlyCheckBox}"
|
|
296 | 297 | <RowDefinition/>
|
297 | 298 | <RowDefinition/>
|
298 | 299 | </Grid.RowDefinitions>
|
299 |
| - |
| 300 | + |
300 | 301 | <Grid.ColumnDefinitions>
|
301 | 302 | <ColumnDefinition Width="Auto"/>
|
302 | 303 | <ColumnDefinition Width="Auto"/>
|
303 | 304 | <ColumnDefinition Width="Auto"/>
|
304 | 305 | <ColumnDefinition Width="Auto"/>
|
305 | 306 | </Grid.ColumnDefinitions>
|
306 |
| - |
| 307 | + |
307 | 308 | <Grid.Resources>
|
308 | 309 | <Style TargetType="{x:Type smtx:XamlDisplay}" BasedOn="{StaticResource {x:Type smtx:XamlDisplay}}">
|
309 | 310 | <Setter Property="Width" Value="200"/>
|
310 | 311 | <Setter Property="VerticalAlignment" Value="Top"/>
|
311 | 312 | <Setter Property="Margin" Value="0 0 16 0"/>
|
312 | 313 | </Style>
|
313 |
| - |
| 314 | + |
314 | 315 | <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}">
|
315 | 316 | <Setter Property="Margin" Value="0 8"/>
|
316 | 317 | <Setter Property="IsChecked" Value="True"/>
|
|
321 | 322 | Grid.ColumnSpan="2"
|
322 | 323 | Style="{StaticResource MaterialDesignHeadline5TextBlock}"
|
323 | 324 | Text="Filled fields"/>
|
324 |
| - |
| 325 | + |
325 | 326 | <TextBlock
|
326 | 327 | Grid.Column="2"
|
327 | 328 | Grid.Row="0"
|
328 | 329 | Grid.ColumnSpan="2"
|
329 | 330 | Style="{StaticResource MaterialDesignHeadline5TextBlock}"
|
330 | 331 | Text="Outlined fields"/>
|
331 |
| - |
| 332 | + |
332 | 333 | <smtx:XamlDisplay
|
333 | 334 | Grid.Row="1"
|
334 | 335 | Grid.Column="0"
|
|
337 | 338 | <CheckBox
|
338 | 339 | x:Name="MaterialDesignFilledTextBoxEnabledComboBox"
|
339 | 340 | Content="Enabled"/>
|
340 |
| - |
| 341 | + |
341 | 342 | <TextBox
|
342 | 343 | Style="{StaticResource MaterialDesignFilledTextBox}"
|
343 | 344 | VerticalAlignment="Top"
|
|
348 | 349 | IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignFilledTextBoxEnabledComboBox}"/>
|
349 | 350 | </StackPanel>
|
350 | 351 | </smtx:XamlDisplay>
|
351 |
| - |
| 352 | + |
352 | 353 | <smtx:XamlDisplay
|
353 | 354 | Grid.Row="1"
|
354 | 355 | Grid.Column="1"
|
|
357 | 358 | <CheckBox
|
358 | 359 | x:Name="MaterialDesignFilledPasswordFieldPasswordBoxEnabledComboBox"
|
359 | 360 | Content="Enabled"/>
|
360 |
| - |
| 361 | + |
361 | 362 | <PasswordBox
|
362 | 363 | Style="{StaticResource MaterialDesignFilledPasswordBox}"
|
363 | 364 | VerticalAlignment="Top"
|
364 | 365 | IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignFilledPasswordFieldPasswordBoxEnabledComboBox}"
|
365 | 366 | materialDesign:HintAssist.Hint="Password"/>
|
366 | 367 | </StackPanel>
|
367 | 368 | </smtx:XamlDisplay>
|
368 |
| - |
| 369 | + |
369 | 370 | <smtx:XamlDisplay
|
370 | 371 | Grid.Row="1"
|
371 | 372 | Grid.Column="2"
|
|
375 | 376 | <CheckBox
|
376 | 377 | x:Name="MaterialDesignOutlinedTextBoxEnabledComboBox"
|
377 | 378 | Content="Enabled"/>
|
378 |
| - |
| 379 | + |
379 | 380 | <TextBox
|
380 | 381 | Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
381 | 382 | VerticalAlignment="Top"
|
|
386 | 387 | materialDesign:HintAssist.Hint="This is a text area"
|
387 | 388 | IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedTextBoxEnabledComboBox}"/>
|
388 | 389 | </StackPanel>
|
389 |
| - </smtx:XamlDisplay> |
| 390 | + </smtx:XamlDisplay> |
390 | 391 | <smtx:XamlDisplay
|
391 | 392 | Grid.Row="1"
|
392 | 393 | Grid.Column="3"
|
|
395 | 396 | <CheckBox
|
396 | 397 | x:Name="MaterialDesignOutlinedPasswordFieldPasswordBoxEnabledComboBox"
|
397 | 398 | Content="Enabled"/>
|
398 |
| - |
| 399 | + |
399 | 400 | <PasswordBox
|
400 | 401 | Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
|
401 | 402 | VerticalAlignment="Top"
|
|
414 | 415 | <ColumnDefinition Width="Auto"/>
|
415 | 416 | <ColumnDefinition Width="Auto"/>
|
416 | 417 | </Grid.ColumnDefinitions>
|
417 |
| - |
| 418 | + |
418 | 419 | <Grid.RowDefinitions>
|
419 | 420 | <RowDefinition/>
|
420 | 421 | <RowDefinition/>
|
421 | 422 | </Grid.RowDefinitions>
|
422 | 423 | <TextBlock
|
423 | 424 | Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
424 | 425 | Text="DataTemplate"/>
|
425 |
| - |
| 426 | + |
426 | 427 | <smtx:XamlDisplay
|
427 | 428 | UniqueKey="fields_20"
|
428 | 429 | Grid.Row="1"
|
|
436 | 437 | Text="{Binding Name}"
|
437 | 438 | Margin="0 0 0 0"
|
438 | 439 | VerticalAlignment="Bottom"/>
|
439 |
| - |
| 440 | + |
440 | 441 | <TextBox
|
441 | 442 | materialDesign:HintAssist.Hint="Content"
|
442 | 443 | Text="{Binding Content}"
|
443 | 444 | Margin="8 0 0 0"
|
444 | 445 | VerticalAlignment="Bottom"/>
|
445 |
| - |
| 446 | + |
446 | 447 | <TextBox
|
447 | 448 | Style="{StaticResource MaterialDesignFloatingHintTextBox}"
|
448 | 449 | materialDesign:HintAssist.Hint="Name"
|
|
466 | 467 | Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
467 | 468 | Margin="32 0 0 0"
|
468 | 469 | Text="DataTemplateSelector"/>
|
469 |
| - |
| 470 | + |
470 | 471 | <smtx:XamlDisplay
|
471 | 472 | Grid.Row="1"
|
472 | 473 | Grid.Column="1"
|
|
484 | 485 | Text="{Binding Name}"
|
485 | 486 | Margin="0 0 0 0"
|
486 | 487 | VerticalAlignment="Bottom"/>
|
487 |
| - |
| 488 | + |
488 | 489 | <TextBox
|
489 | 490 | materialDesign:HintAssist.Hint="Content"
|
490 | 491 | Text="{Binding Content}"
|
491 | 492 | Margin="8 0 0 0"
|
492 | 493 | VerticalAlignment="Bottom"/>
|
493 |
| - |
| 494 | + |
494 | 495 | <TextBox
|
495 | 496 | Style="{StaticResource MaterialDesignFloatingHintTextBox}"
|
496 | 497 | materialDesign:HintAssist.Hint="Name"
|
497 | 498 | Text="{Binding Name}"
|
498 | 499 | Margin="8 0 0 0"
|
499 | 500 | VerticalAlignment="Bottom"/>
|
500 |
| - |
| 501 | + |
501 | 502 | <TextBox
|
502 | 503 | Style="{StaticResource MaterialDesignFloatingHintTextBox}"
|
503 | 504 | materialDesign:HintAssist.Hint="Content"
|
|
517 | 518 | Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
518 | 519 | Margin="32 0 0 0"
|
519 | 520 | Text="Validation"/>
|
520 |
| - |
| 521 | + |
521 | 522 | <StackPanel
|
522 | 523 | Orientation="Horizontal"
|
523 | 524 | Grid.Row="1"
|
|
539 | 540 | </Binding>
|
540 | 541 | </TextBox.Text>
|
541 | 542 | </TextBox>
|
542 |
| - </smtx:XamlDisplay> |
| 543 | + </smtx:XamlDisplay> |
543 | 544 | <smtx:XamlDisplay
|
544 | 545 | UniqueKey="fields_validation_2"
|
545 | 546 | Width="120">
|
|
557 | 558 | </Binding>
|
558 | 559 | </TextBox.Text>
|
559 | 560 | </TextBox>
|
560 |
| - </smtx:XamlDisplay> |
| 561 | + </smtx:XamlDisplay> |
561 | 562 | <smtx:XamlDisplay
|
562 | 563 | UniqueKey="fields_validation_3"
|
563 | 564 | Width="120">
|
|
0 commit comments