79 references to Type
PresentationFramework (16)
System\Windows\FrameworkTemplate.cs (1)
1023
Names.CurrentFrame.Type = Names.PreviousFrame.Property.
Type
;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
1062
if (_context.CurrentFrame.Member.
Type
!= null &&
1063
!_context.CurrentFrame.Member.
Type
.UnderlyingType.IsAssignableFrom(typeof(String)))
1588
Type propertyType = property.
Type
.UnderlyingType;
2420
XamlType parentPropertyType = parentProperty.
Type
;
2485
EmitGoItemsPreamble(_context.CurrentFrame.Member.
Type
);
2595
Debug.Assert(property.
Type
.UnderlyingType == typeof(DependencyProperty));
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (4)
127
if (xamlProperty.
Type
.UnderlyingType.IsEnum && schemaContext is Baml2006.Baml2006SchemaContext)
129
typeConverter = XamlReader.BamlSharedSchemaContext.GetTypeConverter(xamlProperty.
Type
.UnderlyingType);
137
typeConverter = xamlProperty.
Type
.TypeConverter;
155
if (xamlProperty != null && xamlProperty.
Type
.UnderlyingType == typeof(Boolean))
System\Windows\Markup\WpfXamlLoader.cs (1)
236
stack.CurrentFrame.Type = stack.PreviousFrame.Property.
Type
;
System\Windows\TemplateContent.cs (4)
475
XamlType type = stack.CurrentFrame.Property.
Type
;
869
else if (xamlProperty.
Type
.TypeConverter != null)
871
converter = xamlProperty.
Type
.TypeConverter.ConverterInstance;
957
XamlType type = frames.CurrentFrame.Property.
Type
;
System.Xaml (63)
System\Xaml\Context\ObjectWriterContext.cs (1)
298
return frame.Member.
Type
;
System\Xaml\Context\XamlParserContext.cs (2)
133
if (member.IsReadOnly || (member.
Type
!= null && member.
Type
.IsUsableAsReadOnly))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
297
_context.CurrentType = parentProperty.
Type
;
301
if (parentProperty.
Type
.IsCollection || parentProperty.
Type
.IsDictionary)
662
XamlType propertyXamlType = property.
Type
;
665
_context.CurrentCollection = Runtime.CreateInstance(property.
Type
, null);
762
if (!property.
Type
.IsMarkupExtension || !valueXamlType.CanAssignTo(property.
Type
))
773
if (valueXamlType == XamlLanguage.String || !valueXamlType.CanAssignTo(property.
Type
))
852
XamlType parentXamlType = parentProperty.
Type
;
1302
XamlType propertyType = property.
Type
;
1571
if (prop.
Type
.IsXData)
1713
ctx.CurrentType = ctx.ParentProperty.
Type
;
1954
XamlType ppXamlType = parentProperty.
Type
;
System\Xaml\Parser\XamlPullParser.cs (9)
839
XamlType memberXamlType = member.
Type
;
981
XamlType propertyType = currentProperty.
Type
;
1009
propertyType = currentProperty.
Type
;
1089
XamlType collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.
Type
;
1108
if (prop != null && prop.
Type
!= null && prop.
Type
.IsWhitespaceSignificantCollection)
1137
if (prop.
Type
== XamlLanguage.String)
1141
if (prop.
Type
.IsWhitespaceSignificantCollection)
1171
XamlType propertyType = property.
Type
;
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
242
value = CreateInstance(property.
Type
, null);
System\Xaml\Schema\TypeReflector.cs (1)
985
if (member.IsReadOnly && !member.
Type
.IsUsableAsReadOnly)
System\Xaml\Schema\XamlDirective.cs (1)
188
return base.
Type
;
System\Xaml\XamlMarkupExtensionWriter.cs (2)
399
(property.IsDirective && (property.
Type
.IsCollection || property.
Type
.IsDictionary)))
System\Xaml\XamlMember.cs (6)
536
if (
Type
!= null)
538
return
Type
.DeferringLoader;
676
if (result == null &&
Type
!= null)
678
result =
Type
.TypeConverter;
695
if (result == null &&
Type
!= null)
697
result =
Type
.ValueSerializer;
System\Xaml\XamlObjectReader.cs (12)
381
if (attachedProperty.
Type
.IsDictionary)
386
if (attachedProperty.
Type
.IsCollection)
514
if (property.
Type
.IsXData)
521
if (property.
Type
.IsDictionary)
526
if (property.
Type
.IsCollection)
537
var itemsInfo = ForSequenceItems(source, isAttachable ? null : property, property.
Type
, context, false /*allowReadOnly*/);
565
var itemsInfo = ForDictionaryItems(source, isAttachable ? null : property, property.
Type
, context);
672
var memberType = memberInfo.XamlNode.Member.
Type
;
1602
return XamlLanguage.String.CanAssignTo(property.
Type
);
1654
if ((potentialProperty.
Type
.UnderlyingType == paraminfo.ParameterType) &&
2110
property.
Type
.UnderlyingType == parameter.ParameterType)
2316
(context.IsPropertyWriteVisible(property) || property.
Type
.IsUsableAsReadOnly);
System\Xaml\XamlType.cs (5)
695
XamlType contentType = contentWrapper.ContentProperty.
Type
;
1010
if (!member.IsReadOnly || member.
Type
.IsUsableAsReadOnly)
1046
if (!skipReadOnlyCheck && result.IsReadOnly && !result.
Type
.IsUsableAsReadOnly)
1072
if (result.IsReadOnly && !result.
Type
.IsUsableAsReadOnly)
1554
if (excludedMember.IsReadOnly && !excludedMember.
Type
.IsUsableAsReadOnly)
System\Xaml\XamlXmlWriter.cs (10)
155
type = frame.Member.
Type
;
351
containingXamlType = (enumerator.Current.Member == null) || enumerator.Current.Member.IsUnknown ? null : enumerator.Current.Member.
Type
;
899
type = frame.Member.
Type
;
1186
else if (property.IsDirective && (property.
Type
!= null && (property.
Type
.IsCollection || property.
Type
.IsDictionary)))
1378
XamlType memberType = frame.Member.
Type
;
1685
if (XamlLanguage.String.CanAssignTo(property.
Type
))
1731
if (XamlLanguage.String.CanAssignTo(property.
Type
) && !string.IsNullOrEmpty(value))
1915
if ((potentialProperty.
Type
.UnderlyingType == paraminfo.ParameterType) &&