We are back on trying your suite, and we have encountered a little situation with the RadMaskedNumericInput
If the user enter any number, and then selects all the content and press DEL or Backspace, it shows "0" (thats what we want). BUT, if the user then selects all the content again and again press DEL or Backspace, then the text is empty, although the Value property still is 0. We want that everytime that the content is deleted, allways the maskedinput shows "0" (or 0.00 if its double / decimal)
The steps:
1) input any numer: 4587
2) Shift+home to select all
3) DEL to delete (it shows 0, OK!)
4) shit+home to select all, again
5) DEL to delete (it should show 0, but it is empty! BAD!)
Here is a simple App:
If the user enter any number, and then selects all the content and press DEL or Backspace, it shows "0" (thats what we want). BUT, if the user then selects all the content again and again press DEL or Backspace, then the text is empty, although the Value property still is 0. We want that everytime that the content is deleted, allways the maskedinput shows "0" (or 0.00 if its double / decimal)
The steps:
1) input any numer: 4587
2) Shift+home to select all
3) DEL to delete (it shows 0, OK!)
4) shit+home to select all, again
5) DEL to delete (it should show 0, but it is empty! BAD!)
Here is a simple App:
<
Window
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"WpfApplication3.MainWindow"
xmlns:maskedInput
=
"clr-namespace:Telerik.Windows.Controls.MaskedInput;assembly=Telerik.Windows.Controls.Input"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadMaskedNumericInput
Grid.Column
=
"0"
IsClearButtonVisible
=
"False"
UpdateValueEvent
=
"PropertyChanged"
SpinMode
=
"PositionAndValue"
Mask
=
"#4"
Culture
=
"es-AR"
HorizontalAlignment
=
"Left"
Margin
=
"3"
maskedInput:MaskedInputExtensions.AllowNull
=
"False"
maskedInput:MaskedInputExtensions.Maximum
=
"7500"
maskedInput:MaskedInputExtensions.Minimum
=
"0"
AllowInvalidValues
=
"False"
x:Name
=
"MyMasked"
/>
<
TextBlock
Text
=
"{Binding ElementName=MyMasked,Path=Value}"
Grid.Column
=
"1"
/>
<
Button
Grid.ColumnSpan
=
"2"
Grid.Row
=
"1"
Content
=
"SAVE"
/>
</
Grid
>
</
Window
>