Reputation: 33
How can the size, especially width, of the close button (or titlebar buttons in general) be retrieved in Windows universal apps?
One of our UI elements displays a full-height panel on the right which has to have the exact same width as the close button:
Close button not aligned with SplitView
Upvotes: 2
Views: 956
Reputation: 2581
The CoreApplicationViewTitleBar
has the necessary properties for this purpose.
To learn how to use these properties correctly, go to this page which is about the correct way of using System Caption Buttons.
Upvotes: 4