sourcechord / GridExtra

Custom panel controls for WPF/UWP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window SizeToContent issue

tNRevan opened this issue · comments

Hello,

I am having issues, when WPF Window.SizeToContent = WidthAndHeight. I have a simple window with stack panel and few items where one of those is managed by GridExtra. When I open the window, it looks like this:

image

The individual items are overlapping as the GridExtra uses wrongly the LG format (with 4 items on one row). When I just tap the window resize edge, the Grid produces a correct result using the XS format (1 item per row).

image

When manually enlarging the window, it is laid out correctly.

image

Am I doing something wrong? Is this a bug? Or is this just not supported? If there is a need, I could produce a sample application.