The following code shows how the content template can be created and applied to a content control.
[XAML]
<DataTemplate x:Key='template1'>
<TextBlock Text='{Binding}' FontSize='12' FontWeight='Bold' TextWrapping='Wrap'></TextBlock>
</DataTemplate>
The above code can be applied as follows.
[XAML]
<Button ContentTemplate='{StaticResource template1}' Content='Click'>
Share with