Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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));
 }