Wpf 带状样品
我正在使用来自Microsoft的WPF ribbon CTP。Wpf 带状样品,wpf,office-2007,ribbon,Wpf,Office 2007,Ribbon,我正在使用来自Microsoft的WPF ribbon CTP。 然而,没有样本。我不知道从哪里开始。RibbonWindow没有功能区的属性。有人有有效的示例吗?如果您使用的是WPF功能区 MSDN文档中有关于如何使用每个组件的好例子 唯一的问题是,您需要更新视图以从RibbonWindow而不是Windows继承。除了这个问题,还有人能指出一篇用Office 07 Style'e标题栏覆盖XP标题栏的示例文章吗。(使用RibbonWindow!?)我可以看到大量的payfor功能区组
然而,没有样本。我不知道从哪里开始。RibbonWindow没有功能区的属性。有人有有效的示例吗?如果您使用的是WPF功能区 MSDN文档中有关于如何使用每个组件的好例子
唯一的问题是,您需要更新视图以从RibbonWindow而不是Windows继承。除了这个问题,还有人能指出一篇用Office 07 Style'e标题栏覆盖XP标题栏的示例文章吗。(使用RibbonWindow!?)我可以看到大量的payfor功能区组件,但没有使用Office Fluent UI功能区的示例?
<r:RibbonWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
x:Class="MainWindowView"
Title="MainWindowView" Height="300" Width="515">
<DockPanel>
<r:Ribbon DockPanel.Dock="Top">
<r:RibbonTab x:Name="tab1" Header="Tab1">
<r:RibbonGroup Header="Group1">
<r:RibbonButton x:Name="button1" Label="Button 1" LargeImageSource="/Images/button1.png" />
<r:RibbonButton x:Name="button2" Label="Button 2" LargeImageSource="/Images/button2.png"/>
<r:RibbonButton x:Name="button3" Label="Button 3" LargeImageSource="/Images/Button3.png"/>
</r:RibbonGroup>
<r:RibbonGroup Header="Group2">
<r:RibbonButton x:Name="button4" Label="Button 4" LargeImageSource="/Images/button4.png"/>
</r:RibbonGroup>
<r:RibbonGroup Header="Group 3">
<r:RibbonMenuButton Label="Button 5" LargeImageSource="/Images/button5.png" >
<r:RibbonButton x:Name="button6" Label="Button 6" SmallImageSource="/Images/button6.png"/>
</r:RibbonMenuButton>
<r:RibbonMenuButton Label="Button 7" LargeImageSource="/Images/button7.png" >
<r:RibbonButton x:Name="button8" Label="Button 8" />
</r:RibbonMenuButton>
</r:RibbonGroup>
</r:RibbonTab>
</r:Ribbon>
</DockPanel>
</r:RibbonWindow>