WPF RibbonGroup对齐

时间:2019-04-09 08:38:42

标签: wpf xaml ribbon

我有一个RibbonTab,其中包含6个RibbonGroups。 我找不到将右后两个RibbonGroups对齐的方法。

这是我的Ribbon

的代码
<Ribbon Grid.Row="0" x:Name="MainRibbon" Margin="0,-47,0,0" DockPanel.Dock="Top">
    <RibbonTab x:Name="Stacker01" Header="Stacker-01" KeyTip="H">
        <RibbonGroup>
            <RibbonButton Name="Home" Label="Home" LargeImageSource="Icons/Home.png" Click="Home_Click"  ></RibbonButton>
        </RibbonGroup>
        <RibbonGroup>
            <RibbonButton Name ="Printer" Label="Printer" LargeImageSource="Icons/Printer.png" Click="Printer_Click"/>
        </RibbonGroup>
        <RibbonGroup>
            <RibbonButton Name ="Entry" Label="Entry" LargeImageSource="Icons/Entry.png" Click="Entry_Click"/>
        </RibbonGroup>
        <RibbonGroup>
            <RibbonButton Name ="Out" Label="Out" LargeImageSource="Icons/Out.png" Click="Outgo_Click"/>
        </RibbonGroup>
        <RibbonGroup>
            <RibbonButton Name ="Help" Label="Help" LargeImageSource="Icons/Help.png" Click="Help_Click"/>
        </RibbonGroup>
        <RibbonGroup>
            <RibbonButton Name ="Close" Label="Close" LargeImageSource="Icons/Exit.png" Click="Exit_Click"/>
        </RibbonGroup>
    </RibbonTab>
</Ribbon>

我希望帮助小组和密切小组与其他人分开来。

0 个答案:

没有答案