Hello @BitSmithy ,
So, You confirm that it is rather x:Bind problem than my mistake, and walkthrought is needed?
You just didn't do the string to double conversion in your code, in UWP you can use more appropriate controls.
According to the current scenario, it is recommended that you use WinUI2 Number box. NumberBox.Text and NumberBox.Value make it easy to capture the value of a NumberBox as a String or as a Double without needing to convert the value between types. When programmatically altering the value of a NumberBox, it is recommended to do so through the Value property. Value will overwrite Text in initial set up. non-numeric characters through Text.
<NumberBox Value="{x:Bind Path=ViewModel.NumberBoxValue, Mode=TwoWay}" />
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.