29 references to PartType
PresentationFramework (29)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (5)
201if (DataIdElementName != locatorPart.PartType) 202throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 211throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (5)
177if (PageNumberElementName != locatorPart.PartType) 178throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 189throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
504if (FixedTextElementName != locatorPart.PartType) 505throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
178return _locatorPartHandlers[locatorPart.PartType] as SubTreeProcessor; 264return _locatorPartHandlers[locatorPart.PartType] as SelectionProcessor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
202if (CharacterRangeElementName != locatorPart.PartType) 203throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
System\Windows\Annotations\LocatorPart.cs (5)
99if (!_type.Equals(part.PartType)) 247if (!_type.Equals(part.PartType)) 366string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace); 393string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace); 395res += this.PartType.Name;
System\Windows\Annotations\LocatorPartList.cs (6)
177prefix = writer.LookupPrefix(part.PartType.Namespace); 187writer.WriteStartElement(prefix, part.PartType.Name, part.PartType.Namespace); 239Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 243while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 300throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));