[UWP]将十进制数绑定到TextBox? [英] [UWP]Binding a Decimal to a TextBox?
问题描述
你好,
当我有一个带有十进制值的类和一个XAML页面时,正确的方法是什么?
谢谢你
Markus
< blockquote>
当我尝试使用转换器
< Page.Resources>
; < local:StringToDecímalConverterx:Key =" StringToDecimalConverterKey" />
< /Page.Resources>
然后错误
错误 XDG0008 名称"StringToDecímalConverter""命名空间中不存在"using:P19.Entry_Nutrition"。 P19 Entry_Nutrition_Page.xaml 11
。但智能感知在键入本地后确实显示了 StringToDecímalConverter:
Hello,
what is the right way to do this when i have a class with decimal values and a XAML Page?
Thank you
Markus
When i try a Converter
<Page.Resources>
<local:StringToDecímalConverter x:Key="StringToDecimalConverterKey" />
</Page.Resources>then the error
Error XDG0008 The name "StringToDecímalConverter" does not exist in the namespace "using:P19.Entry_Nutrition". P19 Entry_Nutrition_Page.xaml 11is shown. But IntelliSense did show the StringToDecímalConverter after typing the local:
这篇关于[UWP]将十进制数绑定到TextBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!