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