.NET 4.5 WPF Ribbon
文/嶽永鹏
Visual Studio 2012 DO.NET 4.5 Ribbon 界面编程。
代码
==============================================================================================
<Grid>
<Custom:Ribbon>
<Custom:Ribbon.ApplicationMenu>
<Custom:RibbonApplicationMenu SmallImageSource="ms.jpg" >
<Custom:RibbonApplicationMenuItem Header="Hello _Ribbon"Name="MenuItem1"ImageSource="ms.jpg"/>
</Custom:RibbonApplicationMenu>
</Custom:Ribbon.ApplicationMenu>
<Custom:RibbonTab Name="HomeTab"Header="Home">
<Custom:RibbonGroup Name="Group1" Header="Group1">
<Custom:RibbonButton Name="Button1"LargeImageSource="ms.jpg"Label="Button1" />
<Custom:RibbonButtonName="Button2"SmallImageSource="ms.jpg"Label="Button2" />
<Custom:RibbonButtonName="Button3"SmallImageSource="ms.jpg"Label="Button3" />
<Custom:RibbonButton Name="Button4"SmallImageSource="ms.jpg"Label="Button4" />
</Custom:RibbonGroup>
</Custom:RibbonTab>
</Custom:Ribbon>
</Grid>
================================================================================================