gpt4 book ai didi

c# - 来自 WPFToolkit 的控件在命名空间中不存在

转载 作者:可可西里 更新时间:2023-11-01 07:55:09 26 4
gpt4 key购买 nike

我添加了对 WPFToolkit.dll 的引用,并在我的 .xaml 文件中添加了以下行:

xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WpfToolkit"

在下一行之前:

xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"

两种情况都一致

<toolkit:NumericUpDown Value="10" Increment="1" Maximum="10" Minimum="0" />

我有错误:

Error 1 The tag 'NumericUpDown' does not exist in XML namespace 'http://schemas.microsoft.com/wpf/2008/toolkit'. Line 20 Position 18. C:\Users\Diament\Documents\Visual Studio 2008\Projects\MyBasicFlyffKeystroke\MyBasicFlyffKeystroke\Window.xaml 20 18 MyBasicFlyffKeystroke

问题出在哪里? :(

最佳答案

我遇到了完全相同的问题。

如果我跳过解锁步骤并简单地解压缩,xaml 预览窗口将不会加载并且 VS 会继续给我“命名空间中不存在 IntegerUpDown 组件 http://schemas.xceed.com/wpf/xaml/toolkit” ' 错误,即使自动完成会愉快地列出该命名空间中的所有组件。

但是,如果我先取消阻止 zip 文件,然后解压缩,然后在 VS 中引用 dll,一切都可以正常工作。

TL;DR:遵循 installation instructions 完全,特别是首先解封 zip 文件。

关于c# - 来自 WPFToolkit 的控件在命名空间中不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11298435/

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