protected override DependencyObject GetContainerForItemOverride()
        {
            TreeViewItemForMapping container = new TreeViewItemForMapping();

            container.ActOnTreeViewItemExpandedChangedHandler = this.ActOnTreeViewItemExpandedChangedHandler;
            return(container);
        }
        protected override DependencyObject GetContainerForItemOverride()
        {
            TreeViewItemForMapping container = new TreeViewItemForMapping();

            container.ParentWindow = this.ParentWindow;
            container.ActOnTreeViewItemExpandedChangedHandler = this.ActOnTreeViewItemExpandedChangedHandler;
            container.IsMarked   = this.IsMarked;
            container.IsExpanded = this.IsExpanded;
            return(container);
        }
 public void ChangeExpandedState(bool _is_expanded)
 {
     foreach (object item in this.Items)
     {
         TreeViewItemForMapping tvi = this.ItemContainerGenerator.ContainerFromItem(item) as TreeViewItemForMapping;
         if (tvi != null)
         {
             tvi.IsExpanded = _is_expanded;
             tvi.ChangeExpandedState(_is_expanded);
         }
     }
 }
 public void PropagateMarkingToItems(bool _mark)
 {
     foreach (object item in this.Items)
     {
         TreeViewItemForMapping tvi = this.ItemContainerGenerator.ContainerFromItem(item) as TreeViewItemForMapping;
         if (tvi != null)
         {
             tvi.IsMarked = _mark;
             tvi.PropagateMarkingToItems(_mark);
         }
     }
 }
        public void PropagateContentInfoToItems(WebServiceMapWindow _win)
        {
            if (_win == null)
            {
                return;
            }

            foreach (object item in this.Items)
            {
                TreeViewItemForMapping tvi = this.ItemContainerGenerator.ContainerFromItem(item) as TreeViewItemForMapping;
                if (tvi != null)
                {
                    tvi.ParentWindow = _win;
                }
            }
        }
 private void ItemContainerGenerator_StatusChanged(object sender, EventArgs e)
 {
     if (!(this.PassedEventHanlerToChildren))
     {
         foreach (object item in this.Items)
         {
             TreeViewItemForMapping tvi = TreeViewQuery.GetSelectedTreeViewItem(this, item) as TreeViewItemForMapping;
             if (tvi != null)
             {
                 tvi.ActOnTreeViewItemExpandedChangedHandler = this.ActOnTreeViewItemExpandedChangedHandler;
             }
             else
             {
                 this.PassedEventHanlerToChildren = false;
                 return;
             }
         }
         this.PassedEventHanlerToChildren = true;
     }
 }
        private void eh_MouseEnter(object sender, MouseEventArgs e)
        {
            TreeViewItemForMapping tvi = sender as TreeViewItemForMapping;

            // header highlighting preparation
            if (tvi != null)
            {
                ParameterStructure.Parameter.Parameter p  = tvi.Header as ParameterStructure.Parameter.Parameter;
                ParameterStructure.Component.Component c  = tvi.Header as ParameterStructure.Component.Component;
                WebServiceConnections.TypeNode         tn = tvi.Header as WebServiceConnections.TypeNode;
                if (p != null)
                {
                    // TODO
                }
                else if (c != null)
                {
                    // TODO
                }
                else if (tn != null)
                {
                    // TODO
                }
            }
        }