我目前正在构建一个将用于触摸屏的UI.因此,我想将任何RadioButton组显示为ToggleButtons的水平行.我已经想出了如何显示ToggleButtons而不是标准项目符号:
<Style x:Key="{x:Type RadioButton}"
TargetType="{x:Type RadioButton}"
BasedOn="{StaticResource {x:Type ToggleButton}}">
Run Code Online (Sandbox Code Playgroud)
但是,这将显示一列 ToggleButtons,而不是一行.你知道一个简单的方法吗?
非常感谢!