## Description * When all the items in WrapLayout are Collapsed, the method WrapLayoutState.GetHeight() would throw "Nullable object must have a value." * Once an item is collapsed in the WrapLayout(such as a Image that is loaded later), it would not be visible without refreshing. ## Possible solution * Add a null discriminant statement to WrapLayoutState.GetHeight() * Still measure and arrange collapsed items
Activity
niels9001 commentedon May 26, 2023
@Poker-sang Thanks for flagging this!
Is this something you'd like to PR a fix for 😊?
Poker-sang commentedon May 26, 2023
Yes, I can fix this.
btw I implement another commonly used layout JustifiedLayout. Do you think it could be added to the Toolkit?
niels9001 commentedon May 26, 2023
Awesome.. great to hear!
JustifiedLayoutsounds interesting.. feel free to open a Discussion (a.k.a. new Experiment) here so we can discuss it there! https://github.com/CommunityToolkit/Labs-Windows/discussions