First off, congratulations on a great set of controls.
I'm using the TileView for a settings page, and I don't want users to be able to minimise all the tiles - ie. I always want one of the items to be maximised. I was able to do this from the TileStateChanged event handler with the following code on each TileViewItem:
This seems to work great, although it flips the minimised / maximised icon at the top right of the maximised window, which can look a little strange, although quite acceptable.
Is there a more elegant way of achieving the same?
Thanks.
I'm using the TileView for a settings page, and I don't want users to be able to minimise all the tiles - ie. I always want one of the items to be maximised. I was able to do this from the TileStateChanged event handler with the following code on each TileViewItem:
private void RadTileViewItem_TileStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e) |
{ |
Telerik.Windows.Controls.RadTileViewItem it = (Telerik.Windows.Controls.RadTileViewItem)e.OriginalSource; |
if (it.TileState == Telerik.Windows.Controls.TileViewItemState.Restored) |
{ |
e.Handled = true; |
} |
} |
This seems to work great, although it flips the minimised / maximised icon at the top right of the maximised window, which can look a little strange, although quite acceptable.
Is there a more elegant way of achieving the same?
Thanks.