One TileViewItem always maximised

3 posts, 1 answers
  1. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 03 Jun 2010 Link to this post

    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:

    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.
  2. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 04 Jun 2010 Link to this post

    Hello jwhitley,

    Yes, there is a more elegant approach - you have only to set the MaximizeMode of the RadTileView to One. You can read more about this here.

    Regards,
    Viktor Tsvetkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 04 Jun 2010 Link to this post

    Why do you guys always have to go and spoil things when I think I'm being smart! Just kidding, thanks for the answer - I should have already found it.

    Cheers
Back to Top