RelativeSource.Mode Property

Definition

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

public:
 property System::Windows::Data::RelativeSourceMode Mode { System::Windows::Data::RelativeSourceMode get(); void set(System::Windows::Data::RelativeSourceMode value); };
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

One of the RelativeSourceMode values. The default value is null.

Exceptions

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

Remarks

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