C# Class Caliburn.Micro.TelerikWindowManager

A service that manages windows. Implementation for RadWindow
Inheritance: IWindowManager
Afficher le fichier Open project: vcaraulean/Caliburn.Micro.Telerik Class Usage Examples

Méthodes publiques

Méthode Description
Alert ( DialogParameters dialogParameters ) : void
Alert ( string title, string message ) : void
Confirm ( DialogParameters dialogParameters ) : void
Confirm ( string title, string message, System onOK, System onCancel = null ) : void
Prompt ( DialogParameters dialogParameters ) : void
Prompt ( string title, string message, string defaultPromptResultValue, Action onOK ) : void
Show ( object rootModel, object context = null, object>.IDictionary settings = null ) : void

Shows a normal, non-modal dialog for the specified model. By default RadWindow dialog is shown at the center of the screen

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

Shows a modal dialog for the specified model. By default RadWindow dialog is shown at the center of the screen

ShowNotification ( object rootModel, int durationInMilliseconds, object context = null, object>.IDictionary settings = null ) : void

Shows a toast notification 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

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.

CreateRadWindow ( object rootModel, bool isDialog, object context, object>.IDictionary settings ) : RadWindow

Creates a window.

EnsureRadWindow ( object model, object view, bool isDialog ) : RadWindow

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

GetActiveWindow ( ) : Window

Infers the owner of the window.

Private Methods

Méthode Description
AdjustWindowAndContentSize ( RadWindow window, FrameworkElement view ) : void

Initializes Window size with values extracted by the view. Note: The real size of the content will be smaller than provided values. The form has the header (title) and border so they will take place.

ApplyRadWindowSettings ( object target, object>.IEnumerable settings ) : bool
ApplySettings ( object target, object>.IEnumerable settings ) : bool
EnsureWindow ( object model, object view ) : RadWindow
PrepareRadWindow ( object rootModel, object context, object>.IDictionary settings ) : RadWindow

Method Details

Alert() public static méthode

public static Alert ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Résultat void

Alert() public static méthode

public static Alert ( string title, string message ) : void
title string
message string
Résultat void

Confirm() public static méthode

public static Confirm ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Résultat void

Confirm() public static méthode

public static Confirm ( string title, string message, System onOK, System onCancel = null ) : void
title string
message string
onOK System
onCancel System
Résultat void

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

CreateRadWindow() protected méthode

Creates a window.
protected CreateRadWindow ( object rootModel, bool isDialog, object context, object>.IDictionary settings ) : RadWindow
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 RadWindow

EnsureRadWindow() protected méthode

Makes sure the view is a window is is wrapped by one.
protected EnsureRadWindow ( object model, object view, bool isDialog ) : RadWindow
model object The view model.
view object The view.
isDialog bool Whethor or not the window is being shown as a dialog.
Résultat RadWindow

GetActiveWindow() protected méthode

Infers the owner of the window.
protected GetActiveWindow ( ) : Window
Résultat System.Windows.Window

Prompt() public static méthode

public static Prompt ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Résultat void

Prompt() public static méthode

public static Prompt ( string title, string message, string defaultPromptResultValue, Action onOK ) : void
title string
message string
defaultPromptResultValue string
onOK Action
Résultat void

Show() public méthode

Shows a normal, non-modal dialog for the specified model. By default RadWindow dialog is shown at the center of the screen
public Show ( object rootModel, object context = null, object>.IDictionary settings = null ) : void
rootModel object The root model.
context object The context.
settings object>.IDictionary The optional RadWindow settings.
Résultat void

ShowDialog() public méthode

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

ShowDialog() public méthode

Shows a modal dialog for the specified model. By default RadWindow dialog is shown at the center of the screen
public ShowDialog ( object rootModel, object context = null, object>.IDictionary settings = null ) : void
rootModel object The root model.
context object The context.
settings object>.IDictionary The optional RadWindow settings.
Résultat void

ShowNotification() public méthode

Shows a toast notification for the specified model.
public ShowNotification ( object rootModel, int durationInMilliseconds, object context = null, object>.IDictionary settings = null ) : void
rootModel object The root model.
durationInMilliseconds int How long the notification should appear for.
context object The context.
settings object>.IDictionary The optional RadWindow Settings
Résultat void

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

public ShowWindow ( object rootModel, object context = null, object>.IDictionary settings = null ) : void
rootModel object
context object
settings object>.IDictionary
Résultat void