Not sure to be honest, I’ve tried various things to try and clear the background like this:
public class HelloWorldGame : Game
{
protected override async Task LoadContent()
{
await base.LoadContent();
RenderSystem.Pipeline.Renderers.Add(new RenderTargetSetter(Services)
{
ClearColor = SiliconStudio.Core.Mathematics.Color.Transparent
});
…SwapChainPanel is always black so it looks like something else needs clearing?
I tried this too but has the same effect:
protected override bool BeginDraw()
{
GraphicsDevice.Clear(GraphicsDevice.BackBuffer, Color.Transparent);
GraphicsDevice.Clear(GraphicsDevice.DepthStencilBuffer, DepthStencilClearOptions.DepthBuffer); // only clear the depth buffer
return base.BeginDraw();
}
I think transparency should work, this example (cpp) has a highlighter panel which overlays other xaml:
https://code.msdn.microsoft.com/windowsapps/XAML-SwapChainPanel-00cb688b/sourcecode?fileId=99187&pathId=1569374273
Thanks