1.自定义控件
<UserControl x:Class="AAA.Control.CheckBoxList"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:loc="clr-namespace:AAA.ViewModel" Loaded="UserControl_Loaded"
xmlns:local="clr-namespace:AAA.Control">
<UserControl.Resources>
<loc:MultiArrayToBooleanConverter x:Key="multiArrayToBooleanConverter" />
</UserControl.Resources>
<ItemsControl x:Name="itemsControl" Background="Transparent">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border Padding="3">
<WrapPanel>
<CheckBox Click="CheckBox_Click" Tag="{Binding Path=Key}" Content="{Bindin