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