如果对象是圆形的,是否可以使z深度阴影圆形?

时间:2019-05-25 15:09:33

标签: c# xaml uwp rounding shadow

如果对象是圆形的,是否可以使z深度阴影变为圆形?

图片:

enter image description here

代码:

<Grid Grid.Column="1" Background="{StaticResource PageContentAcrylicBrush}" Canvas.ZIndex="1" >
        <Grid x:Name="ContentLayout"/>

        <Grid Padding="32,64,32,32">
            <Grid.RowDefinitions>
                <RowDefinition Height="48"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <!-- TopBar -->
            <Grid>
                <Grid x:Name="TopBarBack" Background="White" CornerRadius="16" Shadow="{StaticResource TopBarShadow}" />
            </Grid>

            <!-- Content -->
            <Frame x:Name="ContentFrame" Grid.Row="1" />
        </Grid>
</Grid>

0 个答案:

没有答案