C# Class Illusion.WindowManager

A service that manages windows.
Inheritance: IWindowManager
Afficher le fichier Open project: kasicass/kasicass Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
ApplySettings ( object target, object>.IEnumerable settings ) : bool

Method Details

CreatePage() public méthode

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.
Résultat System.Windows.Controls.Page

CreatePopup() protected méthode

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.
Résultat System.Windows.Controls.Primitives.Popup

CreateWindow() protected méthode

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.
Résultat System.Windows.Window

EnsurePage() protected méthode

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.
Résultat System.Windows.Controls.Page

EnsureWindow() protected méthode

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.
Résultat System.Windows.Window

InferOwnerOf() protected méthode

Infers the owner of the window.
protected InferOwnerOf ( Window window ) : Window
window System.Windows.Window The window to whose owner needs to be determined.
Résultat System.Windows.Window

ShowDialog() public méthode

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.
Résultat bool?

ShowPopup() public méthode

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.
Résultat void

ShowWindow() public méthode

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.
Résultat void