Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Re-select Item event for Gallery Collapse All
Subject Author Date
Pavel Murashov Oct 27, 2010 - 1:24 AM

 


How can I get a message to re-select an item in the Elegant.Ui.Gallery?


Event SelectedItemChanged() occurs only when select another element in the galleries.


If the gallery has status "Expanded", it is possible that method:



private void gallery_PreviewMouseClick(object sender, PreviewMouseEventArgs e)

{

     if (e.Target.GetType().ToString() == "Elegant.Ui.GalleryItemControl")

        DoSomething();

}


 



But for a gallery with the status (informativeness level) "DropDown" message PreviewMouseClick does not come.


Is there a way to get the right message to me for DropDown gallery?




Thanks.

Pavel Murashov Oct 27, 2010 - 11:49 PM

Difficult =). 

But it works, thanks.

Technical Support Oct 27, 2010 - 6:46 AM

You should use the same event of the gallery drop-down items container as follows:

((Elegant.Ui.Control)gallery1.Popup.Child).PreviewMouseClick += my_handler;