XamlObjectWriterSettings.IgnoreCanConvert Property

.NET Framework (current version)
 

Gets or sets a value that specifies whether the XAML writer should ignore (not call) CanConvertFrom implementations on a TypeConverter in type-converter situations.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public bool IgnoreCanConvert { get; set; }

Property Value

Type: System.Boolean

true if the XAML writer ignores CanConvertFrom implementations; otherwise, false. The default is false.

The TypeConverter class and its CanConvertFrom method are part of an overall design for type conversion in the CLR. In XAML systems, you can typically assume that type-converter input is identifiable by the XAML reader, and for purposes of input, is always a string. If you set this property to true, you enable a mode where this assumption is codified in the XAML object writer behavior.

This mode supports a compatibility requirement for previous versions of WPF XAML.

.NET Framework
Available since 4.0
Return to top
Show: