Hi, I am currently having problems with the RadMaskedNumericInput control not displaying the current bound value.
Here is the xaml for the control
This field is bound to the following property on viewmodel extending ViewModelBase
At runtime this Value is set to an integer in behind code yet the control displays 0.
I have stepped through the code and the correct integer value is being returned by the getter and can still be set correctly from the control, however it appears as though it cannot be set from behind code and the binding is not being updated.
Any suggestions are appreciated.
Here is the xaml for the control
<
telerik:RadMaskedNumericInput
Mask
=
""
HorizontalAlignment
=
"Stretch"
IsEnabled
=
"{Binding IsUpdatable}"
Value
=
"{Binding Value, Mode=TwoWay}"
SelectionOnFocus
=
"SelectAll"
TextMode
=
"PlainText" UpdateValueEvent="PropertyChanged"
maskedInput:MaskedInputExtensions.Maximum
=
"2147483646"
maskedInput:MaskedInputExtensions.Minimum
=
"0"
HorizontalContentAlignment
=
"Left"
>
<
telerik:RadMaskedNumericInput.EmptyContent
>
<
TextBlock
Text
=
"Enter a number"
FontStyle
=
"Italic"
IsHitTestVisible
=
"False"
Opacity
=
"0.5"
/>
</
telerik:RadMaskedNumericInput.EmptyContent
>
</
telerik:RadMaskedNumericInput
>
This field is bound to the following property on viewmodel extending ViewModelBase
public
Object Value {
get
{
return
this
.value; }
set
{
this
.value = value;
OnPropertyChanged(
"Value"
);
}
}
At runtime this Value is set to an integer in behind code yet the control displays 0.
I have stepped through the code and the correct integer value is being returned by the getter and can still be set correctly from the control, however it appears as though it cannot be set from behind code and the binding is not being updated.
Any suggestions are appreciated.