Hey everyone,
I'm running into some performance issues when trying to implement a UI with deeply nested `Grid` and `StackPanel` elements in WinUI 3. The data structure is hierarchical, and I'm trying to represent it visually using XAML. While it looks good, the scrolling and rendering become quite laggy when there are many levels of nesting.
Has anyone encountered this and found effective solutions? I've considered using `ListView` or `GridView` with virtualization, but the complex structure doesn't map directly to a flat data source that those controls typically work best with. Maybe there's a custom panel I could create or a specific XAML pattern to avoid?
Any advice or best practices would be greatly appreciated!