コード例 #1
0
 /// <summary>
 /// Bubbles up a property changed event, so the root node can raise an event.
 /// </summary>
 /// <param name="sender">TreeViewItem doing the change.</param>
 /// <param name="propertyName">Name of the property which has changed.</param>
 public virtual void BubbleUpOnChildPropertyChanged(TreeviewBaseViewModel sender, string propertyName)
 {
     if (Parent != null)
     {
         Parent.BubbleUpOnChildPropertyChanged(sender, propertyName);
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeviewLeafViewModel"/> class.
 /// </summary>
 /// <param name="parent">Parent item in the tree view.</param>
 public TreeviewLeafViewModel(TreeviewBaseViewModel parent)
     : base(parent)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeviewBaseViewModel"/> class.
 /// </summary>
 /// <param name="parent">Parent item in the tree view, or null for root items.</param>
 protected TreeviewBaseViewModel(TreeviewBaseViewModel parent)
 {
     Parent = parent;
 }