|Available on||.NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS|
public class ViewLoadManager : IViewLoadManager
Implements interfaces IViewLoadManager
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
LayoutUpdated events. This is because in a nested scenario this will happen:```
``` Will be executed in the following order:
Initializes a new instance of the ViewLoadManager class.
Occurs when any of the subscribed views are loaded.
Occurs when any of the subscribed views are about to be loaded.
Occurs when any of the subscribed views are unloaded.
Occurs when any of the subscribed views are about to be unloaded.
Adds the view load state.
|viewLoadState||The view load state.|
|ArgumentNullException||The viewLoadState is
Cleans up the dead links.
InvokeViewLoadEvent(IView view, ViewLoadStateEvent viewLoadStateEvent)
Invokes the specific view load event and makes sure that it isn’t double invoked.
|viewLoadStateEvent||The view load state event.|
Have a question about Catel? Use StackOverflow with the Catel tag!