Problem with Tile sizing

6 posts, 2 answers
  1. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 16 Jun 2011 Link to this post

    I'm haiving trouble with the TileView. It's bound to a collection of entites. These entities have image contents in them. When the application loads the TileView loads fine. But when I try to add a new item to the collection, the sizing of the tiles goes wonky. Could it be because the images in the collection are different sizes (height and width)? They won't ever be all the same size.
  2. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 16 Jun 2011 Link to this post

    A little more info...If I maximize the application, all my tiles resize evenly, but when I go back to normal, they return to their ugly, uneven sizes.

    This messed up resizing only happens when one tile is maximized. If they are all in restored mode, then adding a new one works just fine. But as soon as I maximize one, they go back to being all messed up. Even if I add while they are in restored mode initially, before trying to maximize one.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 16 Jun 2011 Link to this post

    Hi Rayne,
    I guess that you're experiencing this because of the MinimizedColumnWidth(MinimizedRowHeight). If your MinimizedItemsPosition is Left or Right (by default it's Right) you should set the MinimizedColumnWidth to some specific size like 250 and if the position is Bottom or Up you should set the MinimizedRowHeight.
    If you have more questions feel free to ask.

    Best wishes,
    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
  5. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 16 Jun 2011 Link to this post

    OK, this works. They aren't wonky sized anymore, but I'm not getting scrollbars, so when I keep adding items (or resize the window) the tiles get to where you can't see them because their height keep shrinking to fit them all in the space provided. I thought when I set this property, I would get scrollbars.
  6. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 16 Jun 2011 Link to this post

    Hello Rayne,
    If your MinimizedItemsPosition is Left or Right you should set the MinimizedRowHeight in order to see the scrollbars and if it's Top or Bottom you should set the MinimizedColumnWidth. So in your case you should set both properties ( one for the RadTileViewItems to have equal sizes and the other for the scrollbars).
    If you have further questions feel free to ask.

    Greetings,
    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
  7. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 16 Jun 2011 Link to this post

    Thank you. I finally got it working. I tried setting the MinimizedRowHeight previously to get scrollbars, but it was cutting off some of the tile. Maybe I just needed to set both.
Back to Top
UI for WPF is Visual Studio 2017 Ready