Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate ResourceDictionary for each project type

I've created a ResourceDictionary in my Shared project without problem. However, some of my styles will be very particular* to Windows Phone 8.1 and not used in Windows 8.1. As there's no App.xaml in the Windows Phone project, how do I specify a ResourceDictionary just for Windows Phone?

*In addition to different sizes and margins, extensive use of PhoneAccentBrush which is obviously not available on Windows Store Apps.

Or, if the Shared ResourceDictionary is the preferred method, how do I use PhoneAccentBrush and other WP-only resources?

like image 365
Michael Itzoe Avatar asked Aug 23 '26 05:08

Michael Itzoe


1 Answers

As there's no App.xaml in the Windows Phone project

This can not be true. Application does not compiles without App.xaml. You may not I noticed it in the Shared project?

App.xaml

I do not see problem to move/copy to each project App.xaml

like image 74
IceFog Avatar answered Aug 25 '26 22:08

IceFog