C# Класс Caliburn.Micro.WindowManager

A service that manages windows.
Наследование: IWindowManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetSignificantView ( DependencyObject view ) : DependencyObject

Used to retrieve the root, non-framework-created view.

In certain instances the WindowManager creates UI elements in order to display windows. For example, if you ask the window manager to show a UserControl as a dialog, it creates a window to host the UserControl in. The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer. Calling GetSignificantView allows the framework to discover what the original element was.

Show ( object rootModel, object context = null ) : void

Shows a window for the specified model.

ShowDialog ( object rootModel, object context = null ) : bool?

Shows a modal dialog for the specified model.

ShowDialog ( object rootModel, object context = null ) : void

Shows a modal dialog for the specified model.

Приватные методы

Метод Описание
CreateWindow ( object rootModel, bool isDialog, object context ) : Window
EnsureWindow ( object model, object view ) : System.Windows.Controls.ChildWindow
EnsureWindow ( object model, object view, bool isDialog ) : Window
OnShutdownAttempted ( IGuardClose guard, System.Windows.Controls.ChildWindow view, CancelEventArgs e ) : void
OnShutdownAttempted ( IGuardClose guard, Window view, CancelEventArgs e ) : void

Описание методов

GetSignificantView() публичный статический Метод

Used to retrieve the root, non-framework-created view.
In certain instances the WindowManager creates UI elements in order to display windows. For example, if you ask the window manager to show a UserControl as a dialog, it creates a window to host the UserControl in. The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer. Calling GetSignificantView allows the framework to discover what the original element was.
public static GetSignificantView ( DependencyObject view ) : DependencyObject
view System.Windows.DependencyObject The view to search.
Результат System.Windows.DependencyObject

Show() публичный Метод

Shows a window for the specified model.
public Show ( object rootModel, object context = null ) : void
rootModel object The root model.
context object The context.
Результат void

ShowDialog() публичный Метод

Shows a modal dialog for the specified model.
public ShowDialog ( object rootModel, object context = null ) : bool?
rootModel object The root model.
context object The context.
Результат bool?

ShowDialog() публичный Метод

Shows a modal dialog for the specified model.
public ShowDialog ( object rootModel, object context = null ) : void
rootModel object The root model.
context object The context.
Результат void