MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.17k stars 3.43k forks source link

materialDesign:Card's shadow does not work #735

Closed zhaiyuhan closed 3 years ago

zhaiyuhan commented 7 years ago

i use materialDesign:Card,i want use it's shadow effect,but it does not work like

ButchersBoy commented 7 years ago

Hi, I'm seeing this:

image

<UserControl>
    <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth5" Padding="32" Height="242" Width="283">
        <TextBlock Margin="32">Hello World</TextBlock>
    </materialDesign:Card>
</UserControl>

Could there be something above/around your card causing the shadow to clip? Can you most more XAML?

zhaiyuhan commented 7 years ago

Thank u very much