学海无涯

导航

MaterialDesign 控件

为按钮添加阴影

<Button Width="250" materialDesign:ElevationAssist.Elevation="Dp5"
    Style="{StaticResource MaterialDesignRaisedButton}"
    ToolTip="MaterialDesignRaisedButton with Round Corners">

 画一条直线

            <Border Margin="30 0 30 0"  BorderBrush="DarkGray" BorderThickness="0 0 0 1"/>

设置右边框阴影

 <Border Background="#FFFFFF">
            <Border.Effect>
                <DropShadowEffect Color="#828282" BlurRadius="30" Opacity="0.1" ShadowDepth="20" Direction="0" >
                    
                </DropShadowEffect>
            </Border.Effect>
        </Border>

  

  

posted on 2023-01-02 12:02  宁静致远.  阅读(93)  评论(0编辑  收藏  举报