C# Класс Catel.MVVM.Views.ViewStack

Class containing a view stack and whether the stack is currently loaded.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddChild ( IView view, ViewStack parentViewStack ) : bool

Adds a new child to the stack.

AddChild ( ViewStack viewStack, ViewStack parentViewStack ) : bool

Adds a new child to the stack.

CheckForOutdatedChildren ( ) : void

Checks for outdated children and removes them if necessary.

ContainsView ( IView view ) : bool

Determines whether this view stack contains the specified view.

Dispose ( ) : void

Disposes this instance. Not using IDisposable to prevent other auto systems from kicking in.

MarkAsLoaded ( ) : void

Marks the view stack as loaded.

MarkAsUnloaded ( ) : void

Marks the view stack as unloaded.

NotifyThatParentIsReadyToAcceptLoadedMessages ( ) : void

Notifies the that parent is ready to accept loaded messages.

ViewStack ( IView view, bool isViewLoaded ) : System

Initializes a new instance of the ViewStack class.

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

Метод Описание
OnChildViewLoaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnChildViewStackLoaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnChildViewStackUnloaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnChildViewUnloaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnParentViewStackLoaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnViewLayoutUpdated ( object sender, EventArgs e ) : void
OnViewLoaded ( object sender, EventArgs e ) : void
OnViewUnloaded ( object sender, EventArgs e ) : void
RaiseViewLoaded ( ) : void
RaiseViewUnloaded ( ) : void
SubscribeLayoutUpdated ( ) : void
UnsubscribeLayoutUpdated ( ) : void
ViewStack ( IView view, bool isViewLoaded, ViewStack parentViewStack ) : System

Initializes a new instance of the ViewStack class.

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

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

Adds a new child to the stack.
public AddChild ( IView view, ViewStack parentViewStack ) : bool
view IView The view.
parentViewStack ViewStack The parent view stack.
Результат bool

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

Adds a new child to the stack.
public AddChild ( ViewStack viewStack, ViewStack parentViewStack ) : bool
viewStack ViewStack The view stack.
parentViewStack ViewStack The parent view stack.
Результат bool

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

Checks for outdated children and removes them if necessary.
public CheckForOutdatedChildren ( ) : void
Результат void

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

Determines whether this view stack contains the specified view.
public ContainsView ( IView view ) : bool
view IView The view.
Результат bool

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

Disposes this instance. Not using IDisposable to prevent other auto systems from kicking in.
public Dispose ( ) : void
Результат void

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

Marks the view stack as loaded.
public MarkAsLoaded ( ) : void
Результат void

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

Marks the view stack as unloaded.
public MarkAsUnloaded ( ) : void
Результат void

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

Notifies the that parent is ready to accept loaded messages.
public NotifyThatParentIsReadyToAcceptLoadedMessages ( ) : void
Результат void

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

Initializes a new instance of the ViewStack class.
public ViewStack ( IView view, bool isViewLoaded ) : System
view IView The view.
isViewLoaded bool if set to true, the view is loaded.
Результат System