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