I know that in the past it wasn't possible to bind a decimal data type to a textbox in a UWP app. You had to use float instead. Is that restriction still true?
I know that in the past it wasn't possible to bind a decimal data type to a textbox in a UWP app. You had to use float instead. Is that restriction still true?
Hello,
Welcome to our Microsoft Q&A platform!
I tried to create a decimal variable and simple binding:
xaml
<Grid>
<TextBox Text="{x:Bind value}"/>
</Grid>
xaml.cs
public decimal value = 10;
public MainPage()
{
this.InitializeComponent();
}
It can be displayed successfully, so the It can be displayed successfully, so the TextBox
should be able to bind decimal data. should be able to bind decimal data.
Thanks
9 people are following this question.