Articles in this section
Category / Section

How to set icon at the TopLeft position in WPF RibbonWindow?

1 min read

You can set the icon at the TopLeft position in RibbonWindow by using the Office2010Icon property.

XAML

<syncfusion:RibbonWindow x:Class="Office2010Icon_Ribbon.MainWindow"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       Office2010Icon="Resources/TitleIcon.png" 
       syncfusion:SkinStorage.VisualStyle="Office2013"
       xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
       WindowStartupLocation="CenterScreen"            
       Title="Office2010Icon_Ribbon" Height="350" Width="525" TitleTextAlignment="Center">
   <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="auto" />
         <RowDefinition Height="*" />
      </Grid.RowDefinitions>
      <syncfusion:Ribbon>
      </syncfusion:Ribbon> 
   </Grid>
</syncfusion:RibbonWindow>

The following screenshot illustrates that the icon has been aligned at the TopLeft position of RibbonWindow.

Set icon at topleft position of WPF RibbonWindow

View sample in GitHub.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied