4

在哪里可以找到开发基于 WPF 功能区的应用程序的教程或步骤?Microsoft 页面Microsoft Ribbon for WPF October 201 0 不提供代码示例的任何文档。例如,它有一个名为 RibbonWindowWord.xaml 的代码示例:

<ribbon:RibbonWindow x:Class="RibbonWindowSample.RibbonWindowWord"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon"
    xmlns:local="clr-namespace:RibbonWindowSample"
    Title="RibbonWindowWord" Height="600" Width="1000"
    Closing="RibbonWindow_Closing">
    <local:UserControlWord x:Name="WordControl" />
</ribbon:RibbonWindow>

这里的编程方法是什么?显示基于 Ribbon 接口的教程的 channel9 页面都是为 c++ 程序员准备的。我正在寻找 C# 程序员的代码。有人可以指定资源并说出以前的 WPF codeplex 版本之间的区别:http ://wpf.codeplex.com/wikipage?title=Southridge%20Lab

channel9 页 http://channel9.msdn.com/blogs/yochay/a-lap-around-windows-7-new-scenic-ribbon http://channel9.msdn.com/Blogs/yochay/Windows-7-Ribbon -标记-概述

4

1 回答 1

1

The source code and 2 examples are on this page just download and install 'Microsoft Ribbon for WPF Source and Samples.msi'. Example just looks like one project but actually contains 2 of them to choose which one you want to run go to App.xaml and uncomment line

<Application x:Class="RibbonWindowSample.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="RibbonWindowWord.xaml">
<!--StartupUri="RibbonWindowMvvm.xaml">-->
    <Application.Resources>

     </Application.Resources>
</Application>

First example is showing how to create all controls in xaml and they are located in RibbonWindowWord.xaml second one is showing mvvm for ribbon RibbonWindowMvvm.xaml.

There are few differences between codeplex version and preview the most important for me is that they switch style to 2010 version and it requires some time to change all the colors.

I found only one Ribbon Feature Walkthrough this is for codeplex version but they are very similar and only Themes & Skins section is not adequate. If you need any other specific help just let me know (I've created different color Theme for ribbon in my project and I've used all the features e.g. contextual tabs). I've noticed this new version is not integrating with chrome library for WPF on Xp.

于 2011-01-22T14:54:36.000 回答