-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Toplevel
-
#2490
Labels
v2
For discussions, issues, etc... relavant for v2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modal - The term used when describing a View that was created using the
Application.Run(view)
orApplication.Run<T>
APIs. When aView
is running as a modal, user input is restricted to just that View untilApplication.Run
exits. AModal
View has its ownRunState.
In v1, classes derived from
Dialog
were originally thought to only work modally. However,Wizard
proved that a Dialog-based class can also work non-modally.In v2, we will simplify the
Dialog
class, and let any class be run viaApplicaiton.Run
. TheModal
property will be set byApplication.Run
so the class can detect it is running modally if it needs to.TopLevel
- The v1 term used to describe a view that can have aMenuBar
and/orStatusBar
.In v2, we will delete the
TopLevel
class and ensure ANYView
can have a menu bar and/or status bar (via Adornments). See RefactorMenuBar
andStatusBar
to be adornments #2488NOTE: There will still be an
Application.Top
which is the View that is the root of the Application's view hierarchy.In v2, there is only one Application.Top. It is the View that is the first view in the application.
If a developer wants an "MDI" like interface, they can turn on the menubar/status bar in the Application.Top and add Window subviews to their hearts content. With the LayoutStyle.Overlapped each of those subviews overlap each other, support dragging/sizing, etc... They can add/remove subviews to the Application.Top, hide/show, etc... There is no need for a TopLevel class.
The text was updated successfully, but these errors were encountered: