Giter Club home page Giter Club logo

Comments (5)

robmikh avatar robmikh commented on May 21, 2024 1

Unfortunately it looks like the only way to get this to work is to fake it. If you knew what content was to be underneath, you could manually apply the effects yourself using Win2D or D2D. However, that solution is imperfect and imposes constraints on what can be placed underneath the effect area without breaking the illusion.

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 21, 2024

The issue is that WPF composes all of its content into one surface. From the perspective of the system compositor, there is only one bitmap that we see. As such, we can only compose dcomp/WUC content above or bellow that bitmap. This is sometimes referred to as the "airspace problem".

If you could separate the content that is supposed to be "above" and "bellow" the visual, you could make this work. Unfortunately, I don't know off the top of my head how to achieve this in WPF.

from windows.ui.composition-win32-samples.

selastingeorge avatar selastingeorge commented on May 21, 2024

from windows.ui.composition-win32-samples.

selastingeorge avatar selastingeorge commented on May 21, 2024

So there is no way to do this. In .NET 4.5 they have introduced two properties to fix this aerospace problem, but it has been removed on the next releases.

1.3.10 Windows Presentation Foundation (WPF)

1.3.10.1 HwndHost feature has been removed from WPF in the .NET Framework 4.5 Beta

The .NET Framework 4.5 Developer Preview included a WPF HwndHost redirection feature. However, this feature had several known issues and has been removed from the .NET Framework 4.5 Beta. It will not be included in any future releases.

To resolve this issue:

No workaround is available.

from windows.ui.composition-win32-samples.

selastingeorge avatar selastingeorge commented on May 21, 2024

from windows.ui.composition-win32-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.