We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to detect the switching of RibbonTab in Ribbon?

To detect the Switching of the RibbonTab in Ribbon Control, the SelectionChanged event of Ribbon can be used. The same has been demonstrated in the following code example:


<syncfusion:Ribbon RibbonState="Normal" VerticalAlignment="Top" x:Name="_ribbon" SelectionChanged="_ribbon_SelectionChanged" >

<syncfusion:RibbonTab Caption="Mail" IsChecked="False" >

<syncfusion:RibbonBar Header="Acions">

<syncfusion:RibbonButton SizeForm="Small" Label="Copy Folder"/>

<syncfusion:RibbonButton SizeForm="Small" Label="Move Folder"/>

<syncfusion:SplitButton Label=" Split1 "  SizeForm="Large" >

<syncfusion:RibbonButton SizeForm="Small" Label="Mark to Download"/>

<syncfusion:RibbonButton SizeForm="Small" Label="UnMark to Download"/>





<syncfusion:RibbonTab Caption="Home" IsChecked="False" >

<syncfusion:RibbonBar Header="Properties">

<syncfusion:RibbonButton SizeForm="Small" Label="Policy"/>

<syncfusion:RibbonButton SizeForm="Small" Label="Folder Properties"/>

<syncfusion:RibbonButton SizeForm="Small" Label="Folder Permissions"/>




<syncfusion:RibbonTab Caption="Send/Receive" IsChecked="False" >

<syncfusion:RibbonBar Header="Report">

<syncfusion:RibbonButton SizeForm="Small" Label="ReportPolicy"/>

<syncfusion:RibbonButton SizeForm="Small" Label="ReportProperties"/>

<syncfusion:RibbonButton SizeForm="Small" Label="ReportPermissions"/>







 // Invoke on selection change of Ribbon Tab

private void _ribbon_SelectionChanged(object sender, SelectionChangedEventArgs e)


MessageBox.Show("Tab switched", "Message");




                                            Fig i: Screenshot shows the event called on switching the tab


Article ID: Published Date: Last Revised Date: Platform: Control:
8254 12/27/2017 12/27/2017 WPF Ribbon
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon