You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a cross-platform control (no handlers) that contains a StackLayout. When I add items to this StackLayout, I set their requested Width and Height to be the width and height of the parent.
I'm unsure of the correct event or override function where Width/Height of the parent I guaranteed to be set. OnSizeAllocated works but WinUI doesn't seem to like that as it throws COMException on any GUI modifications there.
@mattleibow your the layout expert, what's the intent here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a cross-platform control (no handlers) that contains a
StackLayout
. When I add items to thisStackLayout
, I set their requestedWidth
andHeight
to be the width and height of the parent.I'm unsure of the correct event or override function where
Width
/Height
of the parent I guaranteed to be set.OnSizeAllocated
works but WinUI doesn't seem to like that as it throwsCOMException
on any GUI modifications there.@mattleibow your the layout expert, what's the intent here.
Beta Was this translation helpful? Give feedback.
All reactions