<local:CustomDataGrid Grid.Row="0" Height="200"
IsReadOnly="True" x:Name="dgCaseHistory"
AutoGenerateColumns="False">
<local:CustomDataGrid.RowDetailsTemplate>
<DataTemplate>
<Grid Background="Black" Height="{Binding ElementName=dgCaseHistory, Mode=TwoWay,Path=Height}">
<TextBlock Text="testestestest" />
</Grid>
</DataTemplate>
</local:CustomDataGrid.RowDetailsTemplate>
</local:CustomDataGrid>
views:
206answers:
1
A:
Try binding to the ActualHeight
property.
<Grid Height="{Binding ElementName=dgCaseHistory, Mode=TwoWay, Path=ActualHeight}">
<TextBlock Text="testestestest" />
</Grid>
If not, check the Output Window in Visual Studio for any DataBinding errors and update your question with those details.
bendewey
2010-03-02 05:12:26
I don't think you really want `Mode=TwoWay`
Gabe
2010-03-02 05:23:48
Still the same, not binding.
xscape
2010-03-02 06:06:11
it has no DataBinding errors
xscape
2010-03-02 08:37:33