我在网格中有许多复选框,我必须检查是否选中了任何复选框,然后它将打印名称,例如 - MsgBox(“CheckboxName”)。
<Grid Height="179" Width="290" Name="Checksum_Collection" >
<CheckBox Content="Alder32" Height="20" Name="Alder32CheckBox" />
<CheckBox Content="BsdChecksum" Height="20" Name="BsdChecksumCheckBox"/>
<CheckBox Content="CRC16" Height="20" Name="CRC16CheckBox"/>
<CheckBox Content="Damm" Height="20" Name="DammCheckBox"/>
<CheckBox Content="Fletcher" Height="20" Name="FletcherCheckBox" />
<CheckBox Content="LRC" Height="20" Name="LRCCheckBox" />
<CheckBox Content="Luhn" Height="20" Name="LuhnCheckBox"/>
<CheckBox Content="MD5 Hash" Height="20" Name="MD5CheckBox"/>
</Grid>