public ViewDataLoader(LogicalView view) { this._view = view; this.InitDataProvider(); }
public static void SetLogicalView(DependencyObject d, LogicalView value) { d.SetValue(LogicalViewProperty, value); }
/// <summary> /// 通过 View 找到外层控件中最近的一个 WorkspaceWindow /// </summary> /// <param name="element"></param> /// <returns></returns> public static WorkspaceWindow GetOuterWorkspaceWindow(LogicalView view) { //这里直接通过控件树关系,而不能只通过视图的父子关系查询,这是因为环绕坏并不是主块的子块。 return(GetOuterWorkspaceWindow(view.GetRootView().Control as DependencyObject)); }
/// <summary> /// 使用 View 创建一个带 “Busy” 控件的控件。 /// </summary> /// <param name="mainView"></param> /// <returns></returns> public static ControlResult CreateBusyControlResult(LogicalView mainView) { var busy = TryWrapWithBusyControl(mainView); return(new ControlResult(busy, mainView)); }