예제 #1
0
 private void Load(Visual rootVisual)
 {
     this.filtered.Clear();
     this.root = new DumpNode(rootVisual);
     this.root.UpdateChildrenCount();
     this.Filter = this.filter;
 }
예제 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            DumpNode dumpNode = (DumpNode)value;

            if (value == null || dumpNode.Visual is Window)
            {
                return((object)null);
            }
            VisualBrush visualBrush = new VisualBrush(dumpNode.Visual);

            visualBrush.Stretch = Stretch.Uniform;
            return((object)visualBrush);
        }
예제 #3
0
 private void FilterTree(DumpNode node, string filter)
 {
     foreach (DumpNode node1 in (Collection <DumpNode>)node.Children)
     {
         if (node1.Filter(filter))
         {
             this.filtered.Add(node1);
         }
         else
         {
             this.FilterTree(node1, filter);
         }
     }
 }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return((object)null);
            }
            List <CountedString> countedStrings = new List <CountedString>();
            DumpNode             dumpNode       = value as DumpNode;

            if (dumpNode != null)
            {
                this.BuildCountedStrings(dumpNode.Visual, countedStrings);
                countedStrings.Sort(new Comparison <CountedString>(this.CompareCountedStrings));
            }
            return((object)countedStrings);
        }