diff --git a/src/MaterialDesignDemo.Shared/Examples/NumericUpDown/BasicUsageExample.xaml b/src/MaterialDesignDemo.Shared/Examples/NumericUpDown/BasicUsageExample.xaml
index 4a69b691f8..a6903799df 100644
--- a/src/MaterialDesignDemo.Shared/Examples/NumericUpDown/BasicUsageExample.xaml
+++ b/src/MaterialDesignDemo.Shared/Examples/NumericUpDown/BasicUsageExample.xaml
@@ -30,7 +30,7 @@
-
+
diff --git a/src/MaterialDesignThemes.Wpf/TextFieldAssist.cs b/src/MaterialDesignThemes.Wpf/TextFieldAssist.cs
index 2a26e8529d..c33dd96df7 100644
--- a/src/MaterialDesignThemes.Wpf/TextFieldAssist.cs
+++ b/src/MaterialDesignThemes.Wpf/TextFieldAssist.cs
@@ -434,6 +434,14 @@ public static void SetTextBoxIsMultiLine(DependencyObject element, bool value)
public static bool GetTextBoxIsMultiLine(DependencyObject element)
=> (bool)element.GetValue(TextBoxIsMultiLineProperty);
+ internal static DependencyObject? GetTrailingContent(DependencyObject obj)
+ => (DependencyObject?)obj.GetValue(TrailingContentProperty);
+
+ internal static void SetTrailingContent(DependencyObject obj, DependencyObject? value) => obj.SetValue(TrailingContentProperty, value);
+
+ internal static readonly DependencyProperty TrailingContentProperty =
+ DependencyProperty.RegisterAttached("TrailingContent", typeof(DependencyObject), typeof(TextFieldAssist), new PropertyMetadata(null));
+
#region Methods
private static void IncludeSpellingSuggestionsChanged(DependencyObject element, DependencyPropertyChangedEventArgs e)
diff --git a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.NumericUpDown.xaml b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.NumericUpDown.xaml
index 7f3ec12a90..bbaf7730a6 100644
--- a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.NumericUpDown.xaml
+++ b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.NumericUpDown.xaml
@@ -13,7 +13,7 @@
TargetType="{x:Type ButtonBase}"
BasedOn="{StaticResource MaterialDesignFlatButton}">
-
+
@@ -47,77 +47,72 @@
-
-
-
-
-
-
+
+
+
+ Content="{TemplateBinding DecreaseContent}"
+ Foreground="{Binding ElementName=PART_TextBox, Path=Foreground}"
+ Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}"
+ Style="{DynamicResource NestedNumericUpDownButtonsStyle}" />
+ Content="{TemplateBinding IncreaseContent}"
+ Foreground="{Binding ElementName=PART_TextBox, Path=Foreground}"
+ Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}"
+ Style="{DynamicResource NestedNumericUpDownButtonsStyle}" />
-
-
+
+
@@ -178,16 +173,16 @@
BasedOn="{StaticResource MaterialDesignFloatingHintUpDownBase}" />
+ TargetType="{x:Type wpf:DecimalUpDown}"
+ BasedOn="{StaticResource MaterialDesignFloatingHintUpDownBase}" />
+ TargetType="{x:Type wpf:LongUpDown}"
+ BasedOn="{StaticResource MaterialDesignFloatingHintUpDownBase}" />
+ TargetType="{x:Type wpf:DoubleUpDown}"
+ BasedOn="{StaticResource MaterialDesignFloatingHintUpDownBase}" />