57 references to IsDirective
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2416
!parentProperty.
IsDirective
&& (flags & ReaderFlags_AddedToTree) == 0)
System\Windows\Markup\WpfXamlLoader.cs (5)
256
if (!(xamlReader.Member.
IsDirective
&& xamlReader.Member == XamlReaderHelper.Freeze) &&
266
if (!stack.CurrentFrame.Property.
IsDirective
)
330
if (!(currentProperty.
IsDirective
&& currentProperty == XamlReaderHelper.Freeze) &&
356
if (stack.CurrentFrame.Property.
IsDirective
&& stack.CurrentFrame.Property == XamlLanguage.Shared)
371
if (stack.CurrentFrame.Property.
IsDirective
&& stack.CurrentFrame.Property == XamlReaderHelper.Freeze)
System\Windows\TemplateContent.cs (2)
574
xamlReader.Member.
IsDirective
== false)
1046
return (member.IsUnknown && member.
IsDirective
&& member.Name == "Freeze");
System.Xaml (40)
System\Xaml\InfosetObjects\DeferredWriter.cs (1)
149
Debug.Assert(!property.
IsDirective
&& !property.IsUnknown);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (14)
653
if (!property.
IsDirective
&& !property.IsAttachable)
670
if (property.
IsDirective
&& property != XamlLanguage.Items && property != XamlLanguage.PositionalParameters)
792
if (property.
IsDirective
&& property == XamlLanguage.Key && !Logic_ShouldConvertKey(_context))
870
if (parentProperty.
IsDirective
)
1368
if (property.
IsDirective
&&
1552
if (skipDirectives && prop.
IsDirective
)
1567
if (value is XAML3.MarkupExtension me && !prop.
IsDirective
)
1623
if (prop.
IsDirective
)
1732
Debug.Assert(parentInstance is not null || (parentProperty is not null && parentProperty.
IsDirective
) || ctx.LiveDepth == 1);
2010
if (parentProperty.
IsDirective
&& (ppXamlType.IsCollection || ppXamlType.IsDictionary))
2049
if (parentProperty.
IsDirective
)
2091
if (parentProperty.
IsDirective
)
2214
if (!property.
IsDirective
)
2261
if (property is not null && property.
IsDirective
&& ctx.ParentInstance is null && property != XamlLanguage.Key)
System\Xaml\Parser\NodeStreamSorter.cs (3)
430
else if (!(prop.
IsDirective
&& prop == XamlLanguage.Key))
441
if (!member.
IsDirective
)
466
if (member.
IsDirective
&& member == XamlLanguage.Key)
System\Xaml\Parser\XamlAttribute.cs (1)
61
else if (Property.
IsDirective
)
System\Xaml\Parser\XamlPullParser.cs (2)
881
_context.CurrentInContainerDirective = member.
IsDirective
&& (memberXamlType is not null && (memberXamlType.IsCollection || memberXamlType.IsDictionary));
1062
if (!currentProperty.
IsDirective
&& (propertyType.IsCollection || propertyType.IsDictionary))
System\Xaml\Parser\XamlScanner.cs (1)
790
node.IsCtorForcingMember = !prop.IsAttachable && !prop.
IsDirective
;
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
251
if(property.
IsDirective
)
293
if(property.
IsDirective
)
System\Xaml\XamlMarkupExtensionWriter.cs (2)
403
(property.
IsDirective
&& (property.Type.IsCollection || property.Type.IsDictionary)))
409
if (property.
IsDirective
)
System\Xaml\XamlMember.cs (2)
1072
if (xamlMember1.
IsDirective
)
1074
Debug.Assert(xamlMember2.
IsDirective
);
System\Xaml\XamlObjectReader.cs (6)
335
return (member.IsAttachable || (member.
IsDirective
&& !XamlXmlWriter.IsImplicit(member)))
2252
bool xIsDirective = xProperty.
IsDirective
;
2253
bool yIsDirective = yProperty.
IsDirective
;
2312
bool xIsDirective = xProperty.
IsDirective
;
2313
bool yIsDirective = yProperty.
IsDirective
;
3235
if (member.IsAttachable || member.
IsDirective
|| MeetsCriterion(member, criterion))
System\Xaml\XamlXmlWriter.cs (6)
284
return xamlMember.
IsDirective
&&
827
string prefix = property.IsAttachable || property.
IsDirective
? writer.FindPrefix(property.GetXamlNamespaces(), out ns) : writer.FindPrefix(type.GetXamlNamespaces(), out ns);
828
string local = (property.
IsDirective
) ? property.Name : $"{GetTypeName(xamlType)}.{property.Name}";
844
if (property.
IsDirective
)
1148
if (property.IsAttachable || property.
IsDirective
)
1206
else if (property.
IsDirective
&& (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary)))
System.Xaml.Tests (9)
System\Xaml\XamlMemberTests.cs (9)
28
Assert.False(member.
IsDirective
);
59
Assert.False(member.
IsDirective
);
81
Assert.False(member.
IsDirective
);
115
Assert.False(member.
IsDirective
);
137
Assert.False(member.
IsDirective
);
174
Assert.False(member.
IsDirective
);
197
Assert.False(member.
IsDirective
);
261
Assert.False(member.
IsDirective
);
282
Assert.False(member.
IsDirective
);