This demonstrates Cross Process Visuals by Ahmed Walid in the VirtualSurfaces composition sample from Microsoft. The result is two processes are able to display the same visual. One process (the “primary” process) creates a shared visual target and passes it to a new process (the “secondary” process) The secondary process creates the tile grid and handles interactions. It then sets the shared visual target to a RedirectVisual whose source is the root visual of the tile grid. By using a RedirectVisual and adding it as a VisualInteractionSource of the secondary process’s InteractionTracker, both processes respond to interaction.
- This sample uses internal APIs not meant for general public usage