C# Class Illusion.WindowManager

A service that manages windows.
Inheritance: IWindowManager
Mostra file Open project: kasicass/kasicass Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
ApplySettings ( object target, object>.IEnumerable settings ) : bool

Method Details

CreatePage() public method

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.
return System.Windows.Controls.Page

CreatePopup() protected method

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.
return System.Windows.Controls.Primitives.Popup

CreateWindow() protected method

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.
return System.Windows.Window

EnsurePage() protected method

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.
return System.Windows.Controls.Page

EnsureWindow() protected method

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.
return System.Windows.Window

InferOwnerOf() protected method

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

ShowDialog() public method

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.
return bool?

ShowPopup() public method

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.
return void

ShowWindow() public method

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.
return void