예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeViewCollectionModifiedEventArgs"/> class.
 /// </summary>
 /// <param name="routedEvent">The routed event.</param>
 /// <param name="treeViewCollectionOperation">The modifying operation.</param>
 /// <param name="filledItemCount">The number of filled items.</param>
 public TreeViewCollectionModifiedEventArgs(RoutedEvent routedEvent, TreeViewCollectionOperation treeViewCollectionOperation, int filledItemCount)
     : base(routedEvent)
 {
     TreeViewCollectionOperation = treeViewCollectionOperation;
     FilledItemCount             = filledItemCount;
 }
 /// <summary>
 /// Invokes handlers of the <see cref="CollectionModified"/> event.
 /// </summary>
 /// <param name="treeViewCollectionOperation">The modifying operation.</param>
 protected virtual void NotifyCollectionModified(TreeViewCollectionOperation treeViewCollectionOperation)
 {
     RaiseEvent(new TreeViewCollectionModifiedEventArgs(CollectionModifiedEvent, treeViewCollectionOperation, Items.Count));
 }