Get the size of the Maximized tile content panel

5 posts, 0 answers
  1. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 01 Aug 2011 Link to this post

    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!





     

     

     

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Aug 2011 Link to this post

    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

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 04 Aug 2011 Link to this post

    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

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 Aug 2011 Link to this post

    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:
    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 >>

  6. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 10 Aug 2011 Link to this post

    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


Back to Top
DevCraft banner