Well how do i use a template on the TextBox and the PasswordBox atm i have 2 templates defined but thay contain exactly the same content….
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.
In the class hierarchy, both the controls have only ‘Control’ class in common. So you can make the ControlTemplate for the ‘Control’ and assign to both. But if you need to have any TextBox/PasswordBox specific TemplateBindings in the template, then this wont work out for you. For example this bellow template will work for both the controls.