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