【发布时间】:2016-10-18 01:38:41
【问题描述】:
这是一个简单的问题,也许很愚蠢,但我被困了几个小时......
我在 XAML 部分中有这个:
<ContentPage.Resources>
<ResourceDictionary>
<System:Uint32 x:Key="UintValue">50</System:Uint32>
</ResourceDictionary>
</ContentPage.Resources>
当然,要获得<System> 类型的访问权限,我有这行:
xmlns:System="clr-namespace:System;assembly=mscorlib"
但是,我有一个 XAML 解析异常。当我评论 <System:Uint32...</System:Uint32> 时,它可以工作。 #ButIDontHaveTheValue..
There is a link to the doc of Uint
Type | Range | Size | .NET Framework type
uint | 0 to 4,294,967,295 | Unsigned 32-bit integer | System.UInt32
所以如果我是对的,那么 Uint32 来自 System,所以我必须像 System:Uint32 一样引用它?
感谢您的帮助!
【问题讨论】: