29 references to PartType
PresentationFramework (29)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (5)
181if (DataIdElementName != locatorPart.PartType) 182throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 191throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (5)
170if (PageNumberElementName != locatorPart.PartType) 171throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 182throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
493if (FixedTextElementName != locatorPart.PartType) 494throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
156return _locatorPartHandlers[locatorPart.PartType] as SubTreeProcessor; 242return _locatorPartHandlers[locatorPart.PartType] as SelectionProcessor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
192if (CharacterRangeElementName != locatorPart.PartType) 193throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
System\Windows\Annotations\LocatorPart.cs (5)
95if (!_type.Equals(part.PartType)) 243if (!_type.Equals(part.PartType)) 362string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace); 389string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace); 391res += this.PartType.Name;
System\Windows\Annotations\LocatorPartList.cs (6)
156prefix = writer.LookupPrefix(part.PartType.Namespace); 166writer.WriteStartElement(prefix, part.PartType.Name, part.PartType.Namespace); 218Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 222while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 279throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));