Skip to content

AttachedCardShadow not working (WinUI 3 WinAppSDK 1.0 Preview 3) #4364

@wbokkers

Description

@wbokkers

Describe the bug

I can't get the AttachedCardShadow to work in WinUI 3 Windows App SDK 1.0 Preview 3.

Steps to Reproduce

Using Windows App SDK 1.0 Preview 3 and WinUI 3,
And given this XAML:

   xmlns:ui="using:CommunityToolkit.WinUI.UI"
    xmlns:media="using:CommunityToolkit.WinUI.UI.Media">

     <Border Height="100" Width="100">
        <Border CornerRadius="8"
                BorderBrush="White" Background="LightGreen" BorderThickness="1">
           
        </Border>
        <ui:Effects.Shadow>
            <media:AttachedCardShadow CornerRadius="8"
                                    Offset="4,4"/>
        </ui:Effects.Shadow>
    </Border>

I get the following result:
image

Alas, no shadow.

Expected behavior

I would expect a shadow to appear

Environment

image
image

NuGet Package(s):

Package Version(s):

Windows 10 Build Number:

  • [ x] 19043.1320

App min and target version:

Min: 17763
Target: 19041

Device form factor:

  • [ x] Desktop

Visual Studio version:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.bug 🐛An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions