开发者

Wpf Grid Layout

开发者 https://www.devze.com 2023-03-26 14:04 出处:网络
is WPF grid layout with * width or column, heavy for UIs? <Grid> <Grid.ColumnDefinitions> <Co开发者_StackOverflow中文版lumnDefinition Width=\"334\" />

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

精彩评论

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