C# 如何只有两个RibbonRadioButton?

C# 如何只有两个RibbonRadioButton?,c#,wpf,ribbon-control,C#,Wpf,Ribbon Control,RibbonGroup需要3个RibbonRadioButton才能将下一个(第四个)控件放置在右下一列。如果我只有2个RibbonRadioButton,而下一个控件是TextBox,则TextBox将显示在2RibbonRadioButton下面 我怎么能在一列中拥有少于3个RibbonRadioButton呢 <StackPanel Orientation="Horizontal"> <Item1 /> <Item2 /> <

RibbonGroup
需要3个
RibbonRadioButton
才能将下一个(第四个)控件放置在右下一列。如果我只有2个
RibbonRadioButton
,而下一个控件是
TextBox
,则
TextBox
将显示在2
RibbonRadioButton
下面

我怎么能在一列中拥有少于3个RibbonRadioButton呢

<StackPanel Orientation="Horizontal">
    <Item1 />
    <Item2 />
    <Item3 />
</StackPanel>


这就是你需要的。您还可以尝试使用宽度。

将RibbonRadioButton或任何Ribbon控件放入普通WPF控件(例如StackPanel)中,可能会给Ribbon控件带来一些不可预知的缩进。我从来没有用过Ribbon,我不明白为什么普通的单选按钮不能放在RibbonGroup上?您可以通过
ControlTemplate
更改其外观,以满足您的需要。这可能是错误的,但这是真正的逻辑,仅此而已。