Skip to content

Shadow doesn't seem to be dropping on top of cards #647

Closed

Description

@Tyrrrz

Here's the setup. The toolbar (top part of the window) is a ColorZone and has ShadowAssist.Depth = Depth2. Looks fine and the shadow is correctly dropped on the scrollviewer's content.

2017-03-04 19_40_39-youtubeexplode demo

Now if you scroll down a bit, the shadow doesn't drop on top of the underlying card.

2017-03-04 19_40_48-youtubeexplode demo

I feel like I might be missing something, but not sure what exactly is wrong.

The window's XAML: https://github.com/Tyrrrz/YoutubeExplode/blob/master/YoutubeExplodeDemoWpf/Views/MainWindow.xaml#L38

Tell me if you need a bare-bones example set up.

Activity

  1. Keboo commented on Mar 6, 2017

    @Keboo
    Member

    Hi @Tyrrrz
    I suspect the problem has to do with the ZOrder of the items. The default values are inferred based on the order in the XAML.
    Try putting Panel.ZOrder="1" on the Toolbar ColorZone and Panel.ZOrder="0" on the Video info ScrollViewer and see if that resolves the issue. Alternatively you could reorder those items in the XAML.

  2. Tyrrrz commented on Mar 6, 2017

    @Tyrrrz
    ContributorAuthor

    @Keboo
    Thanks a lot, that did the trick. I never had to deal with layering in XAML, so I didn't know about that.
    Also the property name is Panel.ZIndex.

  3. Keboo commented on Mar 6, 2017

    @Keboo
    Member

    Ah yes, sorry about that. Glad it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions