XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a DataTemplate defined thus:
<DataTemplate x:Key="CopyColumnHeaderTemplate">
<StackPanel Orientation="Horizontal">
<Label Content="{Binding}"/>
<CheckBox VerticalContentAlignment="Center" IsChecked="{Binding CopyFilter}"/>
</StackPanel>
</DataTemplate>
and a DataGridTemplateColumn
<DataGridTemplateColumn
Width="Auto"
CellTemplate="{StaticResource ToCopyCell}"
Header="Copy"
HeaderTemplate="{StaticResource CopyColumnHeaderTemplate}" />
The CopyFilter binding shows no issues with my ViewModel (extending ObservableObject), but when I check the check box the following code is no executed:
partial void OnCopyFilterChanged(bool value)
{
throw new Exception();
}
Any ideas what I have missed?
David