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

Manager that handles top => bottom loaded events for all views inside an application.

The reason this class is built is that in non-WPF technologies, the visual tree is loaded from bottom => top. However, Catel heavily relies on the order to be top => bottom. This manager subscribes to both the Loaded and LayoutUpdated events. This is because in a nested scenario this will happen: Will be executed in the following order: Loaded (UC 3). Loaded (UC 2). Loaded (UC 1). LayoutUpdated (UC 1). LayoutUpdated (UC 2). LayoutUpdated (UC 3).
To get the best performance, this class will only execute logic on silverlight systems. All other systems correctly support the loaded event.
Наследование: IViewLoadManager
Показать файл Открыть проект

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

Метод Описание
AddView ( IViewLoadState viewLoadState ) : void

Adds the view load state.

CleanUp ( ) : void

Cleans up the dead links.

ViewLoadManager ( ) : System

Initializes a new instance of the ViewLoadManager class.

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

Метод Описание
InvokeViewLoadEvent ( IView view, ViewLoadStateEvent viewLoadStateEvent ) : void

Invokes the specific view load event and makes sure that it isn't double invoked.

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

Метод Описание
AddViewAfterLoaded ( UninitializedViewInfo uninitializedViewInfo ) : void
OnFrameworkElementLoaded ( object sender, EventArgs e ) : void
OnViewInfoLoaded ( object sender, EventArgs e ) : void
OnViewInfoUnloaded ( object sender, EventArgs e ) : void
OnViewStackLoaded ( object sender, Catel.MVVM.Views.ViewStackPartEventArgs e ) : void
OnViewStackUnloaded ( object sender, ViewStackPartEventArgs e ) : void
RaiseLoaded ( IView view ) : void
RaiseUnloaded ( IView view ) : void

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

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

Adds the view load state.
The is null.
public AddView ( IViewLoadState viewLoadState ) : void
viewLoadState IViewLoadState The view load state.
Результат void

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

Cleans up the dead links.
public CleanUp ( ) : void
Результат void

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

Invokes the specific view load event and makes sure that it isn't double invoked.
viewLoadStateEvent
protected InvokeViewLoadEvent ( IView view, ViewLoadStateEvent viewLoadStateEvent ) : void
view IView The view.
viewLoadStateEvent ViewLoadStateEvent The view load state event.
Результат void

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

Initializes a new instance of the ViewLoadManager class.
public ViewLoadManager ( ) : System
Результат System