ParsingMode in UWP Numeric TextBox
18 Nov 20181 minute to read
Value of the UWP Numeric TextBox gets parsed based on ParsingMode property. ParsingMode is of type Parsers which is enum of Double and Decimal. DefaultValue for ParsingMode is Double.
<Page xmlns:editors="using:Syncfusion.UI.Xaml.Controls.Input">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<editors:SfNumericTextBox x:Name="numericTextBox"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="250"
ParsingMode="Decimal"
Value="123.459999999999999999"/>
</Grid>
</Page>numericTextBox.ParsingMode = Syncfusion.UI.Xaml.Controls.Input.Parsers.Decimal;numericTextBox.ParsingMode = Syncfusion.UI.Xaml.Controls.Input.Parsers.DecimalThe
ParsingModeshould be set based on the data type. For example, if aDecimaltype property is bound to Value property of UWP Numeric TextBox, then theParsingModeshould be set asDecimal.
