Browse Source

Updated migration doc

Tig 1 year ago
parent
commit
d9abfc70ee
1 changed files with 9 additions and 1 deletions
  1. 9 1
      docfx/docs/migratingfromv1.md

+ 9 - 1
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.