MapConverter.FallbackBehavior Property

DevZest WPF Docking

MapConverterFallbackBehavior Property
Gets or sets the fallback behavior for this MapConverter. This is a dependency property.

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)
Syntax
public FallbackBehavior FallbackBehavior { get; set; }
Public Property FallbackBehavior As FallbackBehavior
	Get
	Set

Property Value

Type: FallbackBehavior
The fallback behavior of this MapConverter.
Remarks

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.

See Also