Results 1 to 2 of 2

Thread: Resizing a user control while keeping its content arranged

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    33

    Resizing a user control while keeping its content arranged

    I'm using a uniform grid, into which I place a number of user controls.
    Each user control has labels in it, arranged in a certain way.
    When I add a user control to the uniform grid, it starts off in its maximum size and then as I add more user controls, they each become smaller automatically in order to fit in the grid.

    The problem is that although the user control itself is resized, the labels inside it are not, so that when the user control reaches a certain size, some or all of the labels are not visible anymore on the control.

    Is there any way to automatically rearrange/resize the labels within a user control so that when the control is resized, the labels will still be neatly arranged and visible?

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Resizing a user control while keeping its content arranged

    Maybe you can post a screenshot to show whats happening to make it clearer? but my first question is: cant you just use a WrapPanel or set the labels TextWrap property to Wrap to make the labels wrap to the next line if the space they are in gets too small?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width