I am creating an app which needs to support multiple brands. The majority of the underlying code is the same for each customer. The differences is only related to branding. The, the following components are customer specific:
Does anyone know the optimal way to accomplish this in Windows Phone 7 & 8? Particularly given the fact that the windows phone framework uses xaml and binding.
Thanks
Assuming you don't have a ton of different brands to support, I'd suggest just creating multiple projects and then linking the files between them. Something similar to how you support Windows Phone 7.5 and 8 with the same code base.
1) Create your base project with Brand A icons, logos. 2) Put your brand specific text in a resource file 3) Put your color schemes in a resource dictionary
When you're ready to create your next project you can either:
a) Just make a copy and update the images, text, and colors or b) Create another project and add the new images to it, add a new resource file, and create a separate resource dictionary, but link all the code and xaml files from the first project.
If you use method b it will mean you only have change your code and views once and it will update across projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With