Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I use themeresources.xaml as a resource of my theme in my application. I have several themeresourcesX.xaml (x=1,2,3,4etc) Each contains other styles etc.

How should I program button, to change code from App.xaml.vb
VB
Dim source As String = [String].Format("/Exercises;component/CustomTheme/ThemeResources.xaml")


to
VB
Dim source As String = [String].Format("/Exercises;component/CustomTheme/ThemeResources2.xaml")


Button will be placed in Settings.xaml page.
Is that possible to change code of another page ?

It is a windows phone application.
Posted
Updated 17-Dec-12 2:23am
v2

1 solution

Did you try the following?

Dim VALUE as integer
Dim source As String = [String].Format("/Exercises;component/CustomTheme/ThemeResources" & VALUE & ".xaml")



Where Value is a variable and you can set it what you like as long as its valid for an .xaml file you have.

I'm not 100% if it will work because the "Exercises;" kind of threw me off
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900