Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/WinUIEx/TransparentTintBackdrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ protected override Windows.UI.Composition.CompositionBrush CreateBrush(Windows.U
/// <inheritdoc />
protected override void OnTargetConnected(ICompositionSupportsSystemBackdrop connectedTarget, XamlRoot xamlRoot)
{
var inspectable = connectedTarget.As<IInspectable>();
var xamlSource = DesktopWindowXamlSource.FromAbi(inspectable.ThisPtr);
var hWnd = xamlSource.SiteBridge.SiteView.EnvironmentView.AppWindowId.Value;
ulong hWnd = xamlRoot.ContentIslandEnvironment.AppWindowId.Value;

monitor = new WindowMessageMonitor((IntPtr)hWnd);
monitor.WindowMessageReceived += Monitor_WindowMessageReceived;
Expand Down
Loading