29 references to PartType
PresentationFramework (29)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (5)
180
if (DataIdElementName != locatorPart.
PartType
)
181
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
190
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (5)
169
if (PageNumberElementName != locatorPart.
PartType
)
170
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
181
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
492
if (FixedTextElementName != locatorPart.
PartType
)
493
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
155
return _locatorPartHandlers[locatorPart.
PartType
] as SubTreeProcessor;
241
return _locatorPartHandlers[locatorPart.
PartType
] as SelectionProcessor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
191
if (CharacterRangeElementName != locatorPart.
PartType
)
192
throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.
PartType
.Namespace}:{locatorPart.
PartType
.Name}"), nameof(locatorPart));
System\Windows\Annotations\LocatorPart.cs (5)
94
if (!_type.Equals(part.
PartType
))
242
if (!_type.Equals(part.
PartType
))
361
string prefix = namespaceManager.LookupPrefix(this.
PartType
.Namespace);
388
string prefix = namespaceManager.LookupPrefix(this.
PartType
.Namespace);
390
res += this.
PartType
.Name;
System\Windows\Annotations\LocatorPartList.cs (6)
155
prefix = writer.LookupPrefix(part.
PartType
.Namespace);
165
writer.WriteStartElement(prefix, part.
PartType
.Name, part.
PartType
.Namespace);
217
Annotation.CheckForNonNamespaceAttribute(reader, part.
PartType
.Name);
221
while (!(XmlNodeType.EndElement == reader.NodeType && part.
PartType
.Name == reader.LocalName))
278
throw new XmlException(SR.Format(SR.InvalidXmlContent, part.
PartType
.Name));