I am trying to create a reusable value System:Charin my resources xaml.
I have:
xmlns:s="clr-namespace:System;assembly=mscorlib"
Then:
<s:Char x:Key="MaskPromptChar">#</s:Char>
I get an exception:
The type 'Char' was not found. [Line: 8 Position: 44]
But ... I also have:
<s:Double x:Key="DefaultControlWidth">200</s:Double>
AND...
<s:String x:Key="ApplicationTitle">My Title</s:String>
Both Stringand Doubleare working properly.
Ideas ??
source
share