Skip to content

Refactor DataTable column resizing and layout logic - #21

Open
hoshiizumiya wants to merge 7 commits into
lgztx96:masterfrom
hoshiizumiya:fix/DataTable
Open

hoshiizumiya wants to merge 7 commits into
lgztx96:masterfrom
hoshiizumiya:fix/DataTable

Conversation

@hoshiizumiya

@hoshiizumiya hoshiizumiya commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Refactors DataColumn accessors and resizing methods, improves DataRow layout and TreeView integration, and caches resolved column widths while freezing updates during user resize.

This PR now also fixes row ownership: DataTable stores weak row registrations, prunes expired rows when creating invalidation snapshots, and DataRow keeps weak references to its parent table and panel. A row measured and then discarded before Loaded/Unloaded can now be collected without relying on an unload callback. See docs/datatable-row-lifetime.md for the regression scenario and Windows validation steps.

Windows build and XAML lifetime checks remain necessary before merge.

@hoshiizumiya

Copy link
Copy Markdown
Contributor Author

This PR recommends merging after #20.
Any plan to merge? Or I could just add my branch to my repo as a git-submodule. I'm not sure the best solution as merging it would break the orginal Windows Community Toolkit functions.
I'm not sure when the MUX Tabular will get released and be used in production. As the DataTable perf has performance issues, I remain pessimistic about the performance and migration difficulty of the new Tabular, and I still need time to migrate and look into how to reimplement and api details.

hoshiizumiya added a commit to hoshiizumiya/OpenNet that referenced this pull request Sep 26, 2026
Measure intrinsic Auto header widths without viewport truncation and reserve them before measuring Star columns. Capture the previous row content width by value so changes notify the table. Preserve existing layout rounding and saved logical widths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant