Articles in this section

How can I hide, collapse, or make an item visible in the GalleryControl?

 

The items in the gallery control can be hidden, collapses, or made visible. The following code snippet shows how the selected items of the gallery control can be hidden, collapsed, or made visible.

[C#]

//setting the selected item visibility to collapsed 
(myGallery.SelectedItem.SelectedItems[0] as GalleryItem).Visibility = Visibility.Collapsed;
 
//setting the selected item visibility to hidden 
(myGallery.SelectedItem.SelectedItems[0] as GalleryItem).Visibility = Visibility.Hidden;
 
//setting the selected item visibility to visible
(myGallery.SelectedItem.SelectedItems[0] as GalleryItem).Visibility = Visibility.Visible;


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied