开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜