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

Unable to set TileState = "Maximized"

1 Answer 94 Views
TileView
This is a migrated thread and some comments may be shown as answers.
azhar
Top achievements
Rank 1
azhar asked on 06 Apr 2011, 05:29 PM
Hi Telerik Team,
    Currently I've installed RadControls_for_WPF35_2011_1_0315_Dev.msi (Version : 2011.1.315.35) and I'm not able to use the TileState = "Maximized" property in RadTileViewItem, it shows error in design itself.

The following is the error it displays:
Layout measurement override of element 'Telerik.Windows.Controls.TileViewPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.

The error comes if the window's height or width is set as "Auto". I didn't face this problem while i was using the version 2010.3.1304.40.

The following is the code I'm using:

<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 

Title="MainWindow" Height="Auto" Width="Auto">

<Grid Height="Auto" Width="Auto">

<telerik:RadTileView MinimizedItemsPosition="Right" MinimizedColumnWidth="300" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<telerik:RadTileViewItem TileState="Maximized"/>

 

 

<telerik:RadTileViewItem />

 

 

</telerik:RadTileView>

 

 

</Grid>
</Window>

 

 


Please let me know how to overcome this issue, since I need to set "Auto" for Height and Width in my Application.

Thanks and Regards,
Azharshah H

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 07 Apr 2011, 12:07 PM
Hi azhar,

 The RadTileView can't measure itself with height infinity if there's a maximized item and the minimized position is Left or Right (by design the MaximizedItem fills the space that is given to it and it can't fill Infinity). You'll have to set Height or MaxHeight to the RadTileView or to some of its parents - the Grid or the Window.
If you have more questions don't hesitate to ask. 

Regards,
Zarko
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
Tags
TileView
Asked by
azhar
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or