webstronaut.ch
webstronaut.ch

Reputation: 33

UWP title bar close button size

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

Answers (1)

Muzib
Muzib

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

Related Questions