views:

531

answers:

3

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

+1  A: 

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.

Enrico Campidoglio
+3  A: 
  1. Copy WPFToolkit.dll to "C:\Program Files\Kaxaml\"
  2. Restart Kaxaml

Now you can use such namespace:

xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
alex2k8
A: 

Ok, that works indeed. But my custom controls are now shown in a KAXAML. Any ideas?