Windowscommunitytoolkit: Expander Header is hard to Stretch

Created on 22 Nov 2019  ·  4Comments  ·  Source: windows-toolkit/WindowsCommunityToolkit

Describe the bug

It's hard to cause the header of the Expander control to stretch across the size of the Expander. The problem is the HorizontalContentAlignment isn't exposed for the header from here

Expected behavior

Able to easily stretch the header of an Expander

In-PR bug in progress

All 4 comments

The content of the header will "stretch" as much as is needed.... What's the use case/scenario that isn't working?

@skendrot if you have the expander stretch to its parent size, but then want to right-align anything within the header itself, you can't as the header content is left-aligned and not able to be stretched.

image
I was trying to use Expander for this and found it very hard to customise the header. Eventually ended up with custom control rather than expander

You could easily change the HeaderStyle of the Expander to stretch the content. Don't need a new control.
I submitted a PR for this but it is a breaking visual change

Was this page helpful?
0 / 5 - 0 ratings