是否可能在窗口中出现多个不透明度?

时间:2012-04-18 13:38:39

标签: wpf xaml

我正在考虑这样的事情:

<Grid> <-- opacity is .5
    <Grid></Grid> <-- opacity is .9 (of total opacity, not relative to parent)
    <Grid></Grid> <-- opacity is .9
    <Grid></Grid> <-- opacity is .9
</Grid>

这可能吗?

1 个答案:

答案 0 :(得分:0)

管理另一个网格中的网格?

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition/>
        <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.ColumnSpan="3"><Grid> <-- opacity is .5 
    <Grid Grid.Column="0"></Grid>    <-- opacity is .9
    <Grid Grid.Column="1"></Grid>    <-- opacity is .9 
    <Grid Grid.Column="2"></Grid>    <-- opacity is .9 
</Grid>