I can not find the size of the maximized tile's content panel anywhere in the objectmodel, how can i get the size of the maximized tile's content panel?
I will run the TileView in an OOB. The tileview will resize automatically as the OOB is resized, so i need to be able to get the size of the maximized tile when that happens too... even if there is no current maximized item when the form is being resized!
4 Answers, 1 is accepted
0
Hi Peter,
The Maximized items don't have a specified size, their size depends on the available space. Basically there are two properties that control the MinimizedRow/MinimizedColumn sizes - MinimizedColumnWidth, MinimizedRowHeight. By default their value is 1*. So basically the maximized item's size depends on the minimized items' size and what area the Minimized row/column takes from the RadTileView control.
All the best,
Tina Stancheva
the Telerik team
The Maximized items don't have a specified size, their size depends on the available space. Basically there are two properties that control the MinimizedRow/MinimizedColumn sizes - MinimizedColumnWidth, MinimizedRowHeight. By default their value is 1*. So basically the maximized item's size depends on the minimized items' size and what area the Minimized row/column takes from the RadTileView control.
All the best,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
HDC
Top achievements
Rank 1
answered on 04 Aug 2011, 07:27 PM
Hi Tina,
Thanks for the information.
Is it possible to calculate that space from codebehind and if so how could i code that?
Best Regards,
Peter
Thanks for the information.
Is it possible to calculate that space from codebehind and if so how could i code that?
Best Regards,
Peter
0
Hello Peter,
Basically once an item is maximized you can see its actual size using the RadTileView.MaximizedItem property which holds the maximized item. for example you can try something like this:
However, I am not sure if this approach would be the best option for your scenario. This is why I wanted to ask you to elaborate on your scenario a bit more. That will help us better understand it and better guide you in its implementation.
Regards,
Tina Stancheva
the Telerik team
Basically once an item is maximized you can see its actual size using the RadTileView.MaximizedItem property which holds the maximized item. for example you can try something like this:
private
void
RadTileView_TilesStateChanged(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
RadTileView tileView = sender
as
RadTileView;
double
height = (tileView.MaximizedItem
as
RadTileViewItem).ActualHeight;
double
width = (tileView.MaximizedItem
as
RadTileViewItem).ActualWidth;
}
However, I am not sure if this approach would be the best option for your scenario. This is why I wanted to ask you to elaborate on your scenario a bit more. That will help us better understand it and better guide you in its implementation.
Regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
HDC
Top achievements
Rank 1
answered on 10 Aug 2011, 06:02 AM
Hi Tina,
I no longer need this information.
I have managed to solve my problem using a contentpresenter and a converter for which i found examples in other posts of the forum.
Thanks for you effort anyway.
Best Regards,
Peter
I no longer need this information.
I have managed to solve my problem using a contentpresenter and a converter for which i found examples in other posts of the forum.
Thanks for you effort anyway.
Best Regards,
Peter