Hi,
I'd like to managed a dwg file as a ressource in my application, that would be integrated into my dll. (without copying it)
As I use a RessourceDictionnary for my Ribbon, in order to manage images, that would be nice if i could add my dwg file as a ressource.
Here is an example for an image :
I declare my image into the Ressource Dictionnary in XAML
{code}
{code}
I use my ressource in C#
{code}
Image = MyRessourceDictionnary["KeyImage"] as BitmapImage;
{code}
I was wondering how It would be with a DWG file :
{code}
{code}
{code}
MyFile = MyRessourceDictionnary["Myfile"] as MY_TYPE;
{code}
What is the best solution for the type MY_TYPE ?
***
Is there a better way to integrate a dwg file as a ressource ?
Thank you.
Edited by: wperaud on Jun 26, 2009 1:49 PM