C# Class Catel.MVVM.Views.ViewStack

Class containing a view stack and whether the stack is currently loaded.
Show file Open project: Catel/Catel Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

AddChild() public method

Adds a new child to the stack.
public AddChild ( IView view, ViewStack parentViewStack ) : bool
view IView The view.
parentViewStack ViewStack The parent view stack.
return bool

AddChild() public method

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

CheckForOutdatedChildren() public method

Checks for outdated children and removes them if necessary.
public CheckForOutdatedChildren ( ) : void
return void

ContainsView() public method

Determines whether this view stack contains the specified view.
public ContainsView ( IView view ) : bool
view IView The view.
return bool

Dispose() public method

Disposes this instance. Not using IDisposable to prevent other auto systems from kicking in.
public Dispose ( ) : void
return void

MarkAsLoaded() public method

Marks the view stack as loaded.
public MarkAsLoaded ( ) : void
return void

MarkAsUnloaded() public method

Marks the view stack as unloaded.
public MarkAsUnloaded ( ) : void
return void

NotifyThatParentIsReadyToAcceptLoadedMessages() public method

Notifies the that parent is ready to accept loaded messages.
public NotifyThatParentIsReadyToAcceptLoadedMessages ( ) : void
return void

ViewStack() public method

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