Click here to Skip to main content
15,888,142 members
Home / Discussions / WPF
   

WPF

 
QuestionCustomize Collection Editor Item Pin
Vinod C S9-Jan-09 3:45
Vinod C S9-Jan-09 3:45 
AnswerRe: Customize Collection Editor Item Pin
User 27100910-Jan-09 15:14
User 27100910-Jan-09 15:14 
AnswerRe: Customize Collection Editor Item Pin
User 27100911-Jan-09 6:16
User 27100911-Jan-09 6:16 
QuestionConfigurable Image Rotator needs code review Pin
johnsontroye9-Jan-09 3:40
johnsontroye9-Jan-09 3:40 
QuestionWPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 3:25
Bex_30009-Jan-09 3:25 
AnswerRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 3:59
Jammer9-Jan-09 3:59 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 4:10
Bex_30009-Jan-09 4:10 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 4:32
Jammer9-Jan-09 4:32 
The short glib answer is no! Wink | ;)

A single application (that loads the app.xaml and consequently the linked resource dictionaries) can be made up of multiple projects. A project in a solution is simply a dll. When a project is built it outputs a single dll or exe file. So one or more of those project may well be in the same application.

Would it be fair to assume that the solution your talking about actually contains multiple applications?

One thing you could do is move all of your styles into a single dll you can then put something like this in your app.xaml file in order to load all of the resource dictionaries and styles into each of the applications your trying to style ...

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/YourCompanyName.WPF.Styles;component/YourResourceDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>

This xaml file will of course contain one or more resource dictionaries. You could separate them into control for instance so you might have button.xaml, combobox.xaml etc ...

Then you just need to include a reference to this style project in each of the applications in the solution and you should be good to go.

Let me know if this is unclear and I'll try to put a demo together ...


GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 4:51
Jammer9-Jan-09 4:51 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 5:08
Bex_30009-Jan-09 5:08 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 5:21
Jammer9-Jan-09 5:21 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 5:29
Bex_30009-Jan-09 5:29 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 5:39
Jammer9-Jan-09 5:39 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
chefkokkie11-Feb-09 7:30
chefkokkie11-Feb-09 7:30 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 5:42
Jammer9-Jan-09 5:42 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 5:41
Bex_30009-Jan-09 5:41 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer9-Jan-09 5:43
Jammer9-Jan-09 5:43 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_30009-Jan-09 5:50
Bex_30009-Jan-09 5:50 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer10-Jan-09 5:54
Jammer10-Jan-09 5:54 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_300012-Jan-09 0:12
Bex_300012-Jan-09 0:12 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer12-Jan-09 22:42
Jammer12-Jan-09 22:42 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Bex_300012-Jan-09 23:47
Bex_300012-Jan-09 23:47 
GeneralRe: WPF Multiple Projects Resource Dictionary Pin
Jammer13-Jan-09 10:12
Jammer13-Jan-09 10:12 
QuestionMove a 3D object on screen. Pin
ParagGupta9-Jan-09 2:07
ParagGupta9-Jan-09 2:07 
QuestionTo format date in datagrid column in silverlight Pin
priyagee9-Jan-09 1:02
priyagee9-Jan-09 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.