How can we access variable from one Xaml file in to another xaml file in a same project
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Xaml files don’t have variables. Do you mean variables in the code-behind of the Xaml file in a Silverlight Application?
If the so the answer is yes you simply expose a variable as a property:-
In the above example external code can read MyVariable but can’t write to it.
Having said that I’m gonna guess that is not what you are after but thats the problem when you only use a single sentence in your question. 😉