100 references to AttachmentLevel
PresentationFramework (100)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (9)
46
internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor,
AttachmentLevel
attachmentLevel)
62
internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor,
AttachmentLevel
attachmentLevel, DependencyObject parent)
160
if (_attachmentLevel ==
AttachmentLevel
.Full)
171
public
AttachmentLevel
AttachmentLevel { get { return _attachmentLevel; } }
232
internal void Update(object attachedAnchor,
AttachmentLevel
attachmentLevel, DependencyObject parent)
235
Debug.Assert(attachmentLevel >
AttachmentLevel
.Unresolved && attachmentLevel <=
AttachmentLevel
.Incomplete,
260
Debug.Assert(_attachmentLevel !=
AttachmentLevel
.Full, "Should only set fully resolved anchor if attachment level is not full.");
311
private
AttachmentLevel
_attachmentLevel;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
253
public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
287
attachmentLevel =
AttachmentLevel
.Unresolved;
348
attachmentLevel =
AttachmentLevel
.Full; // Not always true right?
MS\Internal\Annotations\Anchoring\LocatorManager.cs (35)
303
AttachmentLevel
attachmentLevel;
306
if (attachmentLevel !=
AttachmentLevel
.Unresolved)
387
public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
520
internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out
AttachmentLevel
attachmentLevel)
526
attachmentLevel =
AttachmentLevel
.Unresolved;
546
if (attachmentLevel ==
AttachmentLevel
.Unresolved && locatorPartIdx > 0)
550
attachmentLevel =
AttachmentLevel
.Unresolved;
556
attachmentLevel =
AttachmentLevel
.Incomplete;
562
attachmentLevel =
AttachmentLevel
.Full;
878
private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out
AttachmentLevel
attachmentLevel)
884
attachmentLevel =
AttachmentLevel
.Full;
888
AttachmentLevel
individualAttachmentLevel =
AttachmentLevel
.Unresolved;
945
ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.StartPortion, locators[0], offset, startNode, skipStartNode);
959
AttachmentLevel
tempLevel =
AttachmentLevel
.Unresolved;
960
AttachmentLevel
savedLevel = attachmentLevel;
963
data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.MiddlePortion, locators[i], offset, startNode, skipStartNode);
967
if ((tempLevel ==
AttachmentLevel
.Unresolved) || ((attachmentLevel &
AttachmentLevel
.MiddlePortion) != 0))
981
data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode);
985
if (!middlePortionExists && attachmentLevel ==
AttachmentLevel
.MiddlePortion)
987
attachmentLevel &= ~
AttachmentLevel
.MiddlePortion;
992
if (attachmentLevel == (
AttachmentLevel
.StartPortion |
AttachmentLevel
.EndPortion))
993
attachmentLevel =
AttachmentLevel
.Full;
999
attachmentLevel =
AttachmentLevel
.Unresolved;
1021
private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref
AttachmentLevel
attachmentLevel,
AttachmentLevel
attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode)
1032
if (data.AttachmentLevel ==
AttachmentLevel
.Full && data.AttachedAnchor != null)
1117
data.AttachmentLevel =
AttachmentLevel
.Incomplete;
1128
data.AttachmentLevel =
AttachmentLevel
.Full;
1143
AttachmentLevel
attachmentLevel;
1323
public
AttachmentLevel
AttachmentLevel =
AttachmentLevel
.Unresolved;
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
122
public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out
AttachmentLevel
attachmentLevel);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (6)
187
public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
207
attachmentLevel =
AttachmentLevel
.Unresolved;
246
attachmentLevel =
AttachmentLevel
.Full;
273
attachmentLevel =
AttachmentLevel
.Unresolved;
279
attachmentLevel &= ~
AttachmentLevel
.StartPortion;
283
attachmentLevel &= ~
AttachmentLevel
.EndPortion;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
165
public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
170
attachmentLevel =
AttachmentLevel
.Unresolved;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
159
public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
164
attachmentLevel =
AttachmentLevel
.Full;
MS\Internal\Annotations\AttachedAnnotation.cs (1)
76
AttachmentLevel
AttachmentLevel { get; }
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
71
internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
118
public
AttachmentLevel
PreviousAttachmentLevel { get { return _previousAttachmentLevel; } }
145
return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null,
AttachmentLevel
.Unresolved);
157
return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null,
AttachmentLevel
.Unresolved);
169
return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null,
AttachmentLevel
.Unresolved);
181
return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null,
AttachmentLevel
.Unresolved);
191
internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
211
private
AttachmentLevel
_previousAttachmentLevel;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
205
private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
303
public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
90
void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
214
if ((attachedAnnotation.AttachmentLevel &
AttachmentLevel
.StartPortion) != 0)
216
if ((attachedAnnotation.AttachmentLevel &
AttachmentLevel
.EndPortion) != 0)
257
public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
956
void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor,
AttachmentLevel
previousAttachmentLevel)
1330
if ((_attachedAnnotation.AttachmentLevel &
AttachmentLevel
.StartPortion) == 0)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
342
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
391
AttachmentLevel
attachmentLevel;
394
if (attachmentLevel !=
AttachmentLevel
.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
782
AttachmentLevel
level;
784
if (level !=
AttachmentLevel
.Incomplete && level !=
AttachmentLevel
.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
878
AttachmentLevel
oldAttachmentLevel = matchingAnnotation.AttachmentLevel;
879
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
900
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
1342
AttachmentLevel
attachmentLevel;
1346
if (attachmentLevel !=
AttachmentLevel
.Unresolved && attachmentLevel !=
AttachmentLevel
.Incomplete)
1408
AttachmentLevel
newAttachmentLevel;
1425
if (newAttachmentLevel !=
AttachmentLevel
.Unresolved)
1430
AttachmentLevel
oldAttachmentLevel = attachedAnnotation.AttachmentLevel;
1452
if (!previouslyAttached && newAttachmentLevel !=
AttachmentLevel
.Unresolved && newAttachmentLevel !=
AttachmentLevel
.Incomplete)
1533
if (attachedAnnotation.AttachmentLevel ==
AttachmentLevel
.Full)
1570
AttachmentLevel
attachmentLevel;
1572
if (attachmentLevel ==
AttachmentLevel
.Full)
1599
private object FindAttachedAnchor(AnnotationResource anchor, out
AttachmentLevel
attachmentLevel)
1603
attachmentLevel =
AttachmentLevel
.Unresolved;