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