Advertisement
andruhovski

RibbonDemo

Dec 10th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.35 KB | None | 0 0
  1. <Window x:Class="Ribbon2.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="MainWindow" Height="350" Width="525">
  5.     <Grid>
  6.         <Ribbon x:Name="RibbonWin"  SelectedIndex="0">
  7.             <!-- Help Pane, located at the right-hand side -->
  8.             <Ribbon.HelpPaneContent>
  9.                 <RibbonButton Content="AAA"/>
  10.             </Ribbon.HelpPaneContent>
  11.             <!-- Quick Access Toolbar - located at the upper-left corner -->
  12.             <Ribbon.QuickAccessToolBar>
  13.                 <RibbonQuickAccessToolBar>
  14.                    <RibbonButton x:Name ="Save" />
  15.                     <RibbonSplitButton x:Name ="Undo" >
  16.                         <RibbonSplitMenuItem Header="Undo 1" />
  17.                         <RibbonSplitMenuItem Header="Undo 2" />
  18.                         <RibbonSplitMenuItem Header="Undo 3" />
  19.                     </RibbonSplitButton>
  20.                     <RibbonSplitButton x:Name="Redo"  >
  21.                         <RibbonSplitMenuItem Header="Redo 1" />
  22.                         <RibbonSplitMenuItem Header="Redo 2" />
  23.                     </RibbonSplitButton>
  24.                 </RibbonQuickAccessToolBar>
  25.             </Ribbon.QuickAccessToolBar>
  26.             <!-- Application Menu, located at the left-hand side (down arrow) -->
  27.             <Ribbon.ApplicationMenu>
  28.                 <RibbonApplicationMenu KeyTip="F">
  29.                     <RibbonApplicationMenuItem Header="Options"  />
  30.                     <RibbonApplicationMenuItem Header="Exit" />
  31.                 </RibbonApplicationMenu>
  32.             </Ribbon.ApplicationMenu>
  33.             <!-- Ribbon Tab #1: Home -->
  34.             <RibbonTab Header="Home" KeyTip="H" >
  35.                 <!-- Home  group-->
  36.                 <RibbonGroup x:Name="ClipboardGroup" Header="Home">
  37.                     <RibbonMenuButton Label="Paste" KeyTip="V" LargeImageSource="Images/paste.png">
  38.                         <RibbonMenuItem  Header="Keep Text Only" KeyTip="T"/>
  39.                         <RibbonMenuItem  Header="Paste Special..." KeyTip="S"/>
  40.                     </RibbonMenuButton>
  41.                     <RibbonButton  Label="Cut" KeyTip="X"  LargeImageSource=" Images/cut.png"/>
  42.                     <RibbonButton  Label="Copy" KeyTip="C" LargeImageSource="Images/copy.png" />
  43.                     <RibbonButton Label="Format Painter" KeyTip="FP" />
  44.                 </RibbonGroup>
  45.                 <!-- Employee And Payroll group-->
  46.                 <RibbonGroup x:Name="Employee" Header="Employee And Payroll">
  47.                     <RibbonMenuButton  Label="Employee" KeyTip="V">
  48.                         <RibbonMenuItem  Header="Keep Text Only" KeyTip="T"/>
  49.                         <RibbonMenuItem  Header="Paste Special..." KeyTip="S"/>
  50.                     </RibbonMenuButton>
  51.                     <RibbonButton  Label="Save" KeyTip="X" LargeImageSource="Images/save.png" />
  52.                     <RibbonButton  Label="Add" KeyTip="C" LargeImageSource="Images/add.png"/>
  53.                 </RibbonGroup>
  54.             </RibbonTab>
  55.             <!-- Ribbon Tab #2: -->
  56.             <RibbonTab Header="Insert" KeyTip="I">
  57.             </RibbonTab>
  58.             <!-- Ribbon Tab #3: -->
  59.             <RibbonTab Header="PageLayout" KeyTip="L">
  60.             </RibbonTab>
  61.         </Ribbon>
  62.     </Grid>
  63. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement