Wpf Grid Layout
is WPF grid layout with * width or column, heavy for UIs?
<Grid>
<Grid.ColumnDefinitions>
<Co开发者_StackOverflow中文版lumnDefinition Width="334" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
</Grid>
No, in general not. However if you have the combination of RowDefinitions with * and ColumnDefintions with *, this can lead to a performance penalty in big Grids. But this is very seldom. In fact, Grids with the length of * are one of the most used elements in WPF layouting.
精彩评论