why does the popup shadows do not show?

Set AllowsTransparency="True" on your Popup:

<Popup PlacementTarget="{Binding ElementName=txtName}" Placement="Bottom" x:Name="AlertPopup" IsOpen="true" AllowsTransparency="True">
    <Border Margin="0,0,15,15" Background="#272C30" BorderBrush="#6C757D" BorderThickness="2" CornerRadius="10">
            <DropShadowEffect Color="Black" BlurRadius="25" Direction="315" ShadowDepth="15" Opacity="0.3"/>
        <TextBlock Padding="7" Foreground="#ADB5BD" Background="Transparent" FontSize="12"
    Text="The file name can't contain any of the following characters:&#x0a;\ / : * ? &quot; &gt; &lt; |"/>

This is what it will look like when you run it:

enter image description here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top