100 references to AttachmentLevel
PresentationFramework (100)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (9)
46internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 62internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 160if (_attachmentLevel == AttachmentLevel.Full) 171public AttachmentLevel AttachmentLevel { get { return _attachmentLevel; } } 232internal void Update(object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 235Debug.Assert(attachmentLevel > AttachmentLevel.Unresolved && attachmentLevel <= AttachmentLevel.Incomplete, 260Debug.Assert(_attachmentLevel != AttachmentLevel.Full, "Should only set fully resolved anchor if attachment level is not full."); 311private AttachmentLevel _attachmentLevel;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
253public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 287attachmentLevel = AttachmentLevel.Unresolved; 348attachmentLevel = AttachmentLevel.Full; // Not always true right?
MS\Internal\Annotations\Anchoring\LocatorManager.cs (35)
314AttachmentLevel attachmentLevel; 317if (attachmentLevel != AttachmentLevel.Unresolved) 398public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 532internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 538attachmentLevel = AttachmentLevel.Unresolved; 558if (attachmentLevel == AttachmentLevel.Unresolved && locatorPartIdx > 0) 562attachmentLevel = AttachmentLevel.Unresolved; 568attachmentLevel = AttachmentLevel.Incomplete; 574attachmentLevel = AttachmentLevel.Full; 890private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 896attachmentLevel = AttachmentLevel.Full; 900AttachmentLevel individualAttachmentLevel = AttachmentLevel.Unresolved; 957ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.StartPortion, locators[0], offset, startNode, skipStartNode); 971AttachmentLevel tempLevel = AttachmentLevel.Unresolved; 972AttachmentLevel savedLevel = attachmentLevel; 975data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.MiddlePortion, locators[i], offset, startNode, skipStartNode); 979if ((tempLevel == AttachmentLevel.Unresolved) || ((attachmentLevel & AttachmentLevel.MiddlePortion) != 0)) 993data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 997if (!middlePortionExists && attachmentLevel == AttachmentLevel.MiddlePortion) 999attachmentLevel &= ~AttachmentLevel.MiddlePortion; 1004if (attachmentLevel == (AttachmentLevel.StartPortion | AttachmentLevel.EndPortion)) 1005attachmentLevel = AttachmentLevel.Full; 1011attachmentLevel = AttachmentLevel.Unresolved; 1033private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode) 1042if (data.AttachmentLevel == AttachmentLevel.Full && data.AttachedAnchor != null) 1127data.AttachmentLevel = AttachmentLevel.Incomplete; 1138data.AttachmentLevel = AttachmentLevel.Full; 1153AttachmentLevel attachmentLevel; 1333public AttachmentLevel AttachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
122public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (6)
187public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 207attachmentLevel = AttachmentLevel.Unresolved; 246attachmentLevel = AttachmentLevel.Full; 273attachmentLevel = AttachmentLevel.Unresolved; 279attachmentLevel &= ~AttachmentLevel.StartPortion; 283attachmentLevel &= ~AttachmentLevel.EndPortion;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
165public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 170attachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
159public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 164attachmentLevel = AttachmentLevel.Full;
MS\Internal\Annotations\AttachedAnnotation.cs (1)
76AttachmentLevel AttachmentLevel { get; }
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
71internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 118public AttachmentLevel PreviousAttachmentLevel { get { return _previousAttachmentLevel; } } 145return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null, AttachmentLevel.Unresolved); 157return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 169return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null, AttachmentLevel.Unresolved); 181return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 191internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 211private AttachmentLevel _previousAttachmentLevel;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
205private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
303public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
90void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
214if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) != 0) 216if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.EndPortion) != 0) 257public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
956void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1330if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
338if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 387AttachmentLevel attachmentLevel; 390if (attachmentLevel != AttachmentLevel.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
784AttachmentLevel level; 786if (level != AttachmentLevel.Incomplete && level != AttachmentLevel.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
883AttachmentLevel oldAttachmentLevel = matchingAnnotation.AttachmentLevel; 884if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 905if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 1347AttachmentLevel attachmentLevel; 1351if (attachmentLevel != AttachmentLevel.Unresolved && attachmentLevel != AttachmentLevel.Incomplete) 1413AttachmentLevel newAttachmentLevel; 1430if (newAttachmentLevel != AttachmentLevel.Unresolved) 1435AttachmentLevel oldAttachmentLevel = attachedAnnotation.AttachmentLevel; 1457if (!previouslyAttached && newAttachmentLevel != AttachmentLevel.Unresolved && newAttachmentLevel != AttachmentLevel.Incomplete) 1538if (attachedAnnotation.AttachmentLevel == AttachmentLevel.Full) 1575AttachmentLevel attachmentLevel; 1577if (attachmentLevel == AttachmentLevel.Full) 1604private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel) 1608attachmentLevel = AttachmentLevel.Unresolved;