/// <summary>
        /// Creates a new TreeViewItem to use to display the object.
        /// </summary>
        /// <returns>A new TreeViewItem.</returns>
        protected override DependencyObject GetContainerForItemOverride()
        {
            GetContainerForItemOverrideActions.DoPreTest(null);
            DependencyObject obj = base.GetContainerForItemOverride();

            GetContainerForItemOverrideActions.DoTest(obj);
            return(obj);
        }
 /// <summary>
 /// Raises an Expanded event when the IsExpanded property changes from
 /// false to true.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnExpanded(RoutedEventArgs e)
 {
     ExpandedActions.DoPreTest(e);
     base.OnExpanded(e);
     ExpandedActions.DoTest(e);
 }
 /// <summary>
 /// Called when the Header property changes.
 /// </summary>
 /// <param name="oldHeader">
 /// The old value of the Header property.
 /// </param>
 /// <param name="newHeader">
 /// The new value of the Header property.
 /// </param>
 protected override void OnHeaderChanged(object oldHeader, object newHeader)
 {
     HeaderChangedActions.DoPreTest(oldHeader, newHeader);
     base.OnHeaderChanged(oldHeader, newHeader);
     HeaderChangedActions.DoTest(oldHeader, newHeader);
 }
 /// <summary>
 /// Handle the MouseLeftButtonUp event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     MouseLeftButtonUpActions.DoPreTest(e);
     base.OnMouseLeftButtonUp(e);
     MouseLeftButtonUpActions.DoTest(e);
 }
 /// <summary>
 /// Handle the KeyUp event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnKeyUp(KeyEventArgs e)
 {
     KeyUpActions.DoPreTest(e);
     base.OnKeyUp(e);
     KeyUpActions.DoTest(e);
 }
 /// <summary>
 /// Handle changes to the Items collection.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
 {
     OnItemsChangedActions.DoPreTest(e);
     base.OnItemsChanged(e);
     OnItemsChangedActions.DoTest(e);
 }
 /// <summary>
 /// Prepares the specified element to display the specified item.
 /// </summary>
 /// <param name="element">
 /// Element used to display the specified item.
 /// </param>
 /// <param name="item">Specified item.</param>
 protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
 {
     PrepareContainerForItemOverrideActions.DoPreTest(element, item);
     base.PrepareContainerForItemOverride(element, item);
     PrepareContainerForItemOverrideActions.DoTest(element, item);
 }
Exemple #8
0
 /// <summary>
 /// Performs test actions for the OnTextChanged method.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnTextChanged(RoutedEventArgs e)
 {
     TextChangedActions.DoPreTest(e);
     base.OnTextChanged(e);
     TextChangedActions.DoTest(e);
 }
 /// <summary>
 /// Raises the ParserError event when there is an error in parsing user
 /// input.
 /// </summary>
 /// <param name="e">Event args.</param>
 protected override void OnParseError(UpDownParseErrorEventArgs e)
 {
     ParseErrorActions.DoPreTest(e);
     base.OnParseError(e);
     ParseErrorActions.DoTest(e);
 }
 /// <summary>
 /// Called when IsEditable property value changed.
 /// </summary>
 /// <param name="oldValue">The old value.</param>
 /// <param name="newValue">The new value.</param>
 protected override void OnIsEditableChanged(bool oldValue, bool newValue)
 {
     IsEditableChangedActions.DoPreTest(oldValue, newValue);
     base.OnIsEditableChanged(oldValue, newValue);
     IsEditableChangedActions.DoTest(oldValue, newValue);
 }
 /// <summary>
 /// Override UpDownBase&lt;T&gt;.OnValueChanging to do validation and
 /// coercion.
 /// </summary>
 /// <param name="e">Event args.</param>
 protected override void OnValueChanging(RoutedPropertyChangingEventArgs <double> e)
 {
     ValueChangingActions.DoPreTest(e);
     base.OnValueChanging(e);
     ValueChangingActions.DoTest(e);
 }
 /// <summary>
 /// Called when the DecimalPlaces property value has changed.
 /// </summary>
 /// <param name="oldValue">
 /// Old value of the DecimalPlaces property.
 /// </param>
 /// <param name="newValue">
 /// New value of the DecimalPlaces property.
 /// </param>
 protected override void OnDecimalPlacesChanged(int oldValue, int newValue)
 {
     DecimalPlacesChangedActions.DoPreTest(oldValue, newValue);
     base.OnDecimalPlacesChanged(oldValue, newValue);
     DecimalPlacesChangedActions.DoTest(oldValue, newValue);
 }
 /// <summary>
 /// Called when the Increment property value has changed.
 /// </summary>
 /// <param name="oldValue">Old value of the Increment property.</param>
 /// <param name="newValue">New value of the Increment property.</param>
 protected override void OnIncrementChanged(double oldValue, double newValue)
 {
     IncrementChangedActions.DoPreTest(oldValue, newValue);
     base.OnIncrementChanged(oldValue, newValue);
     IncrementChangedActions.DoTest(oldValue, newValue);
 }
Exemple #14
0
 /// <summary>
 /// Called when the Content property changes.
 /// </summary>
 /// <param name="oldContent">
 /// The old value of the Content property.
 /// </param>
 /// <param name="newContent">
 /// The new value of the Content property.
 /// </param>
 protected override void OnContentChanged(object oldContent, object newContent)
 {
     ContentChangedActions.DoPreTest(oldContent, newContent);
     base.OnContentChanged(oldContent, newContent);
     ContentChangedActions.DoTest(oldContent, newContent);
 }
 /// <summary>
 /// Raises the SelectedItemChanged event when the SelectedItem property
 /// value changes.
 /// </summary>
 /// <param name="e">
 /// Provides the item that was previously selected and the item that is
 /// currently selected for the SelectedItemChanged event.
 /// </param>
 protected override void OnSelectedItemChanged(RoutedPropertyChangedEventArgs <object> e)
 {
     SelectedItemChangedActions.DoPreTest(e);
     base.OnSelectedItemChanged(e);
     SelectedItemChangedActions.DoTest(e);
 }
Exemple #16
0
 /// <summary>
 /// Performs test actions for the OnPopulating method.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnPopulating(PopulatingEventArgs e)
 {
     PopulatingActions.DoPreTest(e);
     base.OnPopulating(e);
     PopulatingActions.DoTest(e);
 }
Exemple #17
0
 /// <summary>
 /// Performs test actions for the OnSelectionChanged method.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnSelectionChanged(SelectionChangedEventArgs e)
 {
     SelectionChangedActions.DoPreTest(e);
     base.OnSelectionChanged(e);
     SelectionChangedActions.DoTest(e);
 }
 /// <summary>
 /// Occurs when the spinner spins.
 /// </summary>
 /// <param name="e">Event args.</param>
 protected override void OnSpin(SpinEventArgs e)
 {
     SpinActions.DoPreTest(e);
     base.OnSpin(e);
     SpinActions.DoTest(e);
 }
Exemple #19
0
 /// <summary>
 /// Performs test actions for the OnDropDownClosed method.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnDropDownClosed(RoutedPropertyChangedEventArgs <bool> e)
 {
     DropDownClosedActions.DoPreTest(e);
     base.OnDropDownClosed(e);
     DropDownClosedActions.DoTest(e);
 }
 /// <summary>
 /// Processes user input when the TextBox.TextChanged event occurs.
 /// </summary>
 /// <param name="text">User input.</param>
 protected override void ApplyValue(string text)
 {
     ApplyValueActions.DoPreTest(text);
     base.ApplyValue(text);
     ApplyValueActions.DoTest(text);
 }
 /// <summary>
 /// Undoes the effects of PrepareContainerForItemOverride.
 /// </summary>
 /// <param name="element">The container element.</param>
 /// <param name="item">The contained item.</param>
 protected override void ClearContainerForItemOverride(DependencyObject element, object item)
 {
     ClearContainerForItemOverrideActions.DoPreTest(element, item);
     base.ClearContainerForItemOverride(element, item);
     ClearContainerForItemOverrideActions.DoTest(element, item);
 }
 /// <summary>
 /// Called by OnSpin when the spin direction is SpinDirection.Increase.
 /// </summary>
 protected override void OnIncrement()
 {
     IncrementActions.DoPreTest();
     base.OnIncrement();
     IncrementActions.DoTest();
 }
 /// <summary>
 /// Handle the LostFocus event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnLostFocus(RoutedEventArgs e)
 {
     LostFocusActions.DoPreTest(e);
     base.OnLostFocus(e);
     LostFocusActions.DoTest(e);
 }
 /// <summary>
 /// Called by OnSpin when the spin direction is SpinDirection.Decrease.
 /// </summary>
 protected override void OnDecrement()
 {
     DecrementActions.DoPreTest();
     base.OnDecrement();
     DecrementActions.DoTest();
 }
 /// <summary>
 /// Handle the MouseMove event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnMouseMove(MouseEventArgs e)
 {
     MouseMoveActions.DoPreTest(e);
     base.OnMouseMove(e);
     MouseMoveActions.DoTest(e);
 }
 /// <summary>
 /// Called when SpinnerStyle property value has changed.
 /// </summary>
 /// <param name="oldValue">The old value.</param>
 /// <param name="newValue">The new value.</param>
 protected override void OnSpinnerStyleChanged(Style oldValue, Style newValue)
 {
     SpinnerStyleChangedActions.DoPreTest(oldValue, newValue);
     base.OnSpinnerStyleChanged(oldValue, newValue);
     SpinnerStyleChangedActions.DoTest(oldValue, newValue);
 }
 /// <summary>
 /// Apply a control template and updates its visual
 /// state.
 /// </summary>
 public override void OnApplyTemplate()
 {
     ApplyTemplateActions.DoPreTest();
     base.OnApplyTemplate();
     ApplyTemplateActions.DoTest();
 }
 /// <summary>
 /// Called when the Maximum property value has changed.
 /// </summary>
 /// <param name="oldValue">Old value of the Maximum property.</param>
 /// <param name="newValue">New value of the Maximum property.</param>
 protected override void OnMaximumChanged(double oldValue, double newValue)
 {
     MaximumChangedActions.DoPreTest(oldValue, newValue);
     base.OnMaximumChanged(oldValue, newValue);
     MaximumChangedActions.DoTest(oldValue, newValue);
 }
 /// <summary>
 /// Called when the HeaderTemplate property changes.
 /// </summary>
 /// <param name="oldHeaderTemplate">
 /// The old value of the HeaderTemplate property.
 /// </param>
 /// <param name="newHeaderTemplate">
 /// The new value of the HeaderTemplate property.
 /// </param>
 protected override void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate)
 {
     HeaderTemplateChangedActions.DoPreTest(oldHeaderTemplate, newHeaderTemplate);
     base.OnHeaderTemplateChanged(oldHeaderTemplate, newHeaderTemplate);
     HeaderTemplateChangedActions.DoTest(oldHeaderTemplate, newHeaderTemplate);
 }
Exemple #30
0
 /// <summary>
 /// Performs test actions for the OnDropDownOpening method.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnDropDownOpening(RoutedPropertyChangingEventArgs <bool> e)
 {
     DropDownOpeningActions.DoPreTest(e);
     base.OnDropDownOpening(e);
     DropDownOpeningActions.DoTest(e);
 }