Textbox resizing

2 posts, 0 answers
  1. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 18 Mar 2014 Link to this post

    Hello

    I have a simple question:

    How can I keep the textbox close to the label after resizing the dataform?

    Check the attached image where Im showing 3 situations:

    1. The label and the textbox before resizing the form.
    2. I resize the form, and the textbox is resized but also moved away from the label.
    3. The way I wait my textbox to look like, despite the resized form, it is still in the same position.

    I have tried many things, but none solved my problem.
  2. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 21 Mar 2014 in reply to Maurício Link to this post

    Well, I found out. It was really simple.

    All you have to do is to extract the style of the DataFormDataField and set a MinWidth and a MaxWidth for the first column definition of the Grid.


  3. UI for WPF is Visual Studio 2017 Ready
Back to Top