79 references to Type
PresentationFramework (16)
System\Windows\FrameworkTemplate.cs (1)
1008
Names.CurrentFrame.Type = Names.PreviousFrame.Property.
Type
;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
1058
if (_context.CurrentFrame.Member.
Type
!= null &&
1059
!_context.CurrentFrame.Member.
Type
.UnderlyingType.IsAssignableFrom(typeof(String)))
1586
Type propertyType = property.
Type
.UnderlyingType;
2409
XamlType parentPropertyType = parentProperty.
Type
;
2474
EmitGoItemsPreamble(_context.CurrentFrame.Member.
Type
);
2584
Debug.Assert(property.
Type
.UnderlyingType == typeof(DependencyProperty));
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (4)
116
if (xamlProperty.
Type
.UnderlyingType.IsEnum && schemaContext is Baml2006.Baml2006SchemaContext)
118
typeConverter = XamlReader.BamlSharedSchemaContext.GetTypeConverter(xamlProperty.
Type
.UnderlyingType);
126
typeConverter = xamlProperty.
Type
.TypeConverter;
144
if (xamlProperty != null && xamlProperty.
Type
.UnderlyingType == typeof(Boolean))
System\Windows\Markup\WpfXamlLoader.cs (1)
231
stack.CurrentFrame.Type = stack.PreviousFrame.Property.
Type
;
System\Windows\TemplateContent.cs (4)
470
XamlType type = stack.CurrentFrame.Property.
Type
;
862
else if (xamlProperty.
Type
.TypeConverter != null)
864
converter = xamlProperty.
Type
.TypeConverter.ConverterInstance;
950
XamlType type = frames.CurrentFrame.Property.
Type
;
System.Xaml (63)
System\Xaml\Context\ObjectWriterContext.cs (1)
304
return frame.Member.
Type
;
System\Xaml\Context\XamlParserContext.cs (2)
134
if (member.IsReadOnly || (member.
Type
is not null && member.
Type
.IsUsableAsReadOnly))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
301
_context.CurrentType = parentProperty.
Type
;
305
if (parentProperty.
Type
.IsCollection || parentProperty.
Type
.IsDictionary)
676
XamlType propertyXamlType = property.
Type
;
679
_context.CurrentCollection = Runtime.CreateInstance(property.
Type
, null);
777
if (!property.
Type
.IsMarkupExtension || !valueXamlType.CanAssignTo(property.
Type
))
789
if (valueXamlType == XamlLanguage.String || !valueXamlType.CanAssignTo(property.
Type
))
871
XamlType parentXamlType = parentProperty.
Type
;
1335
XamlType propertyType = property.
Type
;
1609
if (prop.
Type
.IsXData)
1754
ctx.CurrentType = ctx.ParentProperty.
Type
;
2008
XamlType ppXamlType = parentProperty.
Type
;
System\Xaml\Parser\XamlPullParser.cs (9)
879
XamlType memberXamlType = member.
Type
;
1026
XamlType propertyType = currentProperty.
Type
;
1055
propertyType = currentProperty.
Type
;
1139
XamlType collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.
Type
;
1159
if (prop is not null && prop.
Type
is not null && prop.
Type
.IsWhitespaceSignificantCollection)
1191
if (prop.
Type
== XamlLanguage.String)
1196
if (prop.
Type
.IsWhitespaceSignificantCollection)
1231
XamlType propertyType = property.
Type
;
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
252
value = CreateInstance(property.
Type
, null);
System\Xaml\Schema\TypeReflector.cs (1)
1019
if (member.IsReadOnly && !member.
Type
.IsUsableAsReadOnly)
System\Xaml\Schema\XamlDirective.cs (1)
187
return base.
Type
;
System\Xaml\XamlMarkupExtensionWriter.cs (2)
399
(property.IsDirective && (property.
Type
.IsCollection || property.
Type
.IsDictionary)))
System\Xaml\XamlMember.cs (6)
557
if (
Type
is not null)
559
return
Type
.DeferringLoader;
710
if (result is null &&
Type
is not null)
712
result =
Type
.TypeConverter;
730
if (result is null &&
Type
is not null)
732
result =
Type
.ValueSerializer;
System\Xaml\XamlObjectReader.cs (12)
375
if (attachedProperty.
Type
.IsDictionary)
380
if (attachedProperty.
Type
.IsCollection)
510
if (property.
Type
.IsXData)
517
if (property.
Type
.IsDictionary)
522
if (property.
Type
.IsCollection)
533
var itemsInfo = ForSequenceItems(source, isAttachable ? null : property, property.
Type
, context, allowReadOnly: false);
561
var itemsInfo = ForDictionaryItems(source, isAttachable ? null : property, property.
Type
, context);
668
var memberType = memberInfo.XamlNode.Member.
Type
;
1603
return XamlLanguage.String.CanAssignTo(property.
Type
);
1657
if ((potentialProperty.
Type
.UnderlyingType == paraminfo.ParameterType) &&
2117
property.
Type
.UnderlyingType == parameter.ParameterType)
2324
(context.IsPropertyWriteVisible(property) || property.
Type
.IsUsableAsReadOnly);
System\Xaml\XamlType.cs (5)
736
XamlType contentType = contentWrapper.ContentProperty.
Type
;
1076
if (!member.IsReadOnly || member.
Type
.IsUsableAsReadOnly)
1115
if (!skipReadOnlyCheck && result.IsReadOnly && !result.
Type
.IsUsableAsReadOnly)
1144
if (result.IsReadOnly && !result.
Type
.IsUsableAsReadOnly)
1667
if (excludedMember.IsReadOnly && !excludedMember.
Type
.IsUsableAsReadOnly)
System\Xaml\XamlXmlWriter.cs (10)
152
type = frame.Member.
Type
;
353
containingXamlType = (enumerator.Current.Member is null) || enumerator.Current.Member.IsUnknown ? null : enumerator.Current.Member.
Type
;
910
type = frame.Member.
Type
;
1198
else if (property.IsDirective && (property.
Type
is not null && (property.
Type
.IsCollection || property.
Type
.IsDictionary)))
1396
XamlType memberType = frame.Member.
Type
;
1703
if (XamlLanguage.String.CanAssignTo(property.
Type
))
1750
if (XamlLanguage.String.CanAssignTo(property.
Type
) && !string.IsNullOrEmpty(value))
1933
if ((potentialProperty.
Type
.UnderlyingType == paraminfo.ParameterType) &&