Windows 8 WinRT/Win8 Metro中的XAML原语

Windows 8 WinRT/Win8 Metro中的XAML原语,windows-8,microsoft-metro,windows-runtime,winrt-xaml,Windows 8,Microsoft Metro,Windows Runtime,Winrt Xaml,有人能够在WinRT中的XAML中添加原语吗?我正在尝试运行以下程序,这是除WinRT之外的所有基于XAML的技术的标准程序: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="using:System">

有人能够在WinRT中的XAML中添加原语吗?我正在尝试运行以下程序,这是除WinRT之外的所有基于XAML的技术的标准程序:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System="using:System">

    <System:Double x:Key="MyWidth">550</System:Double>

</ResourceDictionary>

550
这不会在Visual Studio中显示错误,但它将抛出一个XamlParseException,并显示一条消息“找不到类型“Double…”


谢谢

系统类型的命名空间已替换为“x”

<x:Double>550</x:Double>
550

说真的,谢谢。正是这些微小的、愚蠢的、不必要的更改,使得Win8开发对于WPF/Silverlight开发人员来说非常令人沮丧。