DataGridRow.OnPropertyChanged(DependencyPropertyChangedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invoked whenever the effective value of any dependency property on this DataGridRow has been updated.
protected:
override void OnPropertyChanged(System::Windows::DependencyPropertyChangedEventArgs e);
protected override void OnPropertyChanged (System.Windows.DependencyPropertyChangedEventArgs e);
override this.OnPropertyChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
Protected Overrides Sub OnPropertyChanged (e As DependencyPropertyChangedEventArgs)
Parameters
The event data that describes the property that changed, as well as old and new values.
Remarks
This method overrides FrameworkElement.OnPropertyChanged. The specific dependency property that changed is reported in the arguments parameter.
Override this method to respond to changes to the AlternationIndex property. The AlternationIndex property does not have its own property changed method because the AlternationIndexProperty field reuses the read-only ItemsControl.AlternationIndexProperty field.
Notes to Inheritors
Always call the base implementation as the first operation in your implementation. Failure to do this will significantly disable the entire WPF property system, which causes incorrect values to be reported. The specific DataGridRow implementation is also responsible for maintaining the correct state for the AlternationIndex property, which affects the visible user interface and invalidates the visual tree based on property value changes at appropriate times.