Search code examples
xamlxaml-toolskaxaml

How do I reference different DLLs in Kaxaml


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


Solution

  • 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 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.

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