VisualElement
This is the basic element displayable in your pages. It cannot be used directly but all visual elements inherit it and its properties.
Ancestry
BaseElement
Properties
IsFocusable (bool) Can the element receive focus? If False, then it will not be possible to reach the element by navigating through the application.
IsEnabled (bool) Is the item active or grayed out? If False, interaction with the element is completely prohibited (including clicking)
GridCol (int) When the element is in a Layout, indicates the column in which it is displayed.
ColumnSpan (int) When the element is in a Layout, indicates the number of columns it occupies.
GridRow (int) When the element is in a Layout, indicates the row in which it is displayed.
RowSpan (int) When the element is in a Layout, indicates the number of lines it occupies.
Width (int) To force the width of the element, if not defined the width is automatic.
Height (int) To force the height of the element, if not defined the height is automatic.
MaxWidth (int) Maximum width that the element can take, in particular when Width is not defined (auto width).
MinWidth (int) Min width that the element can take, in particular when Width is not defined (auto width).
MaxHeight (int) Maximum height that the element can take, in particular when Height is not defined (auto height).
MinHeight (int) Minimum height that the element can take, in particular when Height is not defined (auto height).
BackColor (Color) Background color of the element. Ex : #RRGGBB in hexadecimal (RR = red, GG = green, BB = blue): “#FFFFFF” for white #AARRGGBB in hexadecimal (AA = transparency level): "#A0FFFFFF" for transparent white "Random" so that the LaunchMeUp chooses a color randomly among those defined at the Launcher level The name of a predefined color: "Red", "Blue", "Cyan", ...
ForeColor (Color) Color of the element's text, same format as background.
Margin (string) Margin to apply outside the element (in pixels). Ex : R T L B (R = right, T = up, L = left, B = down: “10 4 10 4” RL TB (RL = right and left, TL = top and base: “10 4” A (A = all): “10”
Padding (string) Margin to apply inside the element before displaying its children. Same format as Margin
HorizontalAlignment (enum HorizontalAlignment) Horizontal alignment of the element.
VerticalAlignment (enum VerticalAlignment) Vertical alignment of the element:
HorizontalContentAlignment (enum HorizontalAlignment) Horizontal alignment of element content.
VerticalContentAlignment (enum VerticalAlignment) Vertical alignment of element content.
BorderWidth (string) Width of the element's border in pixels. Same format as margin.
BorderColor (color) Color of the element border. Same format as Background.
CornerFillet (string) Rounding the corners of the element. Ex : TL TR BR BL (TR = top left, TR = top right, BR = bottom right, BL = bottom left): "4 4 4 4" A (A = all corners): "4"
IsVisible (bool) Is the item visible? True or False
FontFamily (Font) Element text font name
FontSize (int) Element text font size
FontWeight (enum FontWeight) Thickening the element text.
FontStyle (enum FontStyle) Style of the element text.
Effect (Effect enum)
Effect to apply to the element.
Appearance (AnimationType enum)
Animations to launch to make the element appear on the screen:
It is possible to combine several animations by separating them with a comma. Ex: “Rotate, LeftSlide, Fade”
Disappearance (AnimationType enum) Animations to launch when the element disappears from the screen. Same format as Appearance.
SkinSource (string) (accepts variables) Image to use as the item's skin. URL or local path.
RotateAngle (int) Element rotation angle in degrees.
Shortcut (JoyKey enum) Shortcut key (or joystick button) to access the item directly.
Opacity (decimal) Opacity of the element, between 0 and 1
ZIndex (int) Position of the element in depth, to know which element appears in front of the others. The higher the ZIndex, the more foreground the element is.
See as well
BaseElement