What does AdornedElementPlaceholder exactly do when we use it in validation controlTemplate?
- 阅读更多 关于 What does AdornedElementPlaceholder exactly do when we use it in validation controlTemplate?
问题 After going through several articles and examples showing usage of AdornedElementPlaceholder i am still confused that what is the exact functionality it incorporates to xaml validation? 回答1: If you use Validations you need to show the user where (and what) failed to validated and that’s where AdornedElementPlaceholder comes into play. It is a Placeholder that has exactly the same size of the UIElement you’re validating. Let’s say you’re validating user input on a TextBox and want to show a