Share via


RelativeBindingSource Class

Definition

Specifies a relative source for a binding, such as Self, TemplatedParent, or FindAncestor.

public ref class RelativeBindingSource sealed
public sealed class RelativeBindingSource
type RelativeBindingSource = class
Public NotInheritable Class RelativeBindingSource
Inheritance
RelativeBindingSource

Constructors

Name Description
RelativeBindingSource(RelativeBindingSourceMode, Type, Int32)

Creates a new RelativeBindingSource with the specified mode, ancestor type, and level.

Properties

Name Description
AncestorLevel

Gets the 1-based level of ancestor to find.

AncestorType

Gets the ancestor type to find when using FindAncestor or FindAncestorBindingContext modes.

Mode

Gets the relative binding source mode.

Self

Gets a RelativeBindingSource that binds to the element itself.

TemplatedParent

Gets a RelativeBindingSource that binds to the templated parent.

Applies to