57 references to IsDirective
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2415!parentProperty.IsDirective && (flags & ReaderFlags_AddedToTree) == 0)
System\Windows\Markup\WpfXamlLoader.cs (5)
255if (!(xamlReader.Member.IsDirective && xamlReader.Member == XamlReaderHelper.Freeze) && 265if (!stack.CurrentFrame.Property.IsDirective) 329if (!(currentProperty.IsDirective && currentProperty == XamlReaderHelper.Freeze) && 355if (stack.CurrentFrame.Property.IsDirective && stack.CurrentFrame.Property == XamlLanguage.Shared) 370if (stack.CurrentFrame.Property.IsDirective && stack.CurrentFrame.Property == XamlReaderHelper.Freeze)
System\Windows\TemplateContent.cs (2)
572if (!stack.CurrentFrame.IsInNameScope && !xamlReader.Member.IsDirective) 1043return (member.IsUnknown && member.IsDirective && member.Name == "Freeze");
System.Xaml (40)
System\Xaml\InfosetObjects\DeferredWriter.cs (1)
148Debug.Assert(!property.IsDirective && !property.IsUnknown);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (14)
652if (!property.IsDirective && !property.IsAttachable) 669if (property.IsDirective && property != XamlLanguage.Items && property != XamlLanguage.PositionalParameters) 791if (property.IsDirective && property == XamlLanguage.Key && !Logic_ShouldConvertKey(_context)) 869if (parentProperty.IsDirective) 1367if (property.IsDirective && 1551if (skipDirectives && prop.IsDirective) 1566if (value is XAML3.MarkupExtension me && !prop.IsDirective) 1622if (prop.IsDirective) 1731Debug.Assert(parentInstance is not null || (parentProperty is not null && parentProperty.IsDirective) || ctx.LiveDepth == 1); 2009if (parentProperty.IsDirective && (ppXamlType.IsCollection || ppXamlType.IsDictionary)) 2048if (parentProperty.IsDirective) 2090if (parentProperty.IsDirective) 2213if (!property.IsDirective) 2260if (property is not null && property.IsDirective && ctx.ParentInstance is null && property != XamlLanguage.Key)
System\Xaml\Parser\NodeStreamSorter.cs (3)
426else if (!(prop.IsDirective && prop == XamlLanguage.Key)) 437if (!member.IsDirective) 462if (member.IsDirective && member == XamlLanguage.Key)
System\Xaml\Parser\XamlAttribute.cs (1)
60else if (Property.IsDirective)
System\Xaml\Parser\XamlPullParser.cs (2)
880_context.CurrentInContainerDirective = member.IsDirective && (memberXamlType is not null && (memberXamlType.IsCollection || memberXamlType.IsDictionary)); 1061if (!currentProperty.IsDirective && (propertyType.IsCollection || propertyType.IsDictionary))
System\Xaml\Parser\XamlScanner.cs (1)
789node.IsCtorForcingMember = !prop.IsAttachable && !prop.IsDirective;
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
250if (property.IsDirective) 292if (property.IsDirective)
System\Xaml\XamlMarkupExtensionWriter.cs (2)
399(property.IsDirective && (property.Type.IsCollection || property.Type.IsDictionary))) 405if (property.IsDirective)
System\Xaml\XamlMember.cs (2)
1071if (xamlMember1.IsDirective) 1073Debug.Assert(xamlMember2.IsDirective);
System\Xaml\XamlObjectReader.cs (6)
334return (member.IsAttachable || (member.IsDirective && !XamlXmlWriter.IsImplicit(member))) 2251bool xIsDirective = xProperty.IsDirective; 2252bool yIsDirective = yProperty.IsDirective; 2311bool xIsDirective = xProperty.IsDirective; 2312bool yIsDirective = yProperty.IsDirective; 3234if (member.IsAttachable || member.IsDirective || MeetsCriterion(member, criterion))
System\Xaml\XamlXmlWriter.cs (6)
282return xamlMember.IsDirective && 824string prefix = property.IsAttachable || property.IsDirective ? writer.FindPrefix(property.GetXamlNamespaces(), out ns) : writer.FindPrefix(type.GetXamlNamespaces(), out ns); 825string local = (property.IsDirective) ? property.Name : $"{GetTypeName(xamlType)}.{property.Name}"; 841if (property.IsDirective) 1140if (property.IsAttachable || property.IsDirective) 1198else if (property.IsDirective && (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary)))
System.Xaml.Tests (9)
System\Xaml\XamlMemberTests.cs (9)
28Assert.False(member.IsDirective); 59Assert.False(member.IsDirective); 81Assert.False(member.IsDirective); 115Assert.False(member.IsDirective); 137Assert.False(member.IsDirective); 174Assert.False(member.IsDirective); 197Assert.False(member.IsDirective); 261Assert.False(member.IsDirective); 282Assert.False(member.IsDirective);