Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RelativeSource Members

Implements a markup extension that describes the location of the binding source relative to the position of the binding target.

The following tables list the members exposed by the RelativeSource type.

  Name Description
Public method RelativeSource Overloaded. Initializes a new instance of the RelativeSource class.
Top

  Name Description
Public property 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.
Public property AncestorType Gets or sets the type of ancestor to look for.
Public property Mode Gets or sets a RelativeSourceMode value that describes the location of the binding source relative to the position of the binding target.
Public property Static PreviousData Gets a static value that is used to return a RelativeSource constructed for the PreviousData mode.
Public property Static Self Gets a static value that is used to return a RelativeSource constructed for the Self mode.
Public property Static TemplatedParent Gets a static value that is used to return a RelativeSource constructed for the TemplatedParent mode.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method ProvideValue Overridden. 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.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ShouldSerializeAncestorLevel Indicates whether the AncestorLevel property should be persisted.
Public method ShouldSerializeAncestorType Indicates whether the AncestorType property should be persisted.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.ComponentModel.ISupportInitialize.BeginInit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.ComponentModel.ISupportInitialize.EndInit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft