Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Styles and Temp... » Controls » WPF   (RSS)
Sorry, but there are no more tags available to filter with.

How do I programmatically interact with template-generated elements? Part I

You may have a scenario that requires you to find an element within a ControlTemplate. To do that, you use Template.FindName. Say you have a simple ControlTemplate for a Button, like the following: < Style TargetType = " {x:Type Button} " > <
 
Page view tracker