Beispiel #1
0
 public AutomationPeerTreeItem(AutomationPeer target, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     if (this.Target is UIElementAutomationPeer uiElementAutomationPeer &&
         uiElementAutomationPeer.Owner is null == false)
     {
         this.Visual = uiElementAutomationPeer.Owner;
     }
 }
Beispiel #2
0
        public TreeItem(object target, TreeItem?parent, TreeService treeService)
        {
            this.Target     = target ?? throw new ArgumentNullException(nameof(target));
            this.TargetType = this.Target.GetType();

            this.typeNameLower = this.TargetType.Name.ToLower();

            this.Parent      = parent;
            this.TreeService = treeService;

            if (parent is not null)
            {
                this.Depth = parent.Depth + 1;
            }
        }
 public ApplicationTreeItem(Application application, TreeItem parent, TreeService treeService)
     : base(application, parent, treeService)
 {
     this.application = application;
     this.IsExpanded  = true;
 }
Beispiel #4
0
 public ChildWindowsTreeItem(Window target, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     this.targetWindow = target;
 }
Beispiel #5
0
        public ResourceDictionaryTreeItem(ResourceDictionary dictionary, TreeItem parent, TreeService treeService)
            : base(dictionary, parent, treeService)
        {
            this.dictionary = dictionary;

            var childrenView = CollectionViewSource.GetDefaultView(this.Children);

            childrenView.SortDescriptions.Add(dictionarySortDescription);
            childrenView.SortDescriptions.Add(displayNameSortDescription);
        }
Beispiel #6
0
 public ResourceItem(object target, object key, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     this.key       = key;
     this.SortOrder = int.MaxValue;
 }
Beispiel #7
0
 public PopupTreeItem(Popup target, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     this.PopupTarget = target;
 }
Beispiel #8
0
 public DependencyObjectTreeItem(DependencyObject target, TreeItem?parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     this.DependencyObject = target;
     this.Visual           = target as Visual;
 }
 public WindowTreeItem(Window target, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
     this.WindowTarget = target;
 }
Beispiel #10
0
 protected ResourceContainerTreeItem(object target, TreeItem parent, TreeService treeService)
     : base(target, parent, treeService)
 {
 }