Skip to content

Commit ec3061a

Browse files
committed
Make Child DataGrid take all available width to make UI bearable
1 parent db3e117 commit ec3061a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/UI/CodeMetrics/CodeMetricsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
</DataGrid.Columns>
164164
<DataGrid.RowDetailsTemplate>
165165
<DataTemplate>
166-
<DataGrid ItemsSource="{Binding Path=MemberResults}" AutoGenerateColumns="False" IsReadOnly="True">
166+
<DataGrid ItemsSource="{Binding Path=MemberResults}" AutoGenerateColumns="False" IsReadOnly="True" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid,AncestorLevel=1}}">
167167
<DataGrid.Columns>
168168
<DataGridTextColumn Header="Declaration" Binding="{Binding Path=Key.IdentifierName}" Width="*"/>
169169
<DataGridTextColumn Header="Lines" Binding="{Binding Path=Value.Lines}" Width="Auto"/>

0 commit comments

Comments
 (0)