我可以像我使用常規Grid
一樣使用WPF DataGrid
控件嗎?
我該怎麼做,但使用DataGrid
而不是使用標準Grid
?WPF DataGrid as regular Grid
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="182" />
<ColumnDefinition Width="360" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0">
Configuration Software:
</Label>
<TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Software.Name}"/>
</Grid>