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.

Best way to do this ?

Thread ID:

Created:

Updated:

Platform:

Replies:

92000 Dec 12,2009 04:12 AM Dec 14,2009 11:08 AM WPF 2
loading
Tags: Tools
Tom Mann
Asked On December 12, 2009 04:12 AM

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

so
Private RibbonItems as ArrayList

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

RibbonItems.Add(I)

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 ?
Cheers
Tom


Tom Mann
Replied On December 13, 2009 10:14 AM

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 11:08 AM

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.

Regards,
Padmaja

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.

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.

;