I have placed a textblock in a slider thumb by Template editing. I want its value to be changed dynamically but the problem is I cant access that text box from code behind.
Any Solutions??
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.
if you give the
TextBlocka name, you could useVisualTreeExtensions.GetVisualDescendants()to search the visual tree until you find the element with the name and type you’re looking for.For example:
You’ll need to have a reference to the Silverlight Toolkit, namely
System.Windows.Controls.Toolkit.dll