Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3305
I have a textbox in a template column. How do I get the Textbox to fill the cell?(Height/width)
posted

what is the xaml to get a text box in an Itemplate column to automatically fill the cell in the row

height and width?

Parents
No Data
Reply
  • 17559
    posted

    Hello nickeclipsys,

     

    I have been looking into your requirements and I can suggest you set the properties VerticalContentAlignment and HorizontalContentAlignment to Stretch for the template column in order to make the contained TextBox fill the entire space in the cell. In order to achieve this you can try the following snippet:

                    <ig:TemplateColumn VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"   Key="Name">

                        <ig:TemplateColumn.ItemTemplate>

                            <DataTemplate>

                                <TextBox Background="Red" />

                            </DataTemplate>

                        </ig:TemplateColumn.ItemTemplate>

                    </ig:TemplateColumn>

     

    If you need any further assistance on this, please feel free to ask.

Children