RelativeSource Properties

The RelativeSource type exposes the following members.

  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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft