ListView ItemContainerStyle Template
问题 I created style to be used as my ListView's item template that contains a CheckBox and a TextBlock: <Style x:Key="CheckBoxListStyle" TargetType="{x:Type ListView}"> <Setter Property="SelectionMode" Value="Multiple"></Setter> <Setter Property="ItemContainerStyle"> <Setter.Value> <Style TargetType="{x:Type ListViewItem}" > <Setter Property="Template"> ... The checkbox in the template is bound to the IsSelected property of the list view item: <CheckBox x:Name="itemCheckBox" Width="13" Height="13