Remove TileView and Tile - Use View.Arrangement instead #4261
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.
Removes the
TileView
andTile
classes which are no longer needed since the introduction ofView.Arrangement
. TheView.Arrangement
property provides built-in mouse/keyboard sizing and moving of views, making the specializedTileView
implementation unnecessary.Changes
Removed obsolete classes (3,948 lines):
Terminal.Gui/Views/TileView.cs
- Complex tile-based layout managerTerminal.Gui/Views/Tile.cs
- Individual tile representationTerminal.Gui/Views/SplitterEventArgs.cs
- Event args for splitter eventsExamples/UICatalog/Scenarios/TileViewNesting.cs
- Demo scenario for TileViewTests/UnitTests/Views/TileViewTests.cs
- Unit tests for TileViewUpdated FileDialog:
Replaced
TileView
with simpleView
panels for the split-pane layout:_leftPanel
(tree view) and_rightPanel
(table view) as standard ViewsCanFocus = true
to match originalTile.ContentView
behaviorArrangement = ViewArrangement.Resizable
for user-resizing capabilityUpdated Notepad:
View.Arrangement
as the modern approachMinor updates:
View.Hierarchy.cs
to remove obsolete TileView referenceTesting
✅ All 3,523 unit tests passing
✅ All 183 integration tests passing
✅ Build successful with no errors
Net Result
This change simplifies the codebase by removing a complex custom layout system in favor of the more flexible and modern
View.Arrangement
approach that's already built into the framework.Fixes #3661
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.