diff --git a/samples/interop/Direct3DInteropSample/Direct3DInteropSample.csproj b/samples/interop/Direct3DInteropSample/Direct3DInteropSample.csproj index 7084bbf44f..54a816b0a9 100644 --- a/samples/interop/Direct3DInteropSample/Direct3DInteropSample.csproj +++ b/samples/interop/Direct3DInteropSample/Direct3DInteropSample.csproj @@ -20,6 +20,7 @@ + diff --git a/samples/interop/Direct3DInteropSample/MainWindow.cs b/samples/interop/Direct3DInteropSample/MainWindow.cs index c107afbe4a..1ff1e1938b 100644 --- a/samples/interop/Direct3DInteropSample/MainWindow.cs +++ b/samples/interop/Direct3DInteropSample/MainWindow.cs @@ -76,6 +76,7 @@ namespace Direct3DInteropSample this.GetObservable(ClientSizeProperty).Subscribe(Resize); Resize(ClientSize); AvaloniaXamlLoader.Load(this); + Background = Avalonia.Media.Brushes.Transparent; } @@ -258,6 +259,6 @@ namespace Direct3DInteropSample } - public override IRenderTarget CreateRenderTarget() => new D3DRenderTarget(this); + protected override IRenderTarget CreateRenderTarget() => new D3DRenderTarget(this); } } diff --git a/samples/interop/Direct3DInteropSample/MainWindow.paml b/samples/interop/Direct3DInteropSample/MainWindow.paml index 0a689e8a22..37c6265836 100644 --- a/samples/interop/Direct3DInteropSample/MainWindow.paml +++ b/samples/interop/Direct3DInteropSample/MainWindow.paml @@ -1,4 +1,4 @@ - + Rotation X