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

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

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

Метод Описание
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

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

Метод Описание
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.

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

Метод Описание
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

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

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

public static Alert ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Результат void

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

public static Alert ( string title, string message ) : void
title string
message string
Результат void

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

public static Confirm ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Результат void

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

public static Confirm ( string title, string message, System onOK, System onCancel = null ) : void
title string
message string
onOK System
onCancel System
Результат void

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

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

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.
Результат RadWindow

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

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.
Результат RadWindow

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

Infers the owner of the window.
protected GetActiveWindow ( ) : Window
Результат System.Windows.Window

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

public static Prompt ( DialogParameters dialogParameters ) : void
dialogParameters DialogParameters
Результат void

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

public static Prompt ( string title, string message, string defaultPromptResultValue, Action onOK ) : void
title string
message string
defaultPromptResultValue string
onOK Action
Результат void

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

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.
Результат void

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

public ShowDialog ( object rootModel, object context = null, object>.IDictionary settings = null ) : bool?
rootModel object
context object
settings object>.IDictionary
Результат bool?

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

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.
Результат void

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

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
Результат void

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() публичный Метод

public ShowWindow ( object rootModel, object context = null, object>.IDictionary settings = null ) : void
rootModel object
context object
settings object>.IDictionary
Результат void