Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add NumericUpDown to FieldsLineUp
  • Loading branch information
michaelmairegger committed Jun 24, 2024
commit 28552eb9a3e3daf0250fd7045eac325a85242107
6 changes: 6 additions & 0 deletions src/MaterialDesign3.Demo.Wpf/FieldsLineUp.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
<ColumnDefinition MinWidth="100" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Row="1"
Expand Down Expand Up @@ -186,6 +187,10 @@
Grid.Column="5"
Style="{StaticResource FieldHeader}"
Text="TimePicker" />
<TextBlock Grid.Row="0"
Grid.Column="6"
Style="{StaticResource FieldHeader}"
Text="NumericUpDown" />

<TextBox Grid.Row="1" Grid.Column="1" />
<TextBox Grid.Row="2"
Expand Down Expand Up @@ -242,6 +247,7 @@
Grid.Column="5"
Style="{StaticResource MaterialDesignOutlinedTimePicker}" />

<materialDesign:NumericUpDown Grid.Row="1" Grid.Column="6"></materialDesign:NumericUpDown>
</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 @@ -90,6 +90,9 @@ private static void SetValue(Control control)
case TimePicker timePicker:
timePicker.SelectedTime = DateTime.Now;
break;
case NumericUpDown numericUpDown:
numericUpDown.Value = 0;
break;
default:
throw new NotSupportedException(control.GetType().FullName);
}
Expand Down