I am following the tutorial here. Here is my xaml code:
<Window x:Class="warm6.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>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Ribbon x:Name="RibbonWin">
<!-- help icon on the right side -->
<Ribbon.HelpPaneContentTemplate>
<DataTemplate>
<RibbonButton SmallImageSource="images\help.png" />
</DataTemplate>
</Ribbon.HelpPaneContentTemplate>
<Ribbon.ApplicationMenu>
<RibbonApplicationMenu SmallImageSource="images\window.png">
<RibbonApplicationMenuItem Header="Open" ToolTipTitle="Application Menu"
ImageSource="images\window2.png"/>
<RibbonApplicationMenuItem Header="_Save"
ImageSource="images\save.png"/>
<RibbonSeparator/>
<RibbonApplicationMenuItem Header="_Close" ImageSource="images\close.png"/>
<RibbonApplicationMenu.AuxiliaryPaneContent>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="5" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<RibbonSeparator Grid.Row="0" Label="Recently Templates" />
</Grid>
</RibbonApplicationMenu.AuxiliaryPaneContent>
</RibbonApplicationMenu>
</Ribbon.ApplicationMenu>
<RibbonTab>
</RibbonTab>
</Ribbon>
</Grid>
</Window>
I find there is extra space above my ribbon window,like this:
Please help me improve it!
Use the RibbonWindow
instead of Window
<RibbonWindow x:Class="warm6.MainWindow">
<!-- Window Content -->
</RibbonWindow>