gpt4 book ai didi

c# - 仅在 xaml 页面中出现 coding4fun 工具包错误

转载 作者:行者123 更新时间:2023-11-30 22:13:29 25 4
gpt4 key购买 nike

我需要使用coding4fun的TimeSPanPicker,因为我需要设置秒数。所以我从 nuGet 安装了这个包。如果我在 C# 代码中声明它,TimeSpanPicker 工作,但在 xaml 中我有这个错误:

enter image description here

我使用这个命名空间没有错误:

xmlns:c4fToolkit="clr-namespace:Coding4Fun.Phone.Controls;assembly=Coding4Fun.Phone.Controls"    

经典的 silverlight 工具包可以正常工作。

谢谢!

最佳答案

您使用的命名空间是错误的(它从 Coding4Fun.Phone 更改为 Coding4Fun.Toolkit 自 V2 以支持 Windows 应用商店应用程序)。

这是要使用的:

xmlns:c4fToolkit="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"

关于c# - 仅在 xaml 页面中出现 coding4fun 工具包错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19135903/

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