2011-07-06 54 views
0

RibbonGroup需要3 RibbonRadioButton为下一个(第4)控件将被放置在下一个右列。如果我只有2个RibbonRadioButton并且下一个控制是TextBox,则TextBox会出现在2 RibbonRadioButton的下面。如何只有2个RibbonRadioButton?

如何在一列中自己少于3个RibbonRadioButton?

回答

0

我认为

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

是你所需要的。你也可以尝试玩宽度。

+0

将RibbonRadioButton或任何Ribbon控件放入正常的WPF控件(例如StackPanel)会使Ribbon控件有一些不可预知的缩进。大概是 – KMC

+0

。我从来没有使用功能区,我不明白,为什么正常的RadioButton不能放到RibbonGroup?你可以通过'ControlTemplate'改变它的外观来满足你的需求。这可能是错误的,但它是真实的逻辑,仅此而已。 – stukselbax