WPF丝带ApplicationMenu对齐有关吗? [英] WPF Ribbon ApplicationMenu Alignment on the Right?

查看:223
本文介绍了WPF丝带ApplicationMenu对齐有关吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过教程去,在ribbon.ApplicationhMenu总是出现在屏幕的左边,而不是正确的,因为它在Office 2007中,涂料(在Windows 7),和写字板(在Windows 7)。

When going through a tutorial, the 'ribbon.ApplicationhMenu' always comes up on the left hand of the screen, rather than the right, as it does in Office 2007, Paint (on Windows 7), and WordPad (on Windows 7).

是否有某种方式来改变呢?

Is there some way to change this?

感谢您

(实例是在这里<一个href="http://cid-a45fe702de180b23.skydrive.live.com/self.aspx/Public/RibbonAnnoyance.png">http://cid-a45fe702de180b23.skydrive.live.com/self.aspx/Public/RibbonAnnoyance.png (新用户,我只能发布1超级链接))

(Example of the issue is here http://cid-a45fe702de180b23.skydrive.live.com/self.aspx/Public/RibbonAnnoyance.png (as a new user, I can only post 1 hyperlink))

推荐答案

感谢您的回复。是的,我现在用的是色带/ FluentUI从Office团队

Thank you for your reply. Yes, I am using the Ribbon / FluentUI from the Office Team

对不起,我无法登录到我创造约22小时前M.Ahrens账户(这不是一个OpenID之一,我不知道该如何登录,而一个OpenID,所以我我现在做我自己一个OpenID)。

Sorry, I was unable to log-on to the 'M.Ahrens' account that I create about 22 hours ago (it wasn't an OpenID one, and I am unsure how to log on without an OpenID, so I am now made my self an OpenID).

我无法张贴链接到教程previously(作为一个新用户只能发布1超级链接),但在这里它是: 的http://www.renevo.com/blogs/dotnet/archive/2009/02/10/your-first-wpf-ribbon-application.aspx

I was unable to post the link to the tutorial previously (as a new user can only post 1 hyperlink), but here it is: http://www.renevo.com/blogs/dotnet/archive/2009/02/10/your-first-wpf-ribbon-application.aspx

它不只是发生在本教程中,它发生在所有其他带状的应用程序,我做(包括Microsoft样本)。我已经试过了流动的:

It doesn't just happen in this tutorial, it happens in every other ribbon app that I make (including Microsoft samples). I have tried the flowing:

*的Horizo​​ntalAlignment =右

*HorizontalAlignment="Right"

* Horizo​​ntalContentAlignment =右

*HorizontalContentAlignment="Right"

*的F​​lowDirection =从右至左(使ApplicationMenu往右走,而是围绕切换栏)

*FlowDirection="RightToLeft" (makes the ApplicationMenu go to the right, but switches the columns around)

*默认

但它似乎并没有做出不同的ApplicationMenu仍对左右手边(除非我将窗口最大化)。

But it doesn't seem to make a different, the ApplicationMenu is still on the 'left' hand side (unless I maximize the window).

M.Ahrens

+++++++++++++++++++++++++

+++++++++++++++++++++++++

编辑(增加了code样品):

Edit (added a code sample):

<r:RibbonWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
    Height="400" Width="400">

    <DockPanel>
        <r:Ribbon DockPanel.Dock="Top">
            <r:Ribbon.ApplicationMenu>
                <r:RibbonApplicationMenu>
                </r:RibbonApplicationMenu>
            </r:Ribbon.ApplicationMenu>
        </r:Ribbon>
    </DockPanel>
</r:RibbonWindow>

这篇关于WPF丝带ApplicationMenu对齐有关吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆