.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[C#][XAML] DWG file as a ressource in a Ressource DIctionnary

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
239 Views, 0 Replies

[C#][XAML] DWG file as a ressource in a Ressource DIctionnary

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
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost