.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>

 ================================================================================================

 

posted @ 2013-06-17 00:05  碧风Befeng  阅读(1651)  评论(2编辑  收藏  举报