100 references to AttachmentLevel
PresentationFramework (100)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (9)
56internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 72internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 170if (_attachmentLevel == AttachmentLevel.Full) 181public AttachmentLevel AttachmentLevel { get { return _attachmentLevel; } } 242internal void Update(object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 245Debug.Assert(attachmentLevel > AttachmentLevel.Unresolved && attachmentLevel <= AttachmentLevel.Incomplete, 270Debug.Assert(_attachmentLevel != AttachmentLevel.Full, "Should only set fully resolved anchor if attachment level is not full."); 321private AttachmentLevel _attachmentLevel;
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
272public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 308attachmentLevel = AttachmentLevel.Unresolved; 369attachmentLevel = AttachmentLevel.Full; // Not always true right?
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (35)
341AttachmentLevel attachmentLevel; 344if(attachmentLevel != AttachmentLevel.Unresolved) 426public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 566internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 575attachmentLevel = AttachmentLevel.Unresolved; 595if (attachmentLevel == AttachmentLevel.Unresolved && locatorPartIdx > 0) 599attachmentLevel = AttachmentLevel.Unresolved; 605attachmentLevel = AttachmentLevel.Incomplete; 611attachmentLevel = AttachmentLevel.Full; 927private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 933attachmentLevel = AttachmentLevel.Full; 937AttachmentLevel individualAttachmentLevel = AttachmentLevel.Unresolved; 994ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.StartPortion, locators[0], offset, startNode, skipStartNode); 1008AttachmentLevel tempLevel = AttachmentLevel.Unresolved; 1009AttachmentLevel savedLevel = attachmentLevel; 1012data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.MiddlePortion, locators[i], offset, startNode, skipStartNode); 1016if ((tempLevel == AttachmentLevel.Unresolved) || ((attachmentLevel & AttachmentLevel.MiddlePortion) != 0)) 1030data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 1034if (!middlePortionExists && attachmentLevel == AttachmentLevel.MiddlePortion) 1036attachmentLevel &= ~AttachmentLevel.MiddlePortion; 1041if (attachmentLevel == (AttachmentLevel.StartPortion | AttachmentLevel.EndPortion)) 1042attachmentLevel = AttachmentLevel.Full; 1048attachmentLevel = AttachmentLevel.Unresolved; 1070private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode) 1079if (data.AttachmentLevel == AttachmentLevel.Full && data.AttachedAnchor != null) 1164data.AttachmentLevel = AttachmentLevel.Incomplete; 1175data.AttachmentLevel = AttachmentLevel.Full; 1190AttachmentLevel attachmentLevel; 1370public AttachmentLevel AttachmentLevel = AttachmentLevel.Unresolved;
src\Framework\MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
136public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (6)
207public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 230attachmentLevel = AttachmentLevel.Unresolved; 269attachmentLevel = AttachmentLevel.Full; 296attachmentLevel = AttachmentLevel.Unresolved; 302attachmentLevel &= ~AttachmentLevel.StartPortion; 306attachmentLevel &= ~AttachmentLevel.EndPortion;
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
180public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 188attachmentLevel = AttachmentLevel.Unresolved;
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
178public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel) 186attachmentLevel = AttachmentLevel.Full;
src\Framework\MS\Internal\Annotations\AttachedAnnotation.cs (1)
84AttachmentLevel AttachmentLevel { get; }
src\Framework\MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
94internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 141public AttachmentLevel PreviousAttachmentLevel { get { return _previousAttachmentLevel; } } 168return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null, AttachmentLevel.Unresolved); 180return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 192return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null, AttachmentLevel.Unresolved); 204return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 214internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 234private AttachmentLevel _previousAttachmentLevel;
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
215private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
327public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
src\Framework\MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
97void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
229if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) != 0) 231if ((attachedAnnotation.AttachmentLevel & AttachmentLevel.EndPortion) != 0) 277public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
982void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1355if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
353if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 403AttachmentLevel attachmentLevel; 406if (attachmentLevel != AttachmentLevel.Unresolved)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (3)
803AttachmentLevel level; 805if (level != AttachmentLevel.Incomplete && level != AttachmentLevel.Unresolved && anchor != null)
src\Framework\System\Windows\Annotations\AnnotationService.cs (18)
928AttachmentLevel oldAttachmentLevel = matchingAnnotation.AttachmentLevel; 929if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 951if (attachedAnnotation.AttachmentLevel != AttachmentLevel.Unresolved && attachedAnnotation.AttachmentLevel != AttachmentLevel.Incomplete) 1399AttachmentLevel attachmentLevel; 1403if (attachmentLevel != AttachmentLevel.Unresolved && attachmentLevel != AttachmentLevel.Incomplete) 1465AttachmentLevel newAttachmentLevel; 1482if (newAttachmentLevel != AttachmentLevel.Unresolved) 1487AttachmentLevel oldAttachmentLevel = attachedAnnotation.AttachmentLevel; 1509if (!previouslyAttached && newAttachmentLevel != AttachmentLevel.Unresolved && newAttachmentLevel != AttachmentLevel.Incomplete) 1590if (attachedAnnotation.AttachmentLevel == AttachmentLevel.Full) 1627AttachmentLevel attachmentLevel; 1629if (attachmentLevel == AttachmentLevel.Full) 1656private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel) 1660attachmentLevel = AttachmentLevel.Unresolved;