本文介绍了WPF功能区未正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我刚刚开始使用从 [ ]



安装完成后,它会将自己置于VS 2012工具箱中。然后我创建了应用程序。



XAML的来源是:



Hi all,

I''ve just started to play with Microsoft WPF Ribbon libraray (October 2010, 3.5.41019.1) which downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=11877[^]

After install, it puts itself into VS 2012 toolbox. Then I create the app.

The source of XAML is:

<r:RibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" x:Class="WpfApplication1.MainWindow" Title="MainWindow" Height="480" Width="640">
    <DockPanel>
        <r:Ribbon DockPanel.Dock="Top" Title="Title...">
            <r:Ribbon.ApplicationMenu>
                <r:RibbonApplicationMenu>
                    <r:RibbonApplicationMenuItem />
                </r:RibbonApplicationMenu>
            </r:Ribbon.ApplicationMenu>
        </r:Ribbon>
    </DockPanel>
</r:RibbonWindow>





但如截图所示( []),窗口不像示例中那样;窗口图标附近没有菜单。例如: []但是例子说,仅在放置色带后,我必须看到类似的窗口。



当我下载以前的版本(3.5.31016.1)时,一切都是好的。



两个版本之间有区别吗?或者,我错过了什么?



But as seen in the screenshot (http://imageshack.us/photo/my-images/29/25761938.png/[^]), window is not look like as in the examples; no menu near window icon. Ex: http://uxpassion.com/wp-content/uploads/2008/11/06_simple_ribbon_interface-625x468.png[^] But examples said, after putting ribbon only, I must see similiar window.

When I downloaded previous version (3.5.31016.1) everything is ok.

Is there a difference between two versions? Or, am I missing something?

推荐答案

public partial class MainWindow : RibbonWindow







顺便说一句:我在我正在开发的应用程序中也尝试了MS Ribbon。

然后我看到了这个控件:



它比MS功能区免费且易于使用。



问候,

Max




BTW: I tried the MS Ribbon myself too in the app I am currently developing.
Then I saw this control: Fluent Ribbon Ctrol Suite

It is free and much easier to use than the MS Ribbon.

Regards,
Max


这篇关于WPF功能区未正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 23:27