Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Ribbon2.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="MainWindow" Height="350" Width="525">
- <Grid>
- <Ribbon x:Name="RibbonWin" SelectedIndex="0">
- <!-- Help Pane, located at the right-hand side -->
- <Ribbon.HelpPaneContent>
- <RibbonButton Content="AAA"/>
- </Ribbon.HelpPaneContent>
- <!-- Quick Access Toolbar - located at the upper-left corner -->
- <Ribbon.QuickAccessToolBar>
- <RibbonQuickAccessToolBar>
- <RibbonButton x:Name ="Save" />
- <RibbonSplitButton x:Name ="Undo" >
- <RibbonSplitMenuItem Header="Undo 1" />
- <RibbonSplitMenuItem Header="Undo 2" />
- <RibbonSplitMenuItem Header="Undo 3" />
- </RibbonSplitButton>
- <RibbonSplitButton x:Name="Redo" >
- <RibbonSplitMenuItem Header="Redo 1" />
- <RibbonSplitMenuItem Header="Redo 2" />
- </RibbonSplitButton>
- </RibbonQuickAccessToolBar>
- </Ribbon.QuickAccessToolBar>
- <!-- Application Menu, located at the left-hand side (down arrow) -->
- <Ribbon.ApplicationMenu>
- <RibbonApplicationMenu KeyTip="F">
- <RibbonApplicationMenuItem Header="Options" />
- <RibbonApplicationMenuItem Header="Exit" />
- </RibbonApplicationMenu>
- </Ribbon.ApplicationMenu>
- <!-- Ribbon Tab #1: Home -->
- <RibbonTab Header="Home" KeyTip="H" >
- <!-- Home group-->
- <RibbonGroup x:Name="ClipboardGroup" Header="Home">
- <RibbonMenuButton Label="Paste" KeyTip="V" LargeImageSource="Images/paste.png">
- <RibbonMenuItem Header="Keep Text Only" KeyTip="T"/>
- <RibbonMenuItem Header="Paste Special..." KeyTip="S"/>
- </RibbonMenuButton>
- <RibbonButton Label="Cut" KeyTip="X" LargeImageSource=" Images/cut.png"/>
- <RibbonButton Label="Copy" KeyTip="C" LargeImageSource="Images/copy.png" />
- <RibbonButton Label="Format Painter" KeyTip="FP" />
- </RibbonGroup>
- <!-- Employee And Payroll group-->
- <RibbonGroup x:Name="Employee" Header="Employee And Payroll">
- <RibbonMenuButton Label="Employee" KeyTip="V">
- <RibbonMenuItem Header="Keep Text Only" KeyTip="T"/>
- <RibbonMenuItem Header="Paste Special..." KeyTip="S"/>
- </RibbonMenuButton>
- <RibbonButton Label="Save" KeyTip="X" LargeImageSource="Images/save.png" />
- <RibbonButton Label="Add" KeyTip="C" LargeImageSource="Images/add.png"/>
- </RibbonGroup>
- </RibbonTab>
- <!-- Ribbon Tab #2: -->
- <RibbonTab Header="Insert" KeyTip="I">
- </RibbonTab>
- <!-- Ribbon Tab #3: -->
- <RibbonTab Header="PageLayout" KeyTip="L">
- </RibbonTab>
- </Ribbon>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement