【发布时间】:2011-04-20 21:28:09
【问题描述】:
我正在尝试在我的 xaml 资源中创建一个可重复使用的 System:Char 值。
我有:
xmlns:s="clr-namespace:System;assembly=mscorlib"
然后:
<s:Char x:Key="MaskPromptChar">#</s:Char>
我得到一个例外:
The type 'Char' was not found. [Line: 8 Position: 44]
但是……我也有:
<s:Double x:Key="DefaultControlWidth">200</s:Double>
还有……
<s:String x:Key="ApplicationTitle">My Title</s:String>
String 和 Double 都可以正常工作。
想法??
【问题讨论】:
标签: c# silverlight xaml app.xaml