Pregunta

¿Dónde puedo encontrar tutoriales o pasos para desarrollar aplicaciones basadas en cinta de WPF? La página de Microsoft, cinta de Microsoft para WPF octubre 201 0 no proporciona ningún documento de los ejemplos de código. Por ejemplo, se tiene un ejemplo de código llamado 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>

¿cuál es la metodología de programación aquí? Las páginas Channel9 que muestra tutoriales sobre interfaces basadas en la cinta son todos para programadores de C ++. Busco código para programadores de C #. Alguien puede especificar los recursos y contar las diferencias entre la versión anterior WPF CodePlex: http: // WPF. codeplex.com/wikipage?title=Southridge%20Lab

páginas Channel9 http://channel9.msdn.com / blogs / Yochay / a-vuelta-around-windows-7-nueva-escénica-cinta http://channel9.msdn.com/Blogs/yochay/Windows -7-Ribbon-markup-general

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top