Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransparentTintBackdrop System.InvalidCastException: 'Specified cast is not valid.' #207

Closed
ghost1372 opened this issue Jan 14, 2025 · 2 comments · Fixed by #208
Closed

Comments

@ghost1372
Copy link
Contributor

TransparentTintBackdrop is working fine in v1.7-EXP1
however it is not working with v1.7-EXP2 and get an exception

System.InvalidCastException: 'Specified cast is not valid.'

protected override void OnTargetConnected(ICompositionSupportsSystemBackdrop connectedTarget, XamlRoot xamlRoot)
{
    var inspectable = connectedTarget.As<IInspectable>();
ghost1372 added a commit to ghost1372/WinUIEx that referenced this issue Jan 14, 2025
@ghost1372 ghost1372 mentioned this issue Jan 14, 2025
@AlexanderBlackman
Copy link

I got this problem too.

Here are the new Microsoft.UI.Composition apis added in 17-ex2

CompositionNotificationDeferral
CompositionProjectedShadow
    MaxOpacity
    MinOpacity
    OpacityFalloff

CompositionProjectedShadowCaster
    AncestorClip
    Mask

CompositionProjectedShadowDrawOrder
CompositionProjectedShadowReceiver
    DrawOrder
    Mask

@dotMorten
Copy link
Owner

IMHO this is a regression in EXP2, and I'd encourage you to report it in their repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants