Open
Description
In the Make code portable across windowing hosts table, the guidance for CoreWindow.GetForCurrentThread().Bounds
and Window.Current.Bounds
is to use uiElement.XamlRoot.Size
. That's fine if you're just trying to get the size of the window; however, Bounds
also contained the X,Y position on screen.
More guidance should be provided here on how to retrieve the coordinates properly when hosted in scenarios with multiple window potential. i.e. translating this scenario
FYI @marb2000
Linkback: CommunityToolkit/WindowsCommunityToolkit#3650
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 44b63acc-1530-9f33-1004-35577ba242be
- Version Independent ID: 961a646b-9e65-f8c2-c318-94c33bfbf3dd
- Content: Show multiple views for an app - Windows apps
- Content Source: hub/apps/design/layout/show-multiple-views.md
- Product: uwp
- Technology: design
- GitHub Login: @jwmsft
- Microsoft Alias: jimwalk