Fixes #4151, #4152. Remove LineView class and replace all usages with Line (#4268)

* Initial plan

* Remove LineView and replace all usages with Line

- Deleted LineViewExample.cs scenario
- Deleted LineViewTests.cs test file
- Replaced LineView with Line in all examples (CollectionNavigatorTester, FileDialogExamples, LineExample, Wizard)
- Replaced LineView with Line in all tests (ViewTests, TileViewTests)
- Changed TileViewLineView to inherit from Line instead of LineView
- Removed LineView.cs file
- Removed LineView category from TileViewNesting scenario

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Remove LineView references from documentation

- Updated Line.cs XML documentation to remove comparison with LineView
- Removed LineView section from views.md documentation

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Fixes Wizard (#4269)

* fixed Wizard

* Made Line use GetAttributeForRole

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tig <585482+tig@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
Copilot
2025-10-03 13:20:36 -07:00
committed by GitHub
parent fc9c40c2a0
commit e352dde696
13 changed files with 32 additions and 268 deletions

View File

@@ -62,7 +62,7 @@ public class FileDialogExamples : Scenario
x = 24;
win.Add (
new LineView (Orientation.Vertical) { X = x++, Y = 1, Height = 4 }
new Line { Orientation = Orientation.Vertical, X = x++, Y = 1, Height = 4 }
);
win.Add (new Label { X = x++, Y = y++, Text = "Caption" });
@@ -74,7 +74,7 @@ public class FileDialogExamples : Scenario
x = 34;
win.Add (
new LineView (Orientation.Vertical) { X = x++, Y = 1, Height = 4 }
new Line { Orientation = Orientation.Vertical, X = x++, Y = 1, Height = 4 }
);
win.Add (new Label { X = x++, Y = y++, Text = "OpenMode" });
@@ -86,7 +86,7 @@ public class FileDialogExamples : Scenario
x = 48;
win.Add (
new LineView (Orientation.Vertical) { X = x++, Y = 1, Height = 4 }
new Line { Orientation = Orientation.Vertical, X = x++, Y = 1, Height = 4 }
);
win.Add (new Label { X = x++, Y = y++, Text = "Icons" });
@@ -101,7 +101,7 @@ public class FileDialogExamples : Scenario
x = 24;
win.Add (
new LineView (Orientation.Vertical) { X = x++, Y = y + 1, Height = 4 }
new Line { Orientation = Orientation.Vertical, X = x++, Y = y + 1, Height = 4 }
);
win.Add (new Label { X = x++, Y = y++, Text = "Allowed" });
@@ -113,7 +113,7 @@ public class FileDialogExamples : Scenario
x = 45;
win.Add (
new LineView (Orientation.Vertical) { X = x++, Y = y + 1, Height = 4 }
new Line { Orientation = Orientation.Vertical, X = x++, Y = y + 1, Height = 4 }
);
win.Add (new Label { X = x++, Y = y++, Text = "Buttons" });