Window.Current.Bounds contains more information about Position, not just Size #3319
Labels
design/tech
doc-enhancement
feedback is about suggested additions/improvements to the article, but customer is not blocked
Pri2
uwp/prod
In the Make code portable across windowing hosts table, the guidance for
CoreWindow.GetForCurrentThread().Bounds
andWindow.Current.Bounds
is to useuiElement.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.
The text was updated successfully, but these errors were encountered: