locked
[UWP][XAML]ColumnDefinitions Width=Star Not Working RRS feed

  • Question

  • I have a Grid with the following ColumnDefinitions:
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*" MinWidth="360"/>
      <ColumnDefinition Width="*" MinWidth="360"/>
      <ColumnDefinition Width="*" MinWidth="360"/>
    </Grid.ColumnDefinitions>
    In this Grid, I have 2 Grids & a ScrollViewer. However, these 2 Grids & ScrollViewer do not have the same Width (not even the 2 Grids). Isn't Width="*" supposed to make them the same size? Am I misunderstanding what the * means? Do I need to do something else that I am forgetting? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Saturday, September 5, 2015 2:59 PM

Answers

  • I guessing you maybe competing with your minWidth. * will be trying to equally divide the content but if the result is less that 360 then min width will probably win out. Do you get the same result when you take off the MinWidth?

    http://pauliom.wordpress.com

    Sunday, September 6, 2015 7:49 AM