Repository navigation
Refactor DataTable column resizing and layout logic - #21
Open
hoshiizumiya wants to merge 7 commits into
Open
hoshiizumiya wants to merge 7 commits into
hoshiizumiya wants to merge 7 commits into
Conversation
Contributor
Author
|
This PR recommends merging after #20. |
3 of 5 tasks
hoshiizumiya
force-pushed
the
fix/DataTable
branch
from
September 20, 2026 18:50
b32044d to
2e11d8c
Compare
hoshiizumiya
force-pushed
the
fix/DataTable
branch
from
September 26, 2026 09:51
2e11d8c to
83c159a
Compare
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.
(cherry picked from commit 2e51a42)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdfor the regression scenario and Windows validation steps.Windows build and XAML lifetime checks remain necessary before merge.