/// <summary> /// Tries to close the specified view. /// </summary> /// <param name="view">The view to close.</param> /// <param name="dialogResult">The dialog result.</param> /// <returns>true, when close could be initiated; otherwise false.</returns> public static bool TryClose(object view, bool?dialogResult) { return(ViewAdapter.TryClose(view, dialogResult)); }
/// <summary> /// Executes the handler the fist time the view is loaded. /// </summary> /// <param name="view">The view.</param> /// <param name="handler">The handler.</param> public static void ExecuteOnFirstLoad(object view, Action <object> handler) { ViewAdapter.ExecuteOnFirstLoad(view, handler); }
/// <summary> /// Executes the handler the next time the view's LayoutUpdated event fires. /// </summary> /// <param name="view">The view.</param> /// <param name="handler">The handler.</param> public static void ExecuteOnLayoutUpdated(object view, Action <object> handler) { ViewAdapter.ExecuteOnLayoutUpdated(view, handler); }
/// <summary> /// Used to retrieve the root, non-framework-created view. /// </summary> /// <param name="view">The view to search.</param> /// <returns>The root element that was not created by the framework.</returns> public static object GetFirstNonGeneratedView(object view) { return(ViewAdapter.GetFirstNonGeneratedView(view)); }