C# Класс Illusion.WindowManager

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

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

Метод Описание
CreatePage ( object rootModel, object context, object>.IDictionary settings ) : System.Windows.Controls.Page

Creates the page.

ShowDialog ( object rootModel, object context = null, object>.IDictionary settings = null ) : bool?

Shows a modal dialog for the specified model.

ShowPopup ( object rootModel, object context = null, object>.IDictionary settings = null ) : void

Shows a popup at the current mouse position.

ShowWindow ( object rootModel, object context = null, object>.IDictionary settings = null ) : void

Shows a window for the specified model.

Защищенные методы

Метод Описание
CreatePopup ( object rootModel, object>.IDictionary settings ) : System.Windows.Controls.Primitives.Popup

Creates a popup for hosting a popup window.

CreateWindow ( object rootModel, bool isDialog, object context, object>.IDictionary settings ) : Window

Creates a window.

EnsurePage ( object model, object view ) : System.Windows.Controls.Page

Ensures the view is a page or provides one.

EnsureWindow ( object model, object view, bool isDialog ) : Window

Makes sure the view is a window is is wrapped by one.

InferOwnerOf ( Window window ) : Window

Infers the owner of the window.

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

Метод Описание
ApplySettings ( object target, object>.IEnumerable settings ) : bool

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

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

Creates the page.
public CreatePage ( object rootModel, object context, object>.IDictionary settings ) : System.Windows.Controls.Page
rootModel object The root model.
context object The context.
settings object>.IDictionary The optional popup settings.
Результат System.Windows.Controls.Page

CreatePopup() защищенный Метод

Creates a popup for hosting a popup window.
protected CreatePopup ( object rootModel, object>.IDictionary settings ) : System.Windows.Controls.Primitives.Popup
rootModel object The model.
settings object>.IDictionary The optional popup settings.
Результат System.Windows.Controls.Primitives.Popup

CreateWindow() защищенный Метод

Creates a window.
protected CreateWindow ( object rootModel, bool isDialog, object context, object>.IDictionary settings ) : Window
rootModel object The view model.
isDialog bool Whethor or not the window is being shown as a dialog.
context object The view context.
settings object>.IDictionary The optional popup settings.
Результат System.Windows.Window

EnsurePage() защищенный Метод

Ensures the view is a page or provides one.
protected EnsurePage ( object model, object view ) : System.Windows.Controls.Page
model object The model.
view object The view.
Результат System.Windows.Controls.Page

EnsureWindow() защищенный Метод

Makes sure the view is a window is is wrapped by one.
protected EnsureWindow ( object model, object view, bool isDialog ) : Window
model object The view model.
view object The view.
isDialog bool Whethor or not the window is being shown as a dialog.
Результат System.Windows.Window

InferOwnerOf() защищенный Метод

Infers the owner of the window.
protected InferOwnerOf ( Window window ) : Window
window System.Windows.Window The window to whose owner needs to be determined.
Результат System.Windows.Window

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

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

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

Shows a popup at the current mouse position.
public ShowPopup ( object rootModel, object context = null, object>.IDictionary settings = null ) : void
rootModel object The root model.
context object The view context.
settings object>.IDictionary The optional popup settings.
Результат void

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

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