We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Multiple App.xaml in Solution

zstapic asked
Medium Priority
Last Modified: 2013-11-12
let's say I have a silverlight solution with three projects in it. First two are silverlight projects (application and web page for testing), and the third one is the project I added to be separated from the first two. When I define style and put it into App.xaml everything works just fine. My goal is to add another App.xaml (Silverlight Application Class) to the new project I created so I can have it all in one (classes and styles) project separated from the main silverlight projects (first two). I did it but it doesn't work, style is not applied and NewApp.Current.Resources.Count is zero even though i put style in it. If i put it back and adjust all headers to work, everything is fine again. What is my mistake?
Watch Question

instead of creating another app.xaml, you can use <resourcedictionary> in your a seperate xaml. your all styles will come between
<resourcedictionary> and </resourcedictionary> tags. and these will be root tags in your xaml.
and whereever you want to use it, you can merge this resourcedictionary.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.