Articles in this section
Category / Section

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

1 min read

 

The items in the gallery control can be hidden, make it collapse or it can be visible. The following code snippet shows how the selected items of the gallery control can be hidden, collapsed or 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;

Syncfusion Inc.

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