如何在Kaxaml中引用不同的DLL [英] How do I reference different DLLs in Kaxaml

查看:109
本文介绍了如何在Kaxaml中引用不同的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Kaxaml中使用DataGrid.如何引用工具包dll?

I want to work with a DataGrid in Kaxaml. How do I reference the toolkit dll?

推荐答案

在使用 clr-namespace/assembly 表示法在XAML中映射自定义类和名称空间时,您无法指定包含类但仅包含程序集名称的程序集(有关更多详细信息,请参见 MSDN ),因为在XAML编译期间必须通过项目文件链接所有引用的程序集.

When mapping custom classes and namespaces in XAML using the clr-namespace/assembly notation, you can't specify the path of the assembly containing the class but just the assembly's name (more details can be found on MSDN), since all referenced assemblies must be linked during the XAML compilation via the project file.

Kaxaml 不支持项目的概念,因为它不进行任何编译,而是进行任何编译通过使用 System.Windows.Markup.XamlReader 类动态地解析并实时呈现在编辑器中输入的XAML.

Kaxaml doesn't support the concept of a project since it doesn't do any compilation but rather dynamically parses and renders the XAML entered in the editor "on-the-fly" by using the System.Windows.Markup.XamlReader class.

这意味着在使用Kaxaml时,您只能引用.NET Framework的程序集中包含的类.

This means that when using Kaxaml you can only reference classes contained in the assemblies that are part of the .NET Framework.

这篇关于如何在Kaxaml中引用不同的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆