void InitVisualControl()
 {
     this.NodeVisualControl = new PositionedGraphNodeControl();
     // propagate events from nodeVisualControl
     this.NodeVisualControl.PropertyExpanded     += new EventHandler <PositionedPropertyEventArgs>(NodeVisualControl_PropertyExpanded);
     this.NodeVisualControl.PropertyCollapsed    += new EventHandler <PositionedPropertyEventArgs>(NodeVisualControl_PropertyCollapsed);
     this.NodeVisualControl.ContentNodeExpanded  += new EventHandler <ContentNodeEventArgs>(NodeVisualControl_ContentNodeExpanded);
     this.NodeVisualControl.ContentNodeCollapsed += new EventHandler <ContentNodeEventArgs>(NodeVisualControl_ContentNodeCollapsed);
 }
        private void initVisualControl()
        {
            this.nodeVisualControl           = NodeControlCache.Instance.GetNodeControl();
            this.nodeVisualControl.MaxHeight = MaxHeight;

            // propagate events from nodeVisualControl
            this.nodeVisualControl.PropertyExpanded     += new EventHandler <PositionedPropertyEventArgs>(NodeVisualControl_PropertyExpanded);
            this.nodeVisualControl.PropertyCollapsed    += new EventHandler <PositionedPropertyEventArgs>(NodeVisualControl_PropertyCollapsed);
            this.nodeVisualControl.ContentNodeExpanded  += new EventHandler <ContentNodeEventArgs>(NodeVisualControl_ContentNodeExpanded);
            this.nodeVisualControl.ContentNodeCollapsed += new EventHandler <ContentNodeEventArgs>(NodeVisualControl_ContentNodeCollapsed);
        }
Esempio n. 3
0
 public void ReturnForReuse(PositionedGraphNodeControl controlToReuse)
 {
     controls.Push(controlToReuse);
 }
 public void ReleaseNodeVisualControl()
 {
     this.NodeVisualControl.SetDataContext(null);
     this.NodeVisualControl = null;
 }
Esempio n. 5
0
 public void ReturnForReuse(PositionedGraphNodeControl controlToReuse)
 {
     // not used now, avoid leaking!
     //controls.Push(controlToReuse);
 }