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

Best way to do this ?

Thread ID:





92000 Dec 12,2009 09:12 AM UTC Dec 14,2009 04:08 PM UTC WPF 2
Tags: Tools
Tom Mann
Asked On December 12, 2009 09:12 AM UTC

Quick question, I have two RibbonGallery Controls and I set both there Itemssource to the same arraylist of ribbonGalleryItems,

Private RibbonItems as ArrayList

Dim I as RibbonGalleryItem
Dim gallery1 as RibbonGallery
Dim gallery2 as RibbonGallery


gallery1.itemssource = RibbonItems
gallery2.itemssource = RibbonItems

what is the best way to handle the Click event of I so that it goes to different events for each gallery ?

Tom Mann
Replied On December 13, 2009 03:14 PM UTC

I've found a work around for the minute which works, which is by rather than handling the click event of the GalleryItem is to handle the SelectionChanged event of the Gallery.

Padmaja Rajaram [Syncfusion]
Replied On December 14, 2009 04:08 PM UTC

Hi Tom,

You can use EventSetters for achieving your requirement.

Here the code snippet for handling click event of RibbonGalleryItem for each RibbonGallery.

Hope this helps.

Please let me know if you have any other concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the 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