3 implementations of IAnnotationComponent
PresentationFramework (3)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
38
internal class HighlightComponent : Canvas,
IAnnotationComponent
, IHighlightRange
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
47
internal sealed class MarkedHighlightComponent : Canvas,
IAnnotationComponent
src\Framework\System\Windows\Controls\StickyNote.cs (1)
91
IAnnotationComponent
62 references to IAnnotationComponent
PresentationFramework (62)
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (13)
77
internal static void HostComponent(AdornerLayer adornerLayer,
IAnnotationComponent
component, UIElement annotatedElement, bool reorder)
185
public override void AddToHost(
IAnnotationComponent
component)
200
public override void RemoveFromHost(
IAnnotationComponent
component, bool reorder)
236
public override void InvalidateTransform(
IAnnotationComponent
component)
246
public override void BringToFront(
IAnnotationComponent
component)
264
public override void SendToBack(
IAnnotationComponent
component)
334
public void UpdateComponentZOrder(
IAnnotationComponent
component)
378
private bool IsInternalComponent(
IAnnotationComponent
component)
390
private AnnotationAdorner FindAnnotationAdorner(
IAnnotationComponent
component)
410
private List<AnnotationAdorner> GetTopAnnotationAdorners(int level,
IAnnotationComponent
component)
424
IAnnotationComponent
childComponent = adorner.AnnotationComponent;
499
private AnnotationAdorner GetAnnotationAdorner(
IAnnotationComponent
component)
520
private static int GetComponentLevel(
IAnnotationComponent
component)
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (3)
41
public AnnotationAdorner(
IAnnotationComponent
component, UIElement annotatedElement): base(annotatedElement)
198
internal
IAnnotationComponent
AnnotationComponent
233
private
IAnnotationComponent
_annotationComponent;
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (14)
67
IAnnotationComponent
component = FindComponent(attachedAnnotation);
92
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation];
95
foreach (
IAnnotationComponent
component in currentList)
148
private
IAnnotationComponent
FindComponent(IAttachedAnnotation attachedAnnotation)
158
IAnnotationComponent
component = chooser.ChooseAnnotationComponent(attachedAnnotation);
170
private void AddComponent(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component, bool reorder)
236
IAnnotationComponent
newComponent = FindComponent(attachedAnnotation);
243
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
250
foreach (
IAnnotationComponent
component in currentList)
276
private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component)
281
IList<
IAnnotationComponent
> currentList;
285
currentList = new List<
IAnnotationComponent
>();
300
private Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>>();
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (2)
1125
private int Compare(
IAnnotationComponent
first,
IAnnotationComponent
second)
src\Framework\MS\Internal\Annotations\Component\PresentationContext.cs (5)
51
public abstract void AddToHost(
IAnnotationComponent
component);
59
public abstract void RemoveFromHost(
IAnnotationComponent
component, bool reorder);
66
public abstract void InvalidateTransform(
IAnnotationComponent
component);
72
public abstract void BringToFront(
IAnnotationComponent
component);
78
public abstract void SendToBack(
IAnnotationComponent
component);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (17)
128
service = AnnotationService.GetService(((
IAnnotationComponent
)snc).AnnotatedElement);
273
((
IAnnotationComponent
)snc).ZOrder = Convert.ToInt32(node.Value, CultureInfo.InvariantCulture);
873
sncAnnotation.UpdateAttribute(root, XmlToken.ZOrder, ((
IAnnotationComponent
)snc).ZOrder.ToString(CultureInfo.InvariantCulture));
923
void
IAnnotationComponent
.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
950
void
IAnnotationComponent
.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
982
void
IAnnotationComponent
.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
991
IList
IAnnotationComponent
.AttachedAnnotations
1012
GeneralTransform
IAnnotationComponent
.GetDesiredTransform(GeneralTransform transform)
1110
UIElement
IAnnotationComponent
.AnnotatedElement
1122
PresentationContext
IAnnotationComponent
.PresentationContext
1139
int
IAnnotationComponent
.ZOrder
1156
bool
IAnnotationComponent
.IsDirty
1393
Debug.Assert(((
IAnnotationComponent
)this).AnnotatedElement != null, "undefined annotated element");
1394
FrameworkElement target = ((
IAnnotationComponent
)this).AnnotatedElement as FrameworkElement;
1435
/// Schedules BringIntoView call on <see cref="
IAnnotationComponent
.AnnotatedElement"/> from <see cref="OnRequestBringIntoView"/>
1607
IAnnotationComponent
component = (
IAnnotationComponent
)this;
src\Framework\System\Windows\Annotations\AnnotationComponentChooser.cs (5)
65
public
IAnnotationComponent
ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
69
IAnnotationComponent
ac = null;
74
ac = new StickyNoteControl(StickyNoteType.Text) as
IAnnotationComponent
;
79
ac = new StickyNoteControl(StickyNoteType.Ink) as
IAnnotationComponent
;
84
ac = new HighlightComponent() as
IAnnotationComponent
;
src\Framework\System\Windows\Controls\StickyNote.cs (3)
1423
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1437
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1449
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;