RelativeSource.PreviousData Property


Gets a static value that is used to return a RelativeSource constructed for the PreviousData mode.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static RelativeSource PreviousData { get; }

Three of the four RelativeSourceMode values, PreviousData, Self, or TemplatedParent, can produce a RelativeSource that is wholly static, containing no unique private values. All uses of the static property can share the same object, eliminating the need to allocate separate objects for each use. Therefore, using the static property reduces memory usage.

.NET Framework
Available since 3.0
Return to top