示例#1
0
 public bool IsExpanded(DocumentNode node)
 {
     DocumentNodeView.NodeEntry nodeEntry = this.GetNodeEntry(node);
     if (nodeEntry == null)
     {
         return(true);
     }
     return(nodeEntry.IsExpanded);
 }
示例#2
0
 public void SetIsExpanded(DocumentNode node, bool value)
 {
     DocumentNodeView.NodeEntry nodeEntry = this.GetNodeEntry(node);
     if (nodeEntry == null)
     {
         return;
     }
     nodeEntry.IsExpanded = value;
 }
示例#3
0
 public FrameworkElement this[DocumentNode node]
 {
     get
     {
         DocumentNodeView.NodeEntry nodeEntry = this.GetNodeEntry(node);
         if (nodeEntry == null)
         {
             return((FrameworkElement)null);
         }
         return(nodeEntry.Element);
     }
     set
     {
         DocumentNodeView.NodeEntry nodeEntry = this.GetNodeEntry(node);
         if (nodeEntry != null)
         {
             nodeEntry.Element = value;
         }
         else
         {
             this.mapping[node] = new DocumentNodeView.NodeEntry(value);
         }
     }
 }