如何在StandardStyles.xaml中定义基本体

如何在StandardStyles.xaml中定义基本体,xaml,windows-8,styles,.net-4.5,windows-store-apps,Xaml,Windows 8,Styles,.net 4.5,Windows Store Apps,我想定义双值,以便在许多UIElements <Double x:Key="MyWidth">100</Double> <String x:Key="MyString">This is my text</String> 它在运行时出现异常XAML解析失败。找不到类型“Double”。不需要包含系统命名空间。 <x:Double x:Key="MyWidth">100</x:Double> <x:String x:Ke

我想定义双值,以便在许多
UIElements

<Double x:Key="MyWidth">100</Double>
<String x:Key="MyString">This is my text</String>

它在运行时出现异常
XAML解析失败。找不到类型“Double”。

不需要包含
系统
命名空间。
<x:Double x:Key="MyWidth">100</x:Double>
<x:String x:Key="MyString">This is my text</x:String>
已包含一个命名空间
xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml“

<x:Double x:Key="MyWidth">100</x:Double>
<x:String x:Key="MyString">This is my text</x:String>
100
这是我的文本

出于某种原因,这不起作用。我得到了一个错误:“在Windows演示基金会(WPF)项目中不支持double。”