|
36 | 36 | </Style>
|
37 | 37 | </UserControl.Resources>
|
38 | 38 |
|
39 |
| - <StackPanel Margin="16 0 16 16"> |
| 39 | + <StackPanel Margin="8 0 16 16"> |
40 | 40 | <Grid VerticalAlignment="Top">
|
41 | 41 | <Grid.ColumnDefinitions>
|
42 | 42 | <ColumnDefinition Width="Auto"/>
|
|
130 | 130 | VerticalAlignment="Center"/>
|
131 | 131 | </smtx:XamlDisplay>
|
132 | 132 |
|
| 133 | + <smtx:XamlDisplay |
| 134 | + UniqueKey="fields_16" |
| 135 | + Grid.Row="5" |
| 136 | + Grid.Column="1" |
| 137 | + Margin="0 8"> |
| 138 | + <TextBox |
| 139 | + Style="{StaticResource MaterialDesignFloatingHintTextBox}" |
| 140 | + Text="Good stuff" |
| 141 | + VerticalAlignment="Center" |
| 142 | + materialDesign:TextFieldAssist.HasClearButton="True" |
| 143 | + materialDesign:TextFieldAssist.PrefixText="$" |
| 144 | + materialDesign:TextFieldAssist.SuffixText="mm"> |
| 145 | + <materialDesign:HintAssist.Hint> |
| 146 | + <StackPanel |
| 147 | + Orientation="Horizontal" |
| 148 | + Margin="-2 0 0 0"> |
| 149 | + <materialDesign:PackIcon Kind="AccessPoint"/> |
| 150 | + <TextBlock Text="WiFi"/> |
| 151 | + </StackPanel> |
| 152 | + </materialDesign:HintAssist.Hint> |
| 153 | + </TextBox> |
| 154 | + </smtx:XamlDisplay> |
| 155 | + |
133 | 156 | <materialDesign:PackIcon
|
134 | 157 | Grid.Row="1"
|
135 | 158 | Grid.Column="2"
|
136 | 159 | Kind="Key"
|
137 |
| - Foreground="{Binding ElementName=PasswordBox, Path=BorderBrush}" |
138 |
| - HorizontalAlignment="Right"/> |
| 160 | + Foreground="{Binding ElementName=PasswordBox, Path=BorderBrush}" /> |
139 | 161 |
|
140 | 162 | <smtx:XamlDisplay
|
141 | 163 | UniqueKey="fields_7"
|
|
268 | 290 | </RichTextBox>
|
269 | 291 | </Grid>
|
270 | 292 | </smtx:XamlDisplay>
|
271 |
| - |
272 |
| - <smtx:XamlDisplay |
273 |
| - UniqueKey="fields_16" |
274 |
| - Grid.Row="5" |
275 |
| - Grid.Column="1" |
276 |
| - Margin="0 8"> |
277 |
| - <TextBox |
278 |
| - Style="{StaticResource MaterialDesignFloatingHintTextBox}" |
279 |
| - Text="Good stuff" |
280 |
| - VerticalAlignment="Center" |
281 |
| - materialDesign:TextFieldAssist.HasClearButton="True" |
282 |
| - materialDesign:TextFieldAssist.PrefixText="$" |
283 |
| - materialDesign:TextFieldAssist.SuffixText="mm"> |
284 |
| - <materialDesign:HintAssist.Hint> |
285 |
| - <StackPanel |
286 |
| - Orientation="Horizontal" |
287 |
| - Margin="-2 0 0 0"> |
288 |
| - <materialDesign:PackIcon Kind="AccessPoint"/> |
289 |
| - <TextBlock Text="WiFi"/> |
290 |
| - </StackPanel> |
291 |
| - </materialDesign:HintAssist.Hint> |
292 |
| - </TextBox> |
293 |
| - </smtx:XamlDisplay> |
294 | 293 | </Grid>
|
295 | 294 |
|
296 | 295 | <Grid Margin="0 48 0 0">
|
|
303 | 302 | <ColumnDefinition Width="Auto"/>
|
304 | 303 | <ColumnDefinition Width="Auto"/>
|
305 | 304 | <ColumnDefinition Width="Auto"/>
|
306 |
| - <ColumnDefinition Width="Auto"/> |
307 |
| - <ColumnDefinition Width="Auto"/> |
308 | 305 | </Grid.ColumnDefinitions>
|
309 | 306 |
|
310 | 307 | <Grid.Resources>
|
|
325 | 322 | Style="{StaticResource MaterialDesignHeadline5TextBlock}"
|
326 | 323 | Text="Filled fields"/>
|
327 | 324 |
|
328 |
| - <TextBlock |
329 |
| - Grid.Column="2" |
330 |
| - Grid.Row="0" |
331 |
| - Grid.ColumnSpan="2" |
332 |
| - Style="{StaticResource MaterialDesignHeadline5TextBlock}" |
333 |
| - Text="Outlined fields"/> |
334 |
| - |
335 | 325 | <smtx:XamlDisplay
|
336 | 326 | Grid.Row="1"
|
337 | 327 | Grid.Column="0"
|
|
355 | 345 | <smtx:XamlDisplay
|
356 | 346 | Grid.Row="1"
|
357 | 347 | Grid.Column="1"
|
| 348 | + UniqueKey="fields_27"> |
| 349 | + <StackPanel> |
| 350 | + <CheckBox |
| 351 | + x:Name="MaterialDesignFilledTextBoxTextCountComboBox" |
| 352 | + Content="View Text Input Count"/> |
| 353 | + |
| 354 | + <TextBox |
| 355 | + Style="{StaticResource MaterialDesignFilledTextBox}" |
| 356 | + VerticalAlignment="Top" |
| 357 | + TextWrapping="Wrap" |
| 358 | + MaxLength="40" |
| 359 | + materialDesign:TextFieldAssist.CharacterCounterVisibility="{Binding Path=IsChecked, ElementName=MaterialDesignFilledTextBoxTextCountComboBox, Converter={StaticResource BooleanToVisibilityConverter}}" |
| 360 | + materialDesign:HintAssist.Hint="This is a limited text area"/> |
| 361 | + </StackPanel> |
| 362 | + </smtx:XamlDisplay> |
| 363 | + |
| 364 | + <smtx:XamlDisplay |
| 365 | + Grid.Row="1" |
| 366 | + Grid.Column="2" |
358 | 367 | UniqueKey="fields_28">
|
359 | 368 | <StackPanel>
|
360 | 369 | <CheckBox
|
361 |
| - x:Name="MaterialDesignFilledPasswordFieldPasswordBoxEnabledComboBox" |
| 370 | + x:Name="MaterialDesignFilledPasswordBoxEnabledComboBox" |
362 | 371 | Content="Enabled"/>
|
363 | 372 |
|
364 | 373 | <PasswordBox
|
365 | 374 | Style="{StaticResource MaterialDesignFilledPasswordBox}"
|
366 | 375 | VerticalAlignment="Top"
|
367 |
| - IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignFilledPasswordFieldPasswordBoxEnabledComboBox}" |
| 376 | + IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignFilledPasswordBoxEnabledComboBox}" |
368 | 377 | materialDesign:HintAssist.Hint="Password"/>
|
369 | 378 | </StackPanel>
|
370 | 379 | </smtx:XamlDisplay>
|
| 380 | + </Grid> |
| 381 | + |
| 382 | + <Grid Margin="0 48 0 0"> |
| 383 | + <Grid.RowDefinitions> |
| 384 | + <RowDefinition/> |
| 385 | + <RowDefinition/> |
| 386 | + </Grid.RowDefinitions> |
| 387 | + |
| 388 | + <Grid.ColumnDefinitions> |
| 389 | + <ColumnDefinition Width="Auto"/> |
| 390 | + <ColumnDefinition Width="Auto"/> |
| 391 | + <ColumnDefinition Width="Auto"/> |
| 392 | + </Grid.ColumnDefinitions> |
| 393 | + |
| 394 | + <Grid.Resources> |
| 395 | + <Style TargetType="{x:Type smtx:XamlDisplay}" BasedOn="{StaticResource {x:Type smtx:XamlDisplay}}"> |
| 396 | + <Setter Property="Width" Value="200"/> |
| 397 | + <Setter Property="VerticalAlignment" Value="Top"/> |
| 398 | + <Setter Property="Margin" Value="0 0 16 0"/> |
| 399 | + </Style> |
| 400 | + |
| 401 | + <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}"> |
| 402 | + <Setter Property="Margin" Value="0 8"/> |
| 403 | + <Setter Property="IsChecked" Value="True"/> |
| 404 | + </Style> |
| 405 | + </Grid.Resources> |
| 406 | + |
| 407 | + <TextBlock |
| 408 | + Grid.Row="0" |
| 409 | + Grid.Column="0" |
| 410 | + Grid.ColumnSpan="2" |
| 411 | + Style="{StaticResource MaterialDesignHeadline5TextBlock}" |
| 412 | + Text="Outlined fields"/> |
371 | 413 |
|
372 | 414 | <smtx:XamlDisplay
|
373 | 415 | Grid.Row="1"
|
374 |
| - Grid.Column="2" |
| 416 | + Grid.Column="0" |
375 | 417 | UniqueKey="fields_26">
|
376 | 418 |
|
377 | 419 | <StackPanel>
|
|
390 | 432 | IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedTextBoxEnabledComboBox}"/>
|
391 | 433 | </StackPanel>
|
392 | 434 | </smtx:XamlDisplay>
|
| 435 | + |
393 | 436 | <smtx:XamlDisplay
|
394 | 437 | Grid.Row="1"
|
395 |
| - Grid.Column="3" |
| 438 | + Grid.Column="1" |
396 | 439 | UniqueKey="fields_29">
|
397 | 440 | <StackPanel>
|
398 | 441 | <CheckBox
|
399 |
| - x:Name="MaterialDesignOutlinedPasswordFieldTextCountComboBox" |
| 442 | + x:Name="MaterialDesignOutlinedTextBoxTextCountComboBox" |
400 | 443 | Content="View Text Input Count"/>
|
401 | 444 |
|
402 | 445 | <TextBox
|
|
405 | 448 | Height="100"
|
406 | 449 | TextWrapping="Wrap"
|
407 | 450 | MaxLength="40"
|
408 |
| - materialDesign:TextFieldAssist.CharacterCounterVisibility="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedPasswordFieldTextCountComboBox, Converter={StaticResource BooleanToVisibilityConverter}}" |
| 451 | + materialDesign:TextFieldAssist.CharacterCounterVisibility="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedTextBoxTextCountComboBox, Converter={StaticResource BooleanToVisibilityConverter}}" |
409 | 452 | VerticalScrollBarVisibility="Auto"
|
410 | 453 | materialDesign:HintAssist.Hint="This is a limited text area"/>
|
411 | 454 | </StackPanel>
|
412 | 455 | </smtx:XamlDisplay>
|
| 456 | + |
413 | 457 | <smtx:XamlDisplay
|
414 | 458 | Grid.Row="1"
|
415 |
| - Grid.Column="4" |
| 459 | + Grid.Column="2" |
416 | 460 | UniqueKey="fields_30">
|
417 | 461 | <StackPanel>
|
418 | 462 | <CheckBox
|
419 |
| - x:Name="MaterialDesignOutlinedPasswordFieldPasswordBoxEnabledComboBox" |
| 463 | + x:Name="MaterialDesignOutlinedPasswordBoxEnabledComboBox" |
420 | 464 | Content="Enabled"/>
|
421 | 465 |
|
422 | 466 | <PasswordBox
|
423 | 467 | Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
|
424 | 468 | VerticalAlignment="Top"
|
425 |
| - IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedPasswordFieldPasswordBoxEnabledComboBox}" |
| 469 | + IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedPasswordBoxEnabledComboBox}" |
426 | 470 | materialDesign:HintAssist.Hint="Password"/>
|
427 | 471 | </StackPanel>
|
428 | 472 | </smtx:XamlDisplay>
|
|
0 commit comments