This is a migrated thread and some comments may be shown as answers.

One TileViewItem always maximised

2 Answers 48 Views
TileView
This is a migrated thread and some comments may be shown as answers.
jwhitley
Top achievements
Rank 1
jwhitley asked on 03 Jun 2010, 10:42 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tsvetkov
Telerik team
answered on 04 Jun 2010, 02:17 PM
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.
0
jwhitley
Top achievements
Rank 1
answered on 04 Jun 2010, 02:21 PM
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
Tags
TileView
Asked by
jwhitley
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
jwhitley
Top achievements
Rank 1
Share this question
or