I have a Xaml file that does not have any code behind. I would like to have it reference another class in the same project for a boolean. How do I reference another classes objects (note those objects are static).
Thank you in advance.
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.
use the
x:Staticmarkup extension, for example (taken from MSDN):You’ll need to adjust this to suit your example (or include more information in the question).
Also note the following warning from the same MSDN page:
So, you might need to define a namespace such as