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

Height of Maximised Tile

2 Answers 61 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 23 Jul 2012, 03:08 PM
Hello,

If I have 3 restored tiles and then Maximise one of the tiles, the Maximised tile takes the combined height of the remaining two Minimised tiles which go to the right of my screen. Ideally I want to specify the height of the Maximised tile myself and then the Minimised tiles just scroll on the right hand side and do not dictate the height of the Maximised tile.

How is this achieved?

Thanks,

Alex

2 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 23 Jul 2012, 03:21 PM
On your demo this has been achieved by making the Height of the RadTileView the same as MinimisedRowHeight multiplied by the number of minimised tiles you want. In my example I have set the Height of the RadTileView to 390 and the MinimisedRowHeight 130. This gives me a static height of the Maximised tile regardless of how many minimised tiles there are, however 3 minimised tiles fit nicely.

Is this the best way to achieve this?
0
Zarko
Telerik team
answered on 26 Jul 2012, 08:30 AM
Hello Alex,
Currently there are two ways to set the height of a MaximizedItem - to set height to your whole RadTileView (as you've found out) or manually set height to the container of the MaximizedItem like this:
...
if (container.TileState == TileViewItemState.Maximized)
{
    container.Height = 500;
}
...
I've attached a sample project showing this so could you please examine it and if you have further questions feel free to ask.

All the best,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TileView
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or