29 overrides of CanConvertToString
PresentationCore (23)
System\Windows\Input\Command\KeyGestureValueSerializer.cs (1)
48public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Input\Command\MouseActionValueSerializer.cs (1)
44public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Input\Command\MouseGestureValueSerializer.cs (1)
44public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\BrushValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\CacheModeValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\DoubleCollectionValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\GeometryValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\Int32CollectionValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\PathFigureCollectionValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\PointCollectionValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\TransformValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\Converters\Generated\VectorCollectionValueSerializer.cs (1)
60public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\FontFamilyValueSerializer.cs (1)
50public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media\ImageSourceValueSerializer.cs (1)
39public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Matrix3DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point3DCollectionValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point3DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Point4DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\QuaternionValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Rect3DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Size3DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Vector3DCollectionValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Media3D\Converters\Generated\Vector3DValueSerializer.cs (1)
56public override bool CanConvertToString(object value, IValueSerializerContext context)
PresentationFramework (3)
System\Windows\Input\Command\CommandValueSerializer.cs (1)
20public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1522public override bool CanConvertToString(object value, IValueSerializerContext context)
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
16public override bool CanConvertToString(object value, IValueSerializerContext context)
System.Xaml (3)
ms\Internal\Markup\StringValueSerializer.cs (1)
17public override bool CanConvertToString(object? value, IValueSerializerContext? context)
ms\Internal\Markup\TypeConverterValueSerializer.cs (1)
25public override bool CanConvertToString(object? value, IValueSerializerContext? context)
System\Windows\Markup\DateTimeValueSerializer.cs (1)
37public override bool CanConvertToString(object? value, IValueSerializerContext? context) => value is DateTime;
9 references to CanConvertToString
PresentationFramework (4)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
71if (valueSerializer != null && valueSerializer.CanConvertToString(_instance, Context)) 652return serializer != null && serializer.CanConvertToString(value, Context); 1003Debug.Assert(serializer != null && serializer.CanConvertToString(_object.Instance, _object.Context), 1028Debug.Assert(serializer != null && serializer.CanConvertToString(_object.Instance, _object.Context),
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
159return serializer.CanConvertToString(instance, context);
System.Xaml.Tests (4)
System\Windows\Markup\StringValueSerializerTests.cs (1)
14Assert.True(serializer.CanConvertToString(null, null));
System\Windows\Markup\ValueSerializerTests.cs (3)
26Assert.False(serializer.CanConvertToString(value, null)); 27Assert.False(serializer.CanConvertToString(value, new CustomValueSerializerContext())); 157Assert.True(serializer.CanConvertToString(null!, null));