GraffitiModalInstance

View Categories

About #

This class is the visual representation of the backdrop for GraffitiModalContainers and provides additional functionality to the GraffitiModal controller.

Enumerations #

NameValue
AnimationStylesFade
SlideUp
SlideDown
SlideLeft
SlideRight
Grow
Reveal
RollHorizontal
RollVertical
WindowShade
Doors
None
PlacementsLeftTop
LeftMiddle
LeftBottom
CenterTop
CenterMiddle
CenterBottom
RightTop
RightMiddle
RightBottom

Constants #

This class exposes no constants.

Events #

NameParametersReturn TypeDescription
DataAvailablemodal as GraffitiModalInstance

data as Dictionary
NoneRaised when calling the Action method from within a GraffitiModalContainer.
HiddenNoneNoneRaised when a modal instance has been hidden.
Paintg as graphics

areas() as Rect
NoneRaised after all other drawing is complete. Can be used to customize appearance.
ShownNoneNoneRaised when a modal instance has been shown.

Methods #

NameParametersReturn TypeDescription
Constructorname as String

container as GraffitiModalContainer
NoneCreates a new instance of the class with the specified properties.
HideNoneNoneHides the modal instance, if visible.
ResizeNoneNoneForces a resize and redraw to match changed parent dimensions.
ShowNoneNoneBegins the animation process to show the modal instance. Modal will not be completely shown until the Shown event is fired.

Properties #

NameTypeDefault ValueDescription
AnimationEasingGraffitiAnimator.EasingsLinearDetermines the curve of the animation operation.
AnimationLengthInteger750Time in milliseconds that the class will use for in/our animation before completing.
AnimationStyleAnimationStylesFadeThe method of drawing for in/out animations.
BackgroundColorColorGroupNilColor applied to the child container’s area during animation and while visible.
BorderRadiusInteger0Size, in points, of the radius applied to the corners of the container’s drawn area.
ContainerGraffitiModalContainerNilThe container object that is drawn for this instance. Read-only after Constructor.
DismissOnPressBooleanFalseWhen True, if the user clicks on the backdrop around the container’s area, the modal will be hidden.
PlacementPlacementsCenterMiddlePosition of the modal instance within the parent window.
PlacementBoundaryMarginInteger10Determines distance from the window’s edge when using an outside placement.
TagVariantNilDeveloper storage.