Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added AutoSuggestBox to MD2&3 FieldsLineUp demo #3763

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/MainDemo.Wpf/FieldsLineUp.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Row="1"
Expand Down Expand Up @@ -202,6 +203,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 @@ -269,6 +274,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/MainDemo.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
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
Loading