microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.37k stars 682 forks source link

TabView TearOutTabs: Event args NewWindowID property's value is zero #10156

Open DHancock opened 1 week ago

DHancock commented 1 week ago

Describe the bug

In the event handler for the TabTearOutWindowRequested event you return the AppWindow.ID of the new window by setting the event args property NewWindowID.

However although the event args type for the other three events TabTearOutRequested, ExternalTornOutTabsDropping and ExternalTornOutTabsDropped all contain a NewWindowID property, it's value is always zero (the default for the WindowID struct).

Repro project: TearOutTabs.zip

Steps to reproduce the bug

.

Expected behavior

I would have expected the NewWindowID property to be the id of the new tear out window.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response