Sticky Note Annotation Example

Jan 14, 2012 at 5:37 AM

I've read various post referring to a new functionality for sticky notes that always stay on top of everything else on the document, but I haven't seen code examples... does anyone have some add sticky notes annotation code to shared? 

I've literally just started messing around with this today, so bear with me. Do I need to take the AnnotationFactory approach to create a custom annotation to do sticky notes? If so, can someone provide some insight or examples of the best way to fill in the CreateAnnotation() method?

Friend Class StickyNote
    Inherits FirstFloor.Documents.Annotations.Storage.AnnotationFactory(Of FirstFloor.Documents.Annotations.Annotation)

    Sub New(ByVal annotationType As System.Xml.Linq.XName)
    End Sub

    Public Overrides Function CreateAnnotation() As FirstFloor.Documents.Annotations.Annotation

    End Function

End Class

Jan 15, 2012 at 1:48 PM

A full sticky note implementation is available in the source of this project (StickyNote and StickyNoteFactory).

It uses the same concepts as described in this tutorial How To Create a Custom Annotation.

- Koen

Jan 17, 2012 at 6:57 AM

Brilliant! easy as pie, Thanks!!!