From d9abfc70ee69a51e82e97809cdccc8bc3ae5839c Mon Sep 17 00:00:00 2001 From: Tig Date: Tue, 14 May 2024 16:08:09 -0700 Subject: [PATCH] Updated migration doc --- docfx/docs/migratingfromv1.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docfx/docs/migratingfromv1.md b/docfx/docs/migratingfromv1.md index add576bbb..df58daabf 100644 --- a/docfx/docs/migratingfromv1.md +++ b/docfx/docs/migratingfromv1.md @@ -69,7 +69,6 @@ When measuring the screen space taken up by a `string` you can use the extension + myString.GetColumns(); ``` - ## `View Life Cycle Management In v1, `View` was derived from `Responder` which supported `IDisposable`. In v2, `Responder` has been removed and `View` is the base-class supporting `IDisposable`. @@ -82,6 +81,15 @@ In v1, `Application.Init` automatically created a toplevel view and set `Applica * Update any code that assumed `Application.Init` automatically created a toplevel view and set `Applicaton.Top`. * Update any code that assumed `Application.Init` automatically disposed of the toplevel view when the application exited. +## `Pos` and `Dim` types are no-longer internal nested classes + +In v1, the `Pos` and `Dim` types (e.g. `Pos.PosView`) were nested classes and marked `internal`. In v2, they are no longer nested, and have appropriate public APIs. + +### How to Fix + +* Search and replace `Pos.Pos` -> `Pos`. +* Search and replace `Dim.Dim` -> `Dim`. + ## Layout Improvements In v2, the layout system has been improved to make it easier to create complex user interfaces. If you are using custom layouts in your application, you may need to update them to use the new layout system.