WPF 为 RadioButton 使用触摸

WPF use touch for RadioButton

我在参数视图的 WPF/C# 上使用 RadioButton。我希望用户只选择 1 个选项,所以我使用 RadioButton 和 GroupName。它工作正常,但它只对点击事件有反应,而不是触摸...

有没有办法让触摸事件来控制我的按钮,或者我是否必须重新定义带有 touchDown 事件的 RadioButton 的所有默认行为?

这是我的单选按钮,即使我认为它们对我的问题没有用

<Viewbox Height="50">
    <RadioButton x:Name="imposerOrdreHaut" Content="Avec" IsChecked="True" GroupName="ordre" Padding="2"  Checked="RadioButtonChecked" />
</Viewbox>
<Viewbox Height="50">
    <RadioButton  Content="Sans" GroupName="ordre" Padding="2" Checked="RadioButtonChecked" />

最后我使用切换 "IsChecked=true" 的 touchDown 事件做到了,它会自动切换 false 其他按钮