Skip to content

Commit

Permalink
added AutoSuggestBox to MD3 FieldsLineUp demo
Browse files Browse the repository at this point in the history
  • Loading branch information
corvinsz committed Jan 9, 2025
1 parent 151e254 commit f6855b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/MaterialDesign3.Demo.Wpf/FieldsLineUp.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Row="1"
Expand Down Expand Up @@ -191,6 +192,10 @@
Grid.Column="6"
Style="{StaticResource FieldHeader}"
Text="NumericUpDown" />
<TextBlock Grid.Row="0"
Grid.Column="7"
Style="{StaticResource FieldHeader}"
Text="AutoSuggestBox " />

<TextBox Grid.Row="1" Grid.Column="1" />
<TextBox Grid.Row="2"
Expand Down Expand Up @@ -258,6 +263,17 @@
Grid.Column="6"
Style="{StaticResource MaterialDesignOutlinedNumericUpDown}" />

<materialDesign:AutoSuggestBox Grid.Row="1" Grid.Column="7" />
<materialDesign:AutoSuggestBox Grid.Row="2"
Grid.Column="7"
Style="{StaticResource MaterialDesignFloatingHintAutoSuggestBox}" />
<materialDesign:AutoSuggestBox Grid.Row="3"
Grid.Column="7"
Style="{StaticResource MaterialDesignFilledAutoSuggestBox}" />
<materialDesign:AutoSuggestBox Grid.Row="4"
Grid.Column="7"
Style="{StaticResource MaterialDesignOutlinedAutoSuggestBox}" />

</Grid>
</StackPanel>
</GroupBox>
Expand Down
3 changes: 3 additions & 0 deletions src/MaterialDesign3.Demo.Wpf/FieldsLineUp.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ private static void SetValue(Control control)
{
switch (control)
{
case MaterialDesignThemes.Wpf.AutoSuggestBox autoSuggestBox:
autoSuggestBox.Text = nameof(MaterialDesignThemes.Wpf.AutoSuggestBox.Text);
break;
case TextBox textBox:
textBox.Text = nameof(TextBox.Text);
break;
Expand Down

0 comments on commit f6855b2

Please sign in to comment.