79 references to Type
PresentationFramework (16)
System\Windows\FrameworkTemplate.cs (1)
1014Names.CurrentFrame.Type = Names.PreviousFrame.Property.Type;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
1057if (_context.CurrentFrame.Member.Type != null && 1058!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String))) 1583Type propertyType = property.Type.UnderlyingType; 2415XamlType parentPropertyType = parentProperty.Type; 2480EmitGoItemsPreamble(_context.CurrentFrame.Member.Type); 2590Debug.Assert(property.Type.UnderlyingType == typeof(DependencyProperty));
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (4)
117if (xamlProperty.Type.UnderlyingType.IsEnum && schemaContext is Baml2006.Baml2006SchemaContext) 119typeConverter = XamlReader.BamlSharedSchemaContext.GetTypeConverter(xamlProperty.Type.UnderlyingType); 127typeConverter = xamlProperty.Type.TypeConverter; 145if (xamlProperty != null && xamlProperty.Type.UnderlyingType == typeof(Boolean))
System\Windows\Markup\WpfXamlLoader.cs (1)
235stack.CurrentFrame.Type = stack.PreviousFrame.Property.Type;
System\Windows\TemplateContent.cs (4)
472XamlType type = stack.CurrentFrame.Property.Type; 866else if (xamlProperty.Type.TypeConverter != null) 868converter = xamlProperty.Type.TypeConverter.ConverterInstance; 954XamlType type = frames.CurrentFrame.Property.Type;
System.Xaml (63)
System\Xaml\Context\ObjectWriterContext.cs (1)
295return frame.Member.Type;
System\Xaml\Context\XamlParserContext.cs (2)
131if (member.IsReadOnly || (member.Type is not null && member.Type.IsUsableAsReadOnly))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
295_context.CurrentType = parentProperty.Type; 299if (parentProperty.Type.IsCollection || parentProperty.Type.IsDictionary) 660XamlType propertyXamlType = property.Type; 663_context.CurrentCollection = Runtime.CreateInstance(property.Type, null); 760if (!property.Type.IsMarkupExtension || !valueXamlType.CanAssignTo(property.Type)) 771if (valueXamlType == XamlLanguage.String || !valueXamlType.CanAssignTo(property.Type)) 850XamlType parentXamlType = parentProperty.Type; 1300XamlType propertyType = property.Type; 1569if (prop.Type.IsXData) 1711ctx.CurrentType = ctx.ParentProperty.Type; 1952XamlType ppXamlType = parentProperty.Type;
System\Xaml\Parser\XamlPullParser.cs (9)
837XamlType memberXamlType = member.Type; 979XamlType propertyType = currentProperty.Type; 1007propertyType = currentProperty.Type; 1087XamlType collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type; 1106if (prop is not null && prop.Type is not null && prop.Type.IsWhitespaceSignificantCollection) 1135if (prop.Type == XamlLanguage.String) 1139if (prop.Type.IsWhitespaceSignificantCollection) 1169XamlType propertyType = property.Type;
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
240value = CreateInstance(property.Type, null);
System\Xaml\Schema\TypeReflector.cs (1)
983if (member.IsReadOnly && !member.Type.IsUsableAsReadOnly)
System\Xaml\Schema\XamlDirective.cs (1)
186return base.Type;
System\Xaml\XamlMarkupExtensionWriter.cs (2)
398(property.IsDirective && (property.Type.IsCollection || property.Type.IsDictionary)))
System\Xaml\XamlMember.cs (6)
533if (Type is not null) 535return Type.DeferringLoader; 673if (result is null && Type is not null) 675result = Type.TypeConverter; 692if (result is null && Type is not null) 694result = Type.ValueSerializer;
System\Xaml\XamlObjectReader.cs (12)
376if (attachedProperty.Type.IsDictionary) 381if (attachedProperty.Type.IsCollection) 509if (property.Type.IsXData) 516if (property.Type.IsDictionary) 521if (property.Type.IsCollection) 532var itemsInfo = ForSequenceItems(source, isAttachable ? null : property, property.Type, context, false /*allowReadOnly*/); 560var itemsInfo = ForDictionaryItems(source, isAttachable ? null : property, property.Type, context); 667var memberType = memberInfo.XamlNode.Member.Type; 1597return XamlLanguage.String.CanAssignTo(property.Type); 1649if ((potentialProperty.Type.UnderlyingType == paraminfo.ParameterType) && 2105property.Type.UnderlyingType == parameter.ParameterType) 2311(context.IsPropertyWriteVisible(property) || property.Type.IsUsableAsReadOnly);
System\Xaml\XamlType.cs (5)
692XamlType contentType = contentWrapper.ContentProperty.Type; 1007if (!member.IsReadOnly || member.Type.IsUsableAsReadOnly) 1043if (!skipReadOnlyCheck && result.IsReadOnly && !result.Type.IsUsableAsReadOnly) 1069if (result.IsReadOnly && !result.Type.IsUsableAsReadOnly) 1551if (excludedMember.IsReadOnly && !excludedMember.Type.IsUsableAsReadOnly)
System\Xaml\XamlXmlWriter.cs (10)
153type = frame.Member.Type; 349containingXamlType = (enumerator.Current.Member is null) || enumerator.Current.Member.IsUnknown ? null : enumerator.Current.Member.Type; 897type = frame.Member.Type; 1184else if (property.IsDirective && (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary))) 1376XamlType memberType = frame.Member.Type; 1683if (XamlLanguage.String.CanAssignTo(property.Type)) 1729if (XamlLanguage.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value)) 1913if ((potentialProperty.Type.UnderlyingType == paraminfo.ParameterType) &&