100 references to AttachmentLevel
PresentationFramework (100)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (9)
45internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 61internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 159if (_attachmentLevel == AttachmentLevel.Full) 170public AttachmentLevel AttachmentLevel { get { return _attachmentLevel; } } 231internal void Update(object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 234Debug.Assert(attachmentLevel > AttachmentLevel.Unresolved && attachmentLevel <= AttachmentLevel.Incomplete, 259Debug.Assert(_attachmentLevel != AttachmentLevel.Full, "Should only set fully resolved anchor if attachment level is not full."); 310private AttachmentLevel _attachmentLevel;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
252public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 286attachmentLevel = AttachmentLevel.Unresolved; 347attachmentLevel = AttachmentLevel.Full; // Not always true right?
MS\Internal\Annotations\Anchoring\LocatorManager.cs (35)
302AttachmentLevel attachmentLevel; 305if (attachmentLevel != AttachmentLevel.Unresolved) 386public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 519internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 525attachmentLevel = AttachmentLevel.Unresolved; 545if (attachmentLevel == AttachmentLevel.Unresolved && locatorPartIdx > 0) 549attachmentLevel = AttachmentLevel.Unresolved; 555attachmentLevel = AttachmentLevel.Incomplete; 561attachmentLevel = AttachmentLevel.Full; 877private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 883attachmentLevel = AttachmentLevel.Full; 887AttachmentLevel individualAttachmentLevel = AttachmentLevel.Unresolved; 944ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.StartPortion, locators[0], offset, startNode, skipStartNode); 958AttachmentLevel tempLevel = AttachmentLevel.Unresolved; 959AttachmentLevel savedLevel = attachmentLevel; 962data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.MiddlePortion, locators[i], offset, startNode, skipStartNode); 966if ((tempLevel == AttachmentLevel.Unresolved) || ((attachmentLevel & AttachmentLevel.MiddlePortion) != 0)) 980data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 984if (!middlePortionExists && attachmentLevel == AttachmentLevel.MiddlePortion) 986attachmentLevel &= ~AttachmentLevel.MiddlePortion; 991if (attachmentLevel == (AttachmentLevel.StartPortion | AttachmentLevel.EndPortion)) 992attachmentLevel = AttachmentLevel.Full; 998attachmentLevel = AttachmentLevel.Unresolved; 1020private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode) 1031if (data.AttachmentLevel == AttachmentLevel.Full && data.AttachedAnchor != null) 1116data.AttachmentLevel = AttachmentLevel.Incomplete; 1127data.AttachmentLevel = AttachmentLevel.Full; 1142AttachmentLevel attachmentLevel; 1322public AttachmentLevel AttachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
121public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (6)
186public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 206attachmentLevel = AttachmentLevel.Unresolved; 245attachmentLevel = AttachmentLevel.Full; 272attachmentLevel = AttachmentLevel.Unresolved; 278attachmentLevel &= ~AttachmentLevel.StartPortion; 282attachmentLevel &= ~AttachmentLevel.EndPortion;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
164public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 169attachmentLevel = AttachmentLevel.Unresolved;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
158public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 163attachmentLevel = AttachmentLevel.Full;
MS\Internal\Annotations\AttachedAnnotation.cs (1)
75AttachmentLevel AttachmentLevel { get; }
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
70internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 117public AttachmentLevel PreviousAttachmentLevel { get { return _previousAttachmentLevel; } } 144return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null, AttachmentLevel.Unresolved); 156return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 168return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null, AttachmentLevel.Unresolved); 180return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 190internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 210private AttachmentLevel _previousAttachmentLevel;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
203private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
302public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
89void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
213if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) != 0) 215if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.EndPortion) != 0) 256public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
955void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1329if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
341if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 390AttachmentLevel attachmentLevel; 393if (attachmentLevel != AttachmentLevel.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
781AttachmentLevel level; 783if (level != AttachmentLevel.Incomplete && level != AttachmentLevel.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
877AttachmentLevel oldAttachmentLevel = matchingAnnotation.AttachmentLevel; 878if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 899if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 1341AttachmentLevel attachmentLevel; 1345if (attachmentLevel != AttachmentLevel.Unresolved && attachmentLevel != AttachmentLevel.Incomplete) 1407AttachmentLevel newAttachmentLevel; 1424if (newAttachmentLevel != AttachmentLevel.Unresolved) 1429AttachmentLevel oldAttachmentLevel = attachedAnnotation.AttachmentLevel; 1451if (!previouslyAttached && newAttachmentLevel != AttachmentLevel.Unresolved && newAttachmentLevel != AttachmentLevel.Incomplete) 1532if (attachedAnnotation.AttachmentLevel == AttachmentLevel.Full) 1569AttachmentLevel attachmentLevel; 1571if (attachmentLevel == AttachmentLevel.Full) 1598private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel) 1602attachmentLevel = AttachmentLevel.Unresolved;