gpt4 book ai didi

c# - mscorlib.dll 命名空间在 Windows Phone 8.1 XAML 中不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 23:38:27 25 4
gpt4 key购买 nike

我在WP8.0中有一段代码如下

 xmlns:my="clr-namespace:System;assembly=mscorlib"

<my:String x:Key="OnlineImagesPageName">OnlineImages</my:String>
<my:Int32 x:Key="PeopleInsertLimit">5</my:Int32>
<my:Int32 x:Key="ShowsInsertLimit">2</my:Int32>

但是当我在 Windows Phone 8.1 Universal Apps 中使用这个片段时,“字符串”在我写的时候没有显示

<my:

在代码中,如何解决这个问题。

任何要更改的 namespace ,请指导我解决此错误。

最佳答案

根据我用的版本通用

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 <x:String>11</x:String>
<x:Bind></x:Bind>
<x:Boolean>true</x:Boolean>
<x:Double>1</x:Double>
<x:Int32>1</x:Int32>
<x:NullExtension></x:NullExtension>

根据目标,它随着 XAML 的历史而改变

关于c# - mscorlib.dll 命名空间在 Windows Phone 8.1 XAML 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29912169/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com