RelativeSource.Mode RelativeSource.Mode RelativeSource.Mode RelativeSource.Mode Property


Gets or sets a RelativeSourceMode value that describes the location of the binding source relative to the position of the binding target.

 property System::Windows::Data::RelativeSourceMode Mode { System::Windows::Data::RelativeSourceMode get(); void set(System::Windows::Data::RelativeSourceMode value); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public System.Windows.Data.RelativeSourceMode Mode { get; set; }
member this.Mode : System.Windows.Data.RelativeSourceMode with get, set
Public Property Mode As RelativeSourceMode
Property Value

This property is immutable after initialization. Instead of changing the Mode on this instance, create a new RelativeSource or use a different static instance.


This property is read-only after initialization. If this property is not set explicitly, setting the AncestorType or the AncestorType and the AncestorLevel properties will implicitly lock this property value to FindAncestor.

XAML Text Usage

For XAML information, see RelativeSource MarkupExtension.

Applies to

See Also