RelativeSource.Mode Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
One of the RelativeSourceMode values. The default value is null
.
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.
For XAML information, see RelativeSource MarkupExtension.
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: