Set ControlTemplate Programmatically
Setting the ControlTemplate programmatically is just like using XAML because we have to use the XamlReader class. For example, here is the code to set a button's template, assuming that we want to set a button's template after it is ...
How to properly implement a template in a ListBox with Windows ...
Main page.xaml --> xmlns:local="clr-namespace:MyApp"
Original post: Set ControlTemplate Programmatically by at xaml template - Google Blog Search
Blog tag: Xaml editor
Technorati tag: Xaml editor