Resource Allocation to WPF

Posted by Tushar under WPF on 3/19/2010 | Views : 1896 | Status : [Member] | Replies : 4
Hi friend

Here is my issue

I created my own WPF Theme(.xaml file)
I make Assembly of my WPF theme

I want to load the resource(Xaml file) from un-referenced assemblies (WPF Theme assembly)
so that when I update the assembly (WPF Theme assembly) no need to rebuilt the my application.

So I Want to Access the Xaml resource from un-referenced assemblies (WPF Theme assembly)
The un-referenced assemblies (WPF Theme assembly) May be placed in any where in local directory not in Debug Directory.

Bassically in Xaml file, there are different Style of WPF control...

Is it Possibel ?
How ?
Give God link...

Have Nice Time

Advance Thanks




Responses

Posted by: Abhi2434 on: 3/19/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Is this what you need ?

http://www.codeproject.com/KB/WPF/wpfdynamicthemes.aspx

You need to compile the Resource in separate dll, and use reflection to call

www.abhisheksur.com

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tushar on: 3/20/2010 [Member] Starter

Up
0
Down
Hi Abhi

Thanks...
But in Xaml file i use dataGrid control Style(that are coming in WPFtoolkit.dll)
so when i try your code
http://www.codeproject.com/KB/WPF/wpfdynamicthemes.aspx 0
it will not found the datagrid control because wr are not comlipe the file so the it will not found the WPFToolkit.dll
so the i make dll for my all the themes above isuue might be solve.....
But in that i facing the above my Post issue.....

Give me good Link
Have Nice time
Advance thanks

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 3/20/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
But what about taking reference of the WPFToolkit in the theme library.

It will compile and produce a dll. Of course, you need the dll in your folder where you deploy the themes.


www.abhisheksur.com

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tushar on: 3/22/2010 [Member] Starter

Up
0
Down
Hi Abhi

Thanks for Help....

Problem solved....

I have done some Silly Thing....

Now its ok
You told that
(But what about taking reference of the WPFToolkit in the theme library.

It will compile and produce a dll. Of course, you need the dll in your folder where you deploy the themes. )

ya, Now i got it....
again Thanks....
Have Nice Time


Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response