RelativeSource Class
Implements a markup extension that describes the location of the binding source relative to the position of the binding target.
http://msdn.microsoft.com/en-us/library/system.windows.data.relativesource.aspx
Methods
From RelativeSource
Name | Description |
---|---|
ProvideValue | Returns an object that should be set as the value on the target object's property for this markup extension. For RelativeSource, this is another RelativeSource, using the appropriate source for the specified mode |
Properties
From RelativeSource
Name | Description | |
---|---|---|
![]() |
AncestorLevel | Gets or sets the level of ancestor to look for, in FindAncestor mode. Use 1 to indicate the one nearest to the binding target element. |
![]() |
AncestorType | Gets or sets the type of ancestor to look for |
![]() |
Mode | Gets or sets relative source mode |
![]() |
PreviousData | Gets a static value that is used to return a RelativeSource constructed for the PreviousData mode |
![]() |
Self | Gets a static value that is used to return a RelativeSource constructed for the Self mode |
![]() |
TemplatedParent | Gets a static value that is used to return a RelativeSource constructed for the TemplatedParent mode |


Events
RelativeSource has no events