C# 클래스 Caliburn.Micro.WindowManager

A service that manages windows.
상속: IWindowManager
파일 보기 프로젝트 열기: dbuksbaum/Learning-Caliburn.Micro 1 사용 예제들

공개 메소드들

메소드 설명
GetSignificantView ( DependencyObject view ) : DependencyObject

Used to retrieve the root, non-framework-created view.

In certain instances the WindowManager creates UI elements in order to display windows. For example, if you ask the window manager to show a UserControl as a dialog, it creates a window to host the UserControl in. The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer. Calling GetSignificantView allows the framework to discover what the original element was.

Show ( object rootModel, object context = null ) : void

Shows a window for the specified model.

ShowDialog ( object rootModel, object context = null ) : bool?

Shows a modal dialog for the specified model.

ShowDialog ( object rootModel, object context = null ) : void

Shows a modal dialog for the specified model.

비공개 메소드들

메소드 설명
CreateWindow ( object rootModel, bool isDialog, object context ) : Window
EnsureWindow ( object model, object view ) : System.Windows.Controls.ChildWindow
EnsureWindow ( object model, object view, bool isDialog ) : Window
OnShutdownAttempted ( IGuardClose guard, System.Windows.Controls.ChildWindow view, CancelEventArgs e ) : void
OnShutdownAttempted ( IGuardClose guard, Window view, CancelEventArgs e ) : void

메소드 상세

GetSignificantView() 공개 정적인 메소드

Used to retrieve the root, non-framework-created view.
In certain instances the WindowManager creates UI elements in order to display windows. For example, if you ask the window manager to show a UserControl as a dialog, it creates a window to host the UserControl in. The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer. Calling GetSignificantView allows the framework to discover what the original element was.
public static GetSignificantView ( DependencyObject view ) : DependencyObject
view System.Windows.DependencyObject The view to search.
리턴 System.Windows.DependencyObject

Show() 공개 메소드

Shows a window for the specified model.
public Show ( object rootModel, object context = null ) : void
rootModel object The root model.
context object The context.
리턴 void

ShowDialog() 공개 메소드

Shows a modal dialog for the specified model.
public ShowDialog ( object rootModel, object context = null ) : bool?
rootModel object The root model.
context object The context.
리턴 bool?

ShowDialog() 공개 메소드

Shows a modal dialog for the specified model.
public ShowDialog ( object rootModel, object context = null ) : void
rootModel object The root model.
context object The context.
리턴 void