Apress-Visual CSharp 2010 Recipes A Problem Solution Approach_10
GetTemplateChild to find the button defined by its actual template. If this exists, it adds an event handler to the button’s Click event. The code for the control is as follows: using using using using System.Windows; System.Windows.Controls; System.Windows.Markup; Microsoft.Win32;