100 references to AttachmentLevel
PresentationFramework (100)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (9)
52internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 68internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 166if (_attachmentLevel == AttachmentLevel.Full) 177public AttachmentLevel AttachmentLevel { get { return _attachmentLevel; } } 238internal void Update(object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 241Debug.Assert(attachmentLevel > AttachmentLevel.Unresolved && attachmentLevel <= AttachmentLevel.Incomplete, 266Debug.Assert(_attachmentLevel != AttachmentLevel.Full, "Should only set fully resolved anchor if attachment level is not full."); 317private AttachmentLevel _attachmentLevel;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
264public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 298attachmentLevel = AttachmentLevel.Unresolved; 359attachmentLevel = AttachmentLevel.Full; // Not always true right?
MS\Internal\Annotations\Anchoring\LocatorManager.cs (35)
325AttachmentLevel attachmentLevel; 328if (attachmentLevel != AttachmentLevel.Unresolved) 409public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 543internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 549attachmentLevel = AttachmentLevel.Unresolved; 569if (attachmentLevel == AttachmentLevel.Unresolved && locatorPartIdx > 0) 573attachmentLevel = AttachmentLevel.Unresolved; 579attachmentLevel = AttachmentLevel.Incomplete; 585attachmentLevel = AttachmentLevel.Full; 901private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 907attachmentLevel = AttachmentLevel.Full; 911AttachmentLevel individualAttachmentLevel = AttachmentLevel.Unresolved; 968ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.StartPortion, locators[0], offset, startNode, skipStartNode); 982AttachmentLevel tempLevel = AttachmentLevel.Unresolved; 983AttachmentLevel savedLevel = attachmentLevel; 986data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.MiddlePortion, locators[i], offset, startNode, skipStartNode); 990if ((tempLevel == AttachmentLevel.Unresolved) || ((attachmentLevel & AttachmentLevel.MiddlePortion) != 0)) 1004data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 1008if (!middlePortionExists && attachmentLevel == AttachmentLevel.MiddlePortion) 1010attachmentLevel &= ~AttachmentLevel.MiddlePortion; 1015if (attachmentLevel == (AttachmentLevel.StartPortion | AttachmentLevel.EndPortion)) 1016attachmentLevel = AttachmentLevel.Full; 1022attachmentLevel = AttachmentLevel.Unresolved; 1044private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode) 1053if (data.AttachmentLevel == AttachmentLevel.Full && data.AttachedAnchor != null) 1138data.AttachmentLevel = AttachmentLevel.Incomplete; 1149data.AttachmentLevel = AttachmentLevel.Full; 1164AttachmentLevel attachmentLevel; 1344public AttachmentLevel AttachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
127public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (6)
197public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 217attachmentLevel = AttachmentLevel.Unresolved; 256attachmentLevel = AttachmentLevel.Full; 283attachmentLevel = AttachmentLevel.Unresolved; 289attachmentLevel &= ~AttachmentLevel.StartPortion; 293attachmentLevel &= ~AttachmentLevel.EndPortion;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
177public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 182attachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
166public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 171attachmentLevel = AttachmentLevel.Full;
MS\Internal\Annotations\AttachedAnnotation.cs (1)
80AttachmentLevel AttachmentLevel { get; }
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
88internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 135public AttachmentLevel PreviousAttachmentLevel { get { return _previousAttachmentLevel; } } 162return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null, AttachmentLevel.Unresolved); 174return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 186return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null, AttachmentLevel.Unresolved); 198return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 208internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 228private AttachmentLevel _previousAttachmentLevel;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
209private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
311public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
92void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
220if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) != 0) 222if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.EndPortion) != 0) 263public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
966void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1340if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
343if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 392AttachmentLevel attachmentLevel; 395if (attachmentLevel != AttachmentLevel.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
796AttachmentLevel level; 798if (level != AttachmentLevel.Incomplete && level != AttachmentLevel.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
895AttachmentLevel oldAttachmentLevel = matchingAnnotation.AttachmentLevel; 896if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 917if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 1359AttachmentLevel attachmentLevel; 1363if (attachmentLevel != AttachmentLevel.Unresolved && attachmentLevel != AttachmentLevel.Incomplete) 1425AttachmentLevel newAttachmentLevel; 1442if (newAttachmentLevel != AttachmentLevel.Unresolved) 1447AttachmentLevel oldAttachmentLevel = attachedAnnotation.AttachmentLevel; 1469if (!previouslyAttached && newAttachmentLevel != AttachmentLevel.Unresolved && newAttachmentLevel != AttachmentLevel.Incomplete) 1550if (attachedAnnotation.AttachmentLevel == AttachmentLevel.Full) 1587AttachmentLevel attachmentLevel; 1589if (attachmentLevel == AttachmentLevel.Full) 1616private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel) 1620attachmentLevel = AttachmentLevel.Unresolved;