MapConverterFallbackBehavior Property |
Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)
public FallbackBehavior FallbackBehavior { get; set; }
Public Property FallbackBehavior As FallbackBehavior Get Set
Property Value
Type: FallbackBehaviorThe fallback behavior of this MapConverter.
The fallback behavior determines how this MapConverter treats failed conversions. ReturnUnsetValue (the default) specifies that any failed conversions should return UnsetValue, which can be used in combination with Binding.FallbackValue to default bindings to a specific value.
Alternatively, FallbackBehavior.ReturnOriginalValue can be specified so that failed conversions result in the original value being returned. This is useful where mappings are only necessary for a subset of the total possible values. Mappings can be specified where necessary and other values can be returned as is by the MapConverter by setting the fallback behavior to ReturnOriginalValue.