如果对象是圆形的,是否可以使z深度阴影变为圆形?
图片:
代码:
<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>