构建基于WPF色带的应用程序的步骤
-
16-10-2019 - |
题
在哪里可以找到开发基于WPF功能区应用程序的教程或步骤? Microsoft页面, Microsoft Ribbon WPF 10月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>
这里的编程方法是什么?在基础接口上显示教程的通道9页全部适用于C ++程序员。我正在寻找C#程序员的代码。有人可以指定资源并说明以前的WPF Codeplex版本之间的差异: http://wpf.codeplex.com/wikipage?title=southridge%20LAB
频道9页http://channel9.msdn.com/blogs/yochay/a-lap-around-windows-7-new-scenic-ribbon http://channel9.msdn.com/blogs/yochay/windows-7-ribbon-markup-overview
解决方案
源代码和2个示例已打开 这一页 只需下载并安装“用于WPF源和samples.msi”的“ Microsoft Ribbon”。示例看起来像一个项目,但实际上包含其中2个可以选择要运行的一个项目
<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>
第一个示例是显示如何在XAML中创建所有控件,并且它们位于RibbonWindowWord.xaml第二个示例中,第二个显示了功能区功能带Windowmvvm.xaml的MVVM。
Codeplex版本和预览之间几乎没有差异,对我来说最重要的是它们将样式切换到2010年版本,并且需要一些时间来更改所有颜色。
我只找到一个 色带功能演练 这是针对CodePlex版本的,但是它们非常相似,只有主题和皮肤部分不足。如果您需要任何其他特定的帮助,请告诉我(我在项目中为功能区创建了不同的颜色主题,并且我使用了所有功能,例如上下文选项卡)。我注意到这个新版本没有与XP上的WPF的Chrome库集成。