Binding Issue
Posted: 13 Jun 2014, 21:45
Hello All,
I'm having trouble trying to get a simple binding to work. This code works fine in visual studio / blend and allocates only enough space for the row to house the label element. However, In unity, the same code makes the label take up half the grid. Am I doing something wrong? Is this a bug? Should I be going about this a different way? I really do not want to hard code a number.
I'm having trouble trying to get a simple binding to work. This code works fine in visual studio / blend and allocates only enough space for the row to house the label element. However, In unity, the same code makes the label take up half the grid. Am I doing something wrong? Is this a bug? Should I be going about this a different way? I really do not want to hard code a number.
Code: Select all
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{Binding Path=Height, ElementName=m_label}" />
<RowDefinition />
</Grid.RowDefinitions>
<Label Grid.Row="0" x:Name="m_label" Content="Test" />
</Grid>