void HandleAfterCheck(object sender, SWF.TreeViewEventArgs e) { TreeNodeProvider nodeProvider = GetTreeNodeProvider(e.Node); if (nodeProvider != null) { nodeProvider.OnAfterCheck(); } }
void HandleUIANodeTextChanged(object sender, SWF.TreeViewEventArgs e) { TreeNodeProvider nodeProvider = GetTreeNodeProvider(e.Node); if (nodeProvider != null) { nodeProvider.OnTextChanged(); } }
public override void InitializeChildControlStructure() { foreach (SWF.TreeNode node in Nodes) { TreeNodeProvider nodeProvider = GetOrCreateNodeProvider(node); if (nodeProvider != null) { AddChildProvider(nodeProvider); } } }
private TreeNodeProvider GetOrCreateNodeProvider(SWF.TreeNode node) { TreeNodeProvider nodeProvider; if (!nodeProviders.TryGetValue(node, out nodeProvider)) { nodeProvider = new TreeNodeProvider(node, SupportsScroll); nodeProvider.Initialize(); nodeProviders [node] = nodeProvider; } return(nodeProvider); }
/// <summary> /// Search recursively for the TreeNodeProvider for the given /// TreeNode. /// </summary> internal TreeNodeProvider GetTreeNodeProvider(SWF.TreeNode node) { TreeNodeProvider nodeProvider = null; if (!nodeProviders.TryGetValue(node, out nodeProvider)) { foreach (TreeNodeProvider childNodeProvider in nodeProviders.Values) { nodeProvider = childNodeProvider.GetTreeNodeProvider(node); if (nodeProvider != null) { return(nodeProvider); } } } return(nodeProvider); }
public TogglePatternToggleStateEvent (TreeNodeProvider provider) : base (provider, TogglePatternIdentifiers.ToggleStateProperty) { nodeProvider = provider; }
public ExpandCollapsePatternExpandCollapseStateEvent (TreeNodeProvider nodeProvider) : base (nodeProvider, ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty) { this.nodeProvider = nodeProvider; }
public AutomationHasKeyboardFocusPropertyEvent (TreeNodeProvider nodeProvider) : base (nodeProvider, AutomationElementIdentifiers.HasKeyboardFocusProperty) { treeView = nodeProvider.TreeNode.TreeView; }
public ScrollItemProviderBehavior (TreeNodeProvider provider) : base (provider) { nodeProvider = provider; }
public SelectionItemPatternElementSelectedEvent (TreeNodeProvider nodeProvider) : base (nodeProvider, SelectionItemPatternIdentifiers.ElementSelectedEvent) { this.nodeProvider = nodeProvider; }
public SelectionItemPatternIsSelectedEvent (TreeNodeProvider nodeProvider) : base (nodeProvider, SelectionItemPatternIdentifiers.IsSelectedProperty) { this.nodeProvider = nodeProvider; }
private TreeNodeProvider GetOrCreateNodeProvider (SWF.TreeNode node) { TreeNodeProvider nodeProvider; if (!nodeProviders.TryGetValue (node, out nodeProvider)) { nodeProvider = new TreeNodeProvider (node, SupportsScroll); nodeProvider.Initialize (); nodeProviders [node] = nodeProvider; } return nodeProvider; }