@@ -3875,7 +3875,7 @@ string buildBindBack()
3875
3875
{
3876
3876
if ( ! string . IsNullOrWhiteSpace ( rawBindBack ) )
3877
3877
{
3878
- var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] , GetType ( dataType ) ) ;
3878
+ var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] , GetType ( dataType ) ) . ToDisplayString ( NullableFlowState . None ) ;
3879
3879
return $ "(___ctx, __value) => {{ if(___ctx is { dataType } ___tctx) {{ ___tctx.{ rawBindBack } (({ propertyType } )__value); }} }}";
3880
3880
}
3881
3881
else
@@ -3887,8 +3887,8 @@ string buildBindBack()
3887
3887
{
3888
3888
if ( propertyPaths . properties . Length == 1 )
3889
3889
{
3890
- var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] , GetType ( dataType ) ) ;
3891
- return $ "(___ctx, __value) => {{ if(___ctx is { dataType } ___tctx) {{ { contextFunction } = ({ targetPropertyType } )global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof({ targetPropertyType . ToDisplayString ( NullableFlowState . None ) } ), __value); }} }}";
3890
+ var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] , GetType ( dataType ) ) . ToDisplayString ( NullableFlowState . None ) ;
3891
+ return $ "(___ctx, __value) => {{ if(___ctx is { dataType } ___tctx) {{ { contextFunction } = ({ targetPropertyType } )global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof({ targetPropertyType } ), __value); }} }}";
3892
3892
}
3893
3893
else
3894
3894
{
@@ -3928,10 +3928,10 @@ string buildBindBack()
3928
3928
{
3929
3929
if ( propertyPaths . properties . Length == 1 )
3930
3930
{
3931
- var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] ) ;
3931
+ var targetPropertyType = GetXBindPropertyPathType ( propertyPaths . properties [ 0 ] ) . ToDisplayString ( NullableFlowState . None ) ;
3932
3932
return $ "(___ctx, __value) => {{ " +
3933
3933
$ "if(___ctx is global::{ _className . ns + "." + _className . className } ___tctx) " +
3934
- $ "{ rawFunction } = ({ targetPropertyType } )global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof({ targetPropertyType . ToDisplayString ( NullableFlowState . None ) } ), __value);" +
3934
+ $ "{ rawFunction } = ({ targetPropertyType } )global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof({ targetPropertyType } ), __value);" +
3935
3935
$ " }}";
3936
3936
}
3937
3937
else
@@ -4105,7 +4105,7 @@ private string GetCustomMarkupExtensionValue(XamlMemberDefinition member)
4105
4105
{
4106
4106
// The target property implements IConvertible, therefore
4107
4107
// cast ProvideValue() using Convert.ChangeType
4108
- var targetTypeDisplay = propertyType . ToDisplayString ( ) ;
4108
+ var targetTypeDisplay = propertyType . ToDisplayString ( NullableFlowState . None ) ;
4109
4109
var targetType = $ "typeof({ targetTypeDisplay } )";
4110
4110
4111
4111
// It's important to cast to string before performing the conversion
0 commit comments