简体   繁体   English

不能包含扩展的 WPF-Toolkit

[英]Can't include extended WPF-Toolkit

I would like to use the extended wpf toolkik( https://wpftoolkit.codeplex.com/ ) but I am too stupid to include it.我想使用扩展的 wpf 工具库( https://wpftoolkit.codeplex.com/ ),但我太愚蠢了无法包含它。

I followed these steps:我按照以下步骤操作:

  1. Reference the binaries in your project:引用项目中的二进制文件:
    Reference WPFToolkit.Extended.dll in your project (Xceed.Wpf.DataGrid.dll for the datagrid control)在您的项目中引用 WPFToolkit.Extended.dll(数据网格控件的 Xceed.Wpf.DataGrid.dll)
  2. Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files在 .cs 文件的顶部添加 using 语句(“using Xceed.Wpf.Toolkit;”对于大多数控件,“using Xceed.Wpf.DataGrid;”对于数据网格控件)
  3. Add a new xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" for most of the controls, xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" for the datagrid control) to the top of XAML files为大部分控件添加一个新的 xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit",xmlns:xcdg="http://schemas.xceed.com/wpf/xaml /datagrid”(用于数据网格控件)到 XAML 文件的顶部

The using-statement in the cs-file is working! cs 文件中的 using 语句正在工作! But in my xaml-file I can´t find the toolkit!但是在我的 xaml 文件中我找不到工具包!

I added this: xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"我添加了这个: xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
but this namespace does not exist.但是这个命名空间不存在。

so what are I am doing wrong?那我做错了什么?

As @rshepp points out in the comments, it's much easier to install the WPF Toolkit by Nuget package.正如@rshepp 在评论中指出的那样,通过 Nuget 包安装 WPF 工具包要容易得多。

Go to Tools -> Nuget Package Manager -> Package Manager Console.转到工具 -> Nuget 包管理器 -> 包管理器控制台。

Type Install-Package Extended.Wpf.Toolkit in the console window.在控制台窗口中键入Install-Package Extended.Wpf.Toolkit

I wouldn't use the codeplex version any more.我不会再使用 codeplex 版本了。 There are newer versions available at GitHub and they can be easyly installed from VS. GitHub 上有更新的版本,可以从 VS 轻松安装。

Fork of WpfExToolkit (except Xceed Avalon Dock) on GitHub GitHub 上 WpfExToolkit 的分支(Xceed Avalon Dock 除外)

Name at nuget: DotNetProjects.Extended.Wpf.Toolkit nuget 上的名称: DotNetProjects.Extended.Wpf.Toolkit

Fork of AvalonDock (formerly in Xceed WpfExToolkit) on GitHub GitHub 上 AvalonDock 的分支(以前在 Xceed WpfExToolkit 中)

As of September 2020 the free version of the original Xceed Toolikit does not contain the DataGrid and the AvalonDock any more.截至 2020 年 9 月,原始 Xceed Toolikit 的免费版本不再包含 DataGrid 和 AvalonDock。 The version 3.8 ist still downloadble and usuable in any projects. 3.8 版仍可下载并可在任何项目中使用。 The version 4.0 must not be used in commercial projects.不得在商业项目中使用 4.0 版本。

Orignal Xceed Toolkit (3.8 and the newer versions) Orignal Xceed Toolkit(3.8 及更新版本)

Xceed announces that the version 3.8 will be only available until December 31st, 2020 Xceed 宣布 3.8 版本仅提供至 2020 年 12 月 31 日

To clarify the situation and give everyone the advance notice that should have been given before changing our licensing model, we have decided to re-publish the last version of the Extended Toolkit (v3.8) as per the initial MS-PL license with the original terms, until December 31st, 2020. This will be the last version to be released under such license, and the next release will be under our new community license, which only allows non-commercial use.为了澄清情况并在更改我们的许可模式之前提前通知所有人,我们决定根据初始 MS-PL 许可重新发布扩展工具包 (v3.8) 的最新版本原始条款,直到 2020 年 12 月 31 日。这将是在此类许可下发布的最后一个版本,下一个版本将在我们新的社区许可下发布,仅允许非商业用途。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM