I've placed a masked numeric input control onto a user control we're working on. When I run the app I get the following error:
System.Windows.Markup.XamlParseException occurred
HResult=-2146233087
Message='Set property 'Telerik.Windows.Controls.RadMaskedInputBase.FormatString' threw an exception.' Line number '291' and line position '48'.
Source=PresentationFramework
LineNumber=291
LinePosition=48
StackTrace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
InnerException: System.FormatException
HResult=-2146233033
Message=Format specifier was invalid.
I'm sure I've done something wrong, but am not sure what. Here's what the XAML looks like right now:
What we're trying to do is have the user enter a 6 digit integer value. The data type is an int (in C#), and SQL Server data type is also an int. So, what's the error of my ways?
System.Windows.Markup.XamlParseException occurred
HResult=-2146233087
Message='Set property 'Telerik.Windows.Controls.RadMaskedInputBase.FormatString' threw an exception.' Line number '291' and line position '48'.
Source=PresentationFramework
LineNumber=291
LinePosition=48
StackTrace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
InnerException: System.FormatException
HResult=-2146233033
Message=Format specifier was invalid.
I'm sure I've done something wrong, but am not sure what. Here's what the XAML looks like right now:
<
telerik:RadMaskedNumericInput
x:Name
=
"txtClientNumber"
FormatString
=
"D6"
MinWidth
=
"80"
Margin
=
"3,0"
VerticalContentAlignment
=
"Center"
FontSize
=
"15"
Value
=
"{Binding ClientNumber, UpdateSourceTrigger=PropertyChanged}"
Mask
=
"#6"
/>
What we're trying to do is have the user enter a 6 digit integer value. The data type is an int (in C#), and SQL Server data type is also an int. So, what's the error of my ways?