【发布时间】:2021-10-08 07:35:15
【问题描述】:
我想在 ListBox 中检查 RadioButton 时捕获一个事件,我正在尝试使用 selectionChanged 事件,但它被延迟了,而且没有效果。有没有其他方法可以做到这一点?非常感谢!
<ListBox SelectionChanged="lstPlotter_SelectionChanged_1" x:Name="lstPlotter" Style="{StaticResource 0009}">
<RadioButton Content="DWG To PDF.pc3" Style="{StaticResource 0004}" IsChecked="True"/>
<RadioButton Content="AutoCAD PDF (High Quality Print).pc3" Style="{StaticResource 0004}"/>
<RadioButton Content="AutoCAD PDF (General Documentation).pc3" Style="{StaticResource 0004}"/>
<RadioButton Content="AutoCAD PDF (Smallest File).pc3" Style="{StaticResource 0004}"/>
<RadioButton Content="AutoCAD PDF (Web and Mobile).pc3" Style="{StaticResource 0004}"/>
</ListBox>
【问题讨论】:
-
您好,查看 RadioButton 的事件列表,您应该会看到“已检查”事件。
-
感谢@DarkTemplar 的帮助,但是有很多单选按钮,我无法选择每个。