29 references to PartType
PresentationFramework (29)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (5)
192if (DataIdElementName != locatorPart.PartType) 193throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 202throw 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}"), "locatorPart");
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
167return _locatorPartHandlers[locatorPart.PartType] as SubTreeProcessor; 253return _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)
170prefix = writer.LookupPrefix(part.PartType.Namespace); 180writer.WriteStartElement(prefix, part.PartType.Name, part.PartType.Namespace); 232Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 236while (!(XmlNodeType.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName)) 293throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));