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)
314
AttachmentLevel
attachmentLevel;
317
if (attachmentLevel !=
AttachmentLevel
.Unresolved)
398
public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out
AttachmentLevel
attachmentLevel)
532
internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out
AttachmentLevel
attachmentLevel)
538
attachmentLevel =
AttachmentLevel
.Unresolved;
558
if (attachmentLevel ==
AttachmentLevel
.Unresolved && locatorPartIdx > 0)
562
attachmentLevel =
AttachmentLevel
.Unresolved;
568
attachmentLevel =
AttachmentLevel
.Incomplete;
574
attachmentLevel =
AttachmentLevel
.Full;
890
private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out
AttachmentLevel
attachmentLevel)
896
attachmentLevel =
AttachmentLevel
.Full;
900
AttachmentLevel
individualAttachmentLevel =
AttachmentLevel
.Unresolved;
957
ResolvingLocatorState data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.StartPortion, locators[0], offset, startNode, skipStartNode);
971
AttachmentLevel
tempLevel =
AttachmentLevel
.Unresolved;
972
AttachmentLevel
savedLevel = attachmentLevel;
975
data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.MiddlePortion, locators[i], offset, startNode, skipStartNode);
979
if ((tempLevel ==
AttachmentLevel
.Unresolved) || ((attachmentLevel &
AttachmentLevel
.MiddlePortion) != 0))
993
data = ResolveSingleLocator(ref selection, ref attachmentLevel,
AttachmentLevel
.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode);
997
if (!middlePortionExists && attachmentLevel ==
AttachmentLevel
.MiddlePortion)
999
attachmentLevel &= ~
AttachmentLevel
.MiddlePortion;
1004
if (attachmentLevel == (
AttachmentLevel
.StartPortion |
AttachmentLevel
.EndPortion))
1005
attachmentLevel =
AttachmentLevel
.Full;
1011
attachmentLevel =
AttachmentLevel
.Unresolved;
1033
private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref
AttachmentLevel
attachmentLevel,
AttachmentLevel
attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode)
1042
if (data.AttachmentLevel ==
AttachmentLevel
.Full && data.AttachedAnchor != null)
1127
data.AttachmentLevel =
AttachmentLevel
.Incomplete;
1138
data.AttachmentLevel =
AttachmentLevel
.Full;
1153
AttachmentLevel
attachmentLevel;
1333
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)
338
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
387
AttachmentLevel
attachmentLevel;
390
if (attachmentLevel !=
AttachmentLevel
.Unresolved)
System\Windows\Annotations\AnnotationHelper.cs (3)
784
AttachmentLevel
level;
786
if (level !=
AttachmentLevel
.Incomplete && level !=
AttachmentLevel
.Unresolved && anchor != null)
System\Windows\Annotations\AnnotationService.cs (18)
883
AttachmentLevel
oldAttachmentLevel = matchingAnnotation.AttachmentLevel;
884
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
905
if (attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Unresolved && attachedAnnotation.AttachmentLevel !=
AttachmentLevel
.Incomplete)
1347
AttachmentLevel
attachmentLevel;
1351
if (attachmentLevel !=
AttachmentLevel
.Unresolved && attachmentLevel !=
AttachmentLevel
.Incomplete)
1413
AttachmentLevel
newAttachmentLevel;
1430
if (newAttachmentLevel !=
AttachmentLevel
.Unresolved)
1435
AttachmentLevel
oldAttachmentLevel = attachedAnnotation.AttachmentLevel;
1457
if (!previouslyAttached && newAttachmentLevel !=
AttachmentLevel
.Unresolved && newAttachmentLevel !=
AttachmentLevel
.Incomplete)
1538
if (attachedAnnotation.AttachmentLevel ==
AttachmentLevel
.Full)
1575
AttachmentLevel
attachmentLevel;
1577
if (attachmentLevel ==
AttachmentLevel
.Full)
1604
private object FindAttachedAnchor(AnnotationResource anchor, out
AttachmentLevel
attachmentLevel)
1608
attachmentLevel =
AttachmentLevel
.Unresolved;