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)
303AttachmentLevel attachmentLevel; 306if (attachmentLevel != AttachmentLevel.Unresolved) 387public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 520internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 526attachmentLevel = AttachmentLevel.Unresolved; 546if (attachmentLevel == AttachmentLevel.Unresolved && locatorPartIdx > 0) 550attachmentLevel = AttachmentLevel.Unresolved; 556attachmentLevel = AttachmentLevel.Incomplete; 562attachmentLevel = AttachmentLevel.Full; 878private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 884attachmentLevel = AttachmentLevel.Full; 888AttachmentLevel individualAttachmentLevel = AttachmentLevel.Unresolved; 945ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.StartPortion, locators[0], offset, startNode, skipStartNode); 959AttachmentLevel tempLevel = AttachmentLevel.Unresolved; 960AttachmentLevel savedLevel = attachmentLevel; 963data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.MiddlePortion, locators[i], offset, startNode, skipStartNode); 967if ((tempLevel == AttachmentLevel.Unresolved) || ((attachmentLevel & AttachmentLevel.MiddlePortion) != 0)) 981data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 985if (!middlePortionExists && attachmentLevel == AttachmentLevel.MiddlePortion) 987attachmentLevel &= ~AttachmentLevel.MiddlePortion; 992if (attachmentLevel == (AttachmentLevel.StartPortion | AttachmentLevel.EndPortion)) 993attachmentLevel = AttachmentLevel.Full; 999attachmentLevel = AttachmentLevel.Unresolved; 1021private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode) 1032if (data.AttachmentLevel == AttachmentLevel.Full && data.AttachedAnchor != null) 1117data.AttachmentLevel = AttachmentLevel.Incomplete; 1128data.AttachmentLevel = AttachmentLevel.Full; 1143AttachmentLevel attachmentLevel; 1323public 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)
342if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 391AttachmentLevel attachmentLevel; 394if (attachmentLevel != AttachmentLevel.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
782AttachmentLevel level; 784if (level != AttachmentLevel.Incomplete && level != AttachmentLevel.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
878AttachmentLevel oldAttachmentLevel = matchingAnnotation.AttachmentLevel; 879if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 900if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 1342AttachmentLevel attachmentLevel; 1346if (attachmentLevel != AttachmentLevel.Unresolved && attachmentLevel != AttachmentLevel.Incomplete) 1408AttachmentLevel newAttachmentLevel; 1425if (newAttachmentLevel != AttachmentLevel.Unresolved) 1430AttachmentLevel oldAttachmentLevel = attachedAnnotation.AttachmentLevel; 1452if (!previouslyAttached && newAttachmentLevel != AttachmentLevel.Unresolved && newAttachmentLevel != AttachmentLevel.Incomplete) 1533if (attachedAnnotation.AttachmentLevel == AttachmentLevel.Full) 1570AttachmentLevel attachmentLevel; 1572if (attachmentLevel == AttachmentLevel.Full) 1599private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel) 1603attachmentLevel = AttachmentLevel.Unresolved;