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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change Tab event

Thread ID:

Created:

Updated:

Platform:

Replies:

83281 Jun 24,2009 01:12 PM UTC Jun 30,2009 03:27 PM UTC WPF 2
loading
Tags: Tools
Anton De Gruchy
Asked On June 24, 2009 01:12 PM UTC

What event do I use to tell me the RibbonTab has changed and how do I know when RibbonTab is selected.


Administrator [Syncfusion]
Replied On June 26, 2009 12:22 PM UTC

The Ribbon is a Selector. Its children are RibbonTabs. So listen for the event SelectionChanged. For example:


private void MyRibbon_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.AddedItems.Count != 1)
{
throw new ArgumentException("MyRibbon_SelectionChanged: e.AddedItems.Count != 1");
}

RibbonTab tab = e.AddedItems[0] as RibbonTab;
if (tab != null)
{
// Do something
}
}


Kind regards,
Daniel Rose
EXAPT Systemtechnik GmbH

Balavasanth [Syncfusion]
Replied On June 30, 2009 03:27 PM UTC


Hi Anton,

Thanks for your interests in Syncfusion products.

We really thank Daniel Rose for posting his update in this thread. As Daniel said you can make use of the Selection Changed event of the Ribbon to tell the RibbonTab has been changed. For knowing when the RibbonTab is selected you can make use of the IsChecked property of the Ribbon Tab to achieve your requirement.

Please let us know if you have any questions.

Regards,
Bala.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;