Images #

About #

GraffitiNote is a simple yet effective class used to display information via the user interface that should draw a user’s attention. With four different pre-built note types ranging from “Information” to “Error”, and a custom type where custom colors can be applied by the developer, GraffitiNote is very versatile.

The class also supports variable height based on content, and compact or extended modes.

Enumerations #


Constants #

  This class exposes no constants.

Events #

DefinitionParametersReturn TypeDescription
ButtonPressedNoneNoneFired when the user presses the button within the note.
CloseButtonPressedNoneNoneFires when the user presses the close button.
HeightChangedNoneNoneIf the AutoHeight property is set to true, this event will fire when the height has changed to fit the contents.
LongPressedNoneNoneRaised when the user has long-pressed the control.
PressedNoneNoneRaise when the user presses on the area of the note not occupied by the button or close button.

Methods #

 This class exposes no methods.

Properties #

NameTypeDefault ValueDescription
AutoHeightBooleanFalseIf True, the control will resize to fit the contents.
BackgroundColorColorGroupNilColor used to draw the background when Type is set to NoteTypes.Custom
BorderRadiusDouble4Width and height of corner rounding. Should be no greater than Min( width, height) – 1
BorderSizeInteger1Size of the border drawn around the outter edge of the control, color is taken from BarColor.
ButtonBackgroundColorColorGroupNilColorGroup applied to the background of the button.
ButtonBackgroundColorPressedColorGroupNilColorGroup applied to the background of the button when it is in the pressed state.
ButtonBorderColorColorGroupNilColorGroup applied to the border of the button.
ButtonBorderColorPressedColorGroupNilColorGroup applied to the border of the button when it is in the pressed state.
ButtonFontNameString“System”Name of the font to attempt to use for the button’s text.
ButtonFontSizeDouble0Font size to attempt to apply to the button’s text.
ButtonFontStyleFontStylesFontStyles.NoneDetermines the style applied to the button’s text.
ButtonTextString“”Caption drawn within the button.
ButtonTextColorColorGroupNilColor applied to the button’s text.
ButtonTextColorPressedColorGroupNilColorGroup applied to the button’s text when it is in the pressed state.
CloseButtonBackgroundColorColorGroupNilColorGroup applied to the close button’s background.
CloseButtonBackgroundColorPressedColorGroupNilColorGroup applied to the close button’s background when it is in the pressed state.
CloseButtonBorderColorColorGroupNilColorGroup applied to the close button’s border.
CloseButtonBorderColorPressedColorGroupNilColorGroup applied to the close button’s border when it is in the pressed state.
CloseButtonIconColorColorGroupNilColorGroup applied to the close button’s “X” icon.
CloseButtonIconColorPressedColorGroupNilColorGroup applied to the close button’s “X” icon when it is in the pressed state.
ContentFontNameString“System”The font used in drawing the Content.
ContentFontSizeInteger0Size applied to the font for drawing Content.
ContentFontStyleFontStylesFontStyles.NoneStyle applied to the content.
ContentTextString“”Content of the note.
ContentTextColorColorGroupNilColorGroup applied to the content text.
HasCloseButtonBooleanFalseWhen True, a close button will be drawn in the top-right corner of the component.
ParentViewMobileScreenNilThe parent screen of the control. This must be set for AutoHeight to function.
ShadowIntensityDouble0.2Value between 0 and 1 determining how strong the background shadow should be.
TitleFontNameString“System”Font applied to the note’s title.
TitleFontSizeInteger0Font size of Title.
TitleFontStyleFontStylesFontStyles.NoneStyle applied to the title.
TitleTextString“”Text drawn as the title of the note.
TypeNoteTypesNoteTypes.InformationThe drawing style of the note.

Examples #

There are currently no examples for this class.