Import third party namespace (of a embedded DLL) into XAML

Thursday, July 10, 2014

I am trying to import a namespace of a DLL that is embedded to my EXE. I am using WPFtoolkit for this application so my XAML is accessing the namespace like this:



<Window
xmlns="http://ift.tt/o66D3f"
xmlns:x="http://ift.tt/mPTqtT"
xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" x:Class="Imperium.MainWindow"
Title="Imperium" Height="435" Width="510" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" Icon="http://packapplication:,,,/ExtFiles/Imp.ico" Closing="Window_Closing" MouseDown="Grid_MouseDown" WindowStyle="None" BorderThickness="1" BorderBrush="Black" Foreground="Black">


it works fine with the DLL being copied locally. But I want both DLL's to be embedded in my EXE. One of the two DLL's (WPFToolkit.dll) is no problem because it's not reference in the XAML, so the solution I used (see http://ift.tt/TVw3lv is working fine for this one).


However, the second dll (system.windows.controls.datavisualization.toolkit.dll) is giving me trouble.


any idea how I could do this?


thank you Steve







http://ift.tt/1rZ8Q0o