I want to add a DataBinding per Codebehind for an attached Property and want to show the Canvas.Left property in a TextBox. How do I add this property?
I want to add a DataBinding per Codebehind for an attached Property and want
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.
It’s somewhat unclear from your question, but I think you’re asking how one would bind to the attached property
Canvas.Leftand show it in a TextBox. I’ll assume you want it for a control other than the TextBox.Note the brackets around the attached property.
EDIT: To do the equivalent in code, use the following: