
Hello,
Would you please let me know how to know which window become floating in FloatingWindowOpening event?
I'm trying as the following now.
Hello,
Would you please let me know how to know which window become floating in FloatingWindowOpening event?
I'm trying as the following now.
Hello,
If this opening event is for a floating window open commit (not a drag preview), the e.DockHost.Child property will return the root object being floated. For tool windows, this would be a ToolWindowContainer. For tabbed documents, it would be a Workspace.
I think a lot of the logic you provided above will work as-is. But you don't need the Where() LINQ calls since everything in those containers is part of this floating operation.
Please log in to a validated account to post comments.