Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
3,014 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Really? How very interesting. Thank you, Richard.