Skip to content

Commit 50adf5c

Browse files
committed
Fix for WPF transparent rendering
1 parent 6a36d7b commit 50adf5c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Samples/Islands/WpfCalculator/CalculatorDemo/WpfIslandHost.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
using Microsoft.UI.Composition;
2-
using Microsoft.UI.Content;
1+
using System;
32
using System.Runtime.InteropServices;
43
using System.Windows.Interop;
54

5+
using Microsoft.UI;
6+
using Microsoft.UI.Composition;
7+
using Microsoft.UI.Content;
8+
69
namespace CalculatorDemo
710
{
811
internal class WpfIslandHost : HwndHost
@@ -39,7 +42,8 @@ protected override void DestroyWindowCore(HandleRef hwnd)
3942

4043
Microsoft.UI.Composition.Compositor _compositor;
4144

42-
#region P/Invokes
45+
#region P/Invokes
46+
4347
const int GWL_EXSTYLE = -20;
4448
const int WS_EX_LAYERED = 0x00080000;
4549

@@ -54,6 +58,7 @@ public static extern bool SetWindowLongPtr(
5458
IntPtr hWnd,
5559
int nIndex,
5660
IntPtr dwNewLong);
57-
#endregion
61+
62+
#endregion
5863
}
5964
}

0 commit comments

Comments
 (0)