Good NumericUpDown equivalent in WPF? [closed] Good NumericUpDown equivalent in WPF? [closed] wpf wpf

Good NumericUpDown equivalent in WPF? [closed]


If commercial solutions are ok, you may consider this control set:WPF Elements by Mindscape

It contains such a spin control and alternatively (my personal preference) a spin-decorator, that can decorate various numeric controls (like IntegerTextBox, NumericTextBox, also part of the control set) in XAML like this:

<WpfElements:SpinDecorator>   <WpfElements:IntegerTextBox Text="{Binding Foo}" /></WpfElements:SpinDecorator>


add a textbox and scrollbar

in VB

Private Sub Textbox1_ValueChanged(ByVal sender As System.Object, ByVal e As System.Windows.RoutedPropertyChangedEventArgs(Of System.Double)) Handles Textbox1.ValueChanged     If e.OldValue > e.NewValue Then         Textbox1.Text = (Textbox1.Text + 1)     Else         Textbox1.Text = (Textbox1.Text - 1)     End IfEnd Sub