Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataGridRow.OnPropertyChanged Method

Invoked whenever the effective value of any dependency property on this DataGridRow has been updated.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
protected override void OnPropertyChanged(
	DependencyPropertyChangedEventArgs e
)

Parameters

e
Type: System.Windows.DependencyPropertyChangedEventArgs

The event data that describes the property that changed, as well as old and new values.

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft. All rights reserved.