Property Mode
Mode
mode of RelativeSource
[ConstructorArgument("mode")]
public RelativeSourceMode Mode { get; set; }
Property Value
Remarks
Mode is read-only after initialization. If Mode is not set explicitly, setting AncestorType or AncestorLevel will implicitly lock the Mode to FindAncestor.
Exceptions
- InvalidOperationException
RelativeSource Mode is immutable after initialization; instead of changing the Mode on this instance, create a new RelativeSource or use a different static instance.