cwensley / Portable.Xaml

Portable .NET library for reading/writing xaml files.
Other
157 stars 39 forks source link

WIP: Use type converter even for matching types #124

Closed grokys closed 1 year ago

grokys commented 6 years ago

Previously, if a type converter was applied to a property of e.g. type string or object then that type converter would never be invoked because the value to be assigned is already of string/object. This is not System.Xaml's behavior as shown by the TypeConverterIsUsedEvenIfMatchingType.

However, fixing this behavior made the ComplexPositionalParameterWrapper fail because an exception is no longer thrown. I can't work out why the exception should be thrown here - the ComplexPositionalParameterWrapper.xml file looks like correct XAML.

@cwensley any idea what's going on here?