3 implementations of IAnnotationComponent
PresentationFramework (3)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
26
internal class HighlightComponent : Canvas,
IAnnotationComponent
, IHighlightRange
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
37
internal sealed class MarkedHighlightComponent : Canvas,
IAnnotationComponent
System\Windows\Controls\StickyNote.cs (1)
54
IAnnotationComponent
62 references to IAnnotationComponent
PresentationFramework (62)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (13)
66
internal static void HostComponent(AdornerLayer adornerLayer,
IAnnotationComponent
component, UIElement annotatedElement, bool reorder)
165
public override void AddToHost(
IAnnotationComponent
component)
180
public override void RemoveFromHost(
IAnnotationComponent
component, bool reorder)
216
public override void InvalidateTransform(
IAnnotationComponent
component)
226
public override void BringToFront(
IAnnotationComponent
component)
244
public override void SendToBack(
IAnnotationComponent
component)
314
public void UpdateComponentZOrder(
IAnnotationComponent
component)
358
private bool IsInternalComponent(
IAnnotationComponent
component)
370
private AnnotationAdorner FindAnnotationAdorner(
IAnnotationComponent
component)
390
private List<AnnotationAdorner> GetTopAnnotationAdorners(int level,
IAnnotationComponent
component)
404
IAnnotationComponent
childComponent = adorner.AnnotationComponent;
479
private AnnotationAdorner GetAnnotationAdorner(
IAnnotationComponent
component)
500
private static int GetComponentLevel(
IAnnotationComponent
component)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (3)
32
public AnnotationAdorner(
IAnnotationComponent
component, UIElement annotatedElement) : base(annotatedElement)
189
internal
IAnnotationComponent
AnnotationComponent
224
private
IAnnotationComponent
_annotationComponent;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (14)
58
IAnnotationComponent
component = FindComponent(attachedAnnotation);
83
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation];
86
foreach (
IAnnotationComponent
component in currentList)
138
private
IAnnotationComponent
FindComponent(IAttachedAnnotation attachedAnnotation)
148
IAnnotationComponent
component = chooser.ChooseAnnotationComponent(attachedAnnotation);
160
private void AddComponent(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component, bool reorder)
225
IAnnotationComponent
newComponent = FindComponent(attachedAnnotation);
232
IList<
IAnnotationComponent
> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
239
foreach (
IAnnotationComponent
component in currentList)
265
private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation,
IAnnotationComponent
component)
270
IList<
IAnnotationComponent
> currentList;
274
currentList = new List<
IAnnotationComponent
>();
289
private Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<
IAnnotationComponent
>>();
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
1100
private int Compare(
IAnnotationComponent
first,
IAnnotationComponent
second)
MS\Internal\Annotations\Component\PresentationContext.cs (5)
45
public abstract void AddToHost(
IAnnotationComponent
component);
53
public abstract void RemoveFromHost(
IAnnotationComponent
component, bool reorder);
60
public abstract void InvalidateTransform(
IAnnotationComponent
component);
66
public abstract void BringToFront(
IAnnotationComponent
component);
72
public abstract void SendToBack(
IAnnotationComponent
component);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (17)
112
service = AnnotationService.GetService(((
IAnnotationComponent
)snc).AnnotatedElement);
257
((
IAnnotationComponent
)snc).ZOrder = Convert.ToInt32(node.Value, CultureInfo.InvariantCulture);
856
sncAnnotation.UpdateAttribute(root, XmlToken.ZOrder, ((
IAnnotationComponent
)snc).ZOrder.ToString(CultureInfo.InvariantCulture));
904
void
IAnnotationComponent
.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
928
void
IAnnotationComponent
.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation)
956
void
IAnnotationComponent
.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
965
IList
IAnnotationComponent
.AttachedAnnotations
986
GeneralTransform
IAnnotationComponent
.GetDesiredTransform(GeneralTransform transform)
1085
UIElement
IAnnotationComponent
.AnnotatedElement
1097
PresentationContext
IAnnotationComponent
.PresentationContext
1114
int
IAnnotationComponent
.ZOrder
1131
bool
IAnnotationComponent
.IsDirty
1368
Debug.Assert(((
IAnnotationComponent
)this).AnnotatedElement != null, "undefined annotated element");
1369
FrameworkElement target = ((
IAnnotationComponent
)this).AnnotatedElement as FrameworkElement;
1409
/// Schedules BringIntoView call on <see cref="
IAnnotationComponent
.AnnotatedElement"/> from <see cref="OnRequestBringIntoView"/>
1581
IAnnotationComponent
component = (
IAnnotationComponent
)this;
System\Windows\Annotations\AnnotationComponentChooser.cs (5)
56
public
IAnnotationComponent
ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
60
IAnnotationComponent
ac = null;
65
ac = new StickyNoteControl(StickyNoteType.Text) as
IAnnotationComponent
;
70
ac = new StickyNoteControl(StickyNoteType.Ink) as
IAnnotationComponent
;
75
ac = new HighlightComponent() as
IAnnotationComponent
;
System\Windows\Controls\StickyNote.cs (3)
1369
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1380
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;
1389
PresentationContext pc = ((
IAnnotationComponent
)this).PresentationContext;