The problem with your approach is that the TileStateChanged event is not fired for collapsed items. There are two ways to hide the item when minimized:
- You can set its MinimizeHeight to 1
- You can handle the PreviewTileStateChange and do something like this there:
sender, PreviewTileStateChangedEventArgs e)
var container = e.OriginalSource
indexOfHidenItem = 3;
var hiddenContainers =
(container.TileState == TileViewItemState.Maximized)
hiddenContainers.Visibility = System.Windows.Visibility.Collapsed;
(container.TileState == TileViewItemState.Restored)
hiddenContainers.Visibility = System.Windows.Visibility.Visible;
I can advise you to use the MinimizedHeight.
If you have further questions feel free to ask.
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!