public static WPFDependencyObjectCollection LogicalTree(this AppVar start, TreeOption option = TreeOption.DepthFirst) { Init(start); string name = string.Empty; switch (option) { case TreeOption.DepthFirst: name = "GeLogicalTreeCollectionDepthFirst"; break; case TreeOption.Ancestor: name = "GeLogicalTreeCollectionAncestor"; break; default: throw new NotSupportedException(); } return(new WPFDependencyObjectCollection(start.App[typeof(TreeExtensions), name](start))); }
/// <summary> /// 初始化树 /// </summary> public ComboTree() { UpdateClass("easyui-combotree"); _option = new TreeOption(); }
public static WPFDependencyObjectCollection VisualTree(this IAppVarOwner start, TreeOption option = TreeOption.DepthFirst) { return(VisualTree(start.AppVar, option)); }