diff --git a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml index d75622f1fb..2f422e2d64 100644 --- a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml +++ b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml @@ -2,7 +2,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=netstandard" x:Class="ControlCatalog.Pages.NumericUpDownPage"> - + Numeric up-down control Numeric up-down control provides a TextBox with button spinners that allow incrementing and decrementing numeric values by using the spinner buttons, keyboard up/down arrows, or mouse wheel. @@ -68,24 +69,36 @@ + - - Usage of NumericUpDown: - + + + + + + + + + + - NumericUpDown with Validation Errors: - - - - - - + + + + + + + + + diff --git a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml.cs b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml.cs index 31749edf08..5856194430 100644 --- a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml.cs +++ b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml.cs @@ -32,11 +32,26 @@ namespace ControlCatalog.Pages private FormatObject _selectedFormat; private IList _spinnerLocations; + private double _doubleValue; + private decimal _decimalValue; + public NumbersPageViewModel() { SelectedFormat = Formats.FirstOrDefault(); } + public double DoubleValue + { + get { return _doubleValue; } + set { this.RaiseAndSetIfChanged(ref _doubleValue, value); } + } + + public decimal DecimalValue + { + get { return _decimalValue; } + set { this.RaiseAndSetIfChanged(ref _decimalValue, value); } + } + public IList Formats { get