Exemplo n.º 1
0
        protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
        {
            TreeViewItemExtended treeViewItemExtended = (TreeViewItemExtended)element;

            treeViewItemExtended.ParentTreeView = this;

            base.PrepareContainerForItemOverride(element, item);

            InvokeContainerPrepared(treeViewItemExtended, item);
        }
Exemplo n.º 2
0
        internal void InvokeContainerPrepared(TreeViewItemExtended sender, object item)
        {
            EventHandler <ContainerPreparedEventArgs> prepared = ContainerPrepared;

            if (prepared != null)
            {
                prepared(sender, new ContainerPreparedEventArgs(sender, item));
            }

            if (itemsToDelayExpand.Contains(item))
            {
                sender.IsExpanded = true;
                itemsToDelayExpand.Remove(item);
            }
        }
Exemplo n.º 3
0
 public ContainerPreparedEventArgs(TreeViewItemExtended container, object item)
 {
     Container = container;
     Item = item;
 }
Exemplo n.º 4
0
        internal void InvokeContainerPrepared(TreeViewItemExtended sender, object item)
        {
            EventHandler<ContainerPreparedEventArgs> prepared = ContainerPrepared;
            if (prepared != null) prepared(sender, new ContainerPreparedEventArgs(sender, item));

            if (itemsToDelayExpand.Contains(item))
            {
                sender.IsExpanded = true;
                itemsToDelayExpand.Remove(item);
            }
        }
Exemplo n.º 5
0
 public ContainerPreparedEventArgs(TreeViewItemExtended container, object item)
 {
     Container = container;
     Item      = item;
 }