3 implementations of IAnnotationComponent
PresentationFramework (3)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
34
internal class HighlightComponent : Canvas,
IAnnotationComponent
, IHighlightRange
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
43
internal sealed class MarkedHighlightComponent : Canvas,
IAnnotationComponent
System\Windows\Controls\StickyNote.cs (1)
81
IAnnotationComponent
62 references to IAnnotationComponent
PresentationFramework (62)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (13)
70
internal static void HostComponent(AdornerLayer adornerLayer,
IAnnotationComponent
component, UIElement annotatedElement, bool reorder)
169
public override void AddToHost(
IAnnotationComponent
component)
184
public override void RemoveFromHost(
IAnnotationComponent
component, bool reorder)
220
public override void InvalidateTransform(
IAnnotationComponent
component)
230
public override void BringToFront(
IAnnotationComponent
component)
248
public override void SendToBack(
IAnnotationComponent
component)
318
public void UpdateComponentZOrder(
IAnnotationComponent
component)
362
private bool IsInternalComponent(
IAnnotationComponent
component)
374
private AnnotationAdorner FindAnnotationAdorner(
IAnnotationComponent
component)
394
private List<AnnotationAdorner> GetTopAnnotationAdorners(int level,
IAnnotationComponent
component)
408
IAnnotationComponent
childComponent = adorner.AnnotationComponent;
483
private AnnotationAdorner GetAnnotationAdorner(
IAnnotationComponent
component)
504
private static int GetComponentLevel(
IAnnotationComponent
component)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (3)
35
public AnnotationAdorner(
IAnnotationComponent
component, UIElement annotatedElement) : base(annotatedElement)
192
internal
IAnnotationComponent
AnnotationComponent
227
private
IAnnotationComponent
_annotationComponent;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (14)
62
IAnnotationComponent
component = FindComponent(attachedAnnotation);
87
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation];
90
foreach (
IAnnotationComponent
component in currentList)
143
private
IAnnotationComponent
FindComponent(IAttachedAnnotation attachedAnnotation)
153
IAnnotationComponent
component = chooser.ChooseAnnotationComponent(attachedAnnotation);
165
private void AddComponent(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component, bool reorder)
230
IAnnotationComponent
newComponent = FindComponent(attachedAnnotation);
237
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
244
foreach (
IAnnotationComponent
component in currentList)
270
private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component)
275
IList<
IAnnotationComponent
> currentList;
279
currentList = new List<
IAnnotationComponent
>();
294
private Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>>();
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
1102
private int Compare(
IAnnotationComponent
first,
IAnnotationComponent
second)
MS\Internal\Annotations\Component\PresentationContext.cs (5)
47
public abstract void AddToHost(
IAnnotationComponent
component);
55
public abstract void RemoveFromHost(
IAnnotationComponent
component, bool reorder);
62
public abstract void InvalidateTransform(
IAnnotationComponent
component);
68
public abstract void BringToFront(
IAnnotationComponent
component);
74
public abstract void SendToBack(
IAnnotationComponent
component);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (17)
122
service = AnnotationService.GetService(((
IAnnotationComponent
)snc).AnnotatedElement);
267
((
IAnnotationComponent
)snc).ZOrder = Convert.ToInt32(node.Value, CultureInfo.InvariantCulture);
866
sncAnnotation.UpdateAttribute(root, XmlToken.ZOrder, ((
IAnnotationComponent
)snc).ZOrder.ToString(CultureInfo.InvariantCulture));
914
void
IAnnotationComponent
.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
938
void
IAnnotationComponent
.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
966
void
IAnnotationComponent
.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
975
IList
IAnnotationComponent
.AttachedAnnotations
996
GeneralTransform
IAnnotationComponent
.GetDesiredTransform(GeneralTransform transform)
1095
UIElement
IAnnotationComponent
.AnnotatedElement
1107
PresentationContext
IAnnotationComponent
.PresentationContext
1124
int
IAnnotationComponent
.ZOrder
1141
bool
IAnnotationComponent
.IsDirty
1378
Debug.Assert(((
IAnnotationComponent
)this).AnnotatedElement != null, "undefined annotated element");
1379
FrameworkElement target = ((
IAnnotationComponent
)this).AnnotatedElement as FrameworkElement;
1419
/// Schedules BringIntoView call on <see cref="
IAnnotationComponent
.AnnotatedElement"/> from <see cref="OnRequestBringIntoView"/>
1591
IAnnotationComponent
component = (
IAnnotationComponent
)this;
System\Windows\Annotations\AnnotationComponentChooser.cs (5)
60
public
IAnnotationComponent
ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
64
IAnnotationComponent
ac = null;
69
ac = new StickyNoteControl(StickyNoteType.Text) as
IAnnotationComponent
;
74
ac = new StickyNoteControl(StickyNoteType.Ink) as
IAnnotationComponent
;
79
ac = new HighlightComponent() as
IAnnotationComponent
;
System\Windows\Controls\StickyNote.cs (3)
1413
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1427
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1439
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;