Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RelativeSource Members

RelativeSource Members

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

The RelativeSource type exposes the following members.

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

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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. (Overrides MarkupExtension.ProvideValue(IServiceProvider).)
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

  NameDescription
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 member PreviousData Gets a static value that is used to return a RelativeSource constructed for the PreviousData mode.
Public property Static member Self Gets a static value that is used to return a RelativeSource constructed for the Self mode.
Public property Static member TemplatedParent Gets a static value that is used to return a RelativeSource constructed for the TemplatedParent mode.
Top

  NameDescription
Explicit interface implemetation Private method ISupportInitialize.BeginInit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method ISupportInitialize.EndInit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top

Community Additions

ADD
Show:
© 2015 Microsoft