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 » Tag property of gallery item image Collapse All
Subject Author Date
Keith Jeram Nov 8, 2011 - 3:41 AM

I can set the Tag property of an Elegant.Ui.Gallery item image in the Gallery Item Collection Editor, but when I try to read the image Tag in code it returns null.


In my code the gallery item is obtained using


Elegant.Ui.GalleryItem item = (Elegant.Ui.GalleryItem)BulletsGallery.Items[BulletsGallery.Items.IndexOf(BulletsGallery.SelectedItem)];


This returns the item as expected, but reading the image Tag using


item.Image.Tag


returns null (the image is not null).


Could you explain why this is please. I am using ribbon v 4.2. 

Many thanks.


Technical Support Nov 21, 2011 - 1:11 PM

This happens because image properties that you assign in the designer are not serialized. Set the Tag property for you gallery items images in runtime so it will work.