You are not logged in! Log in or Register

VisualButton

Description

The VisualButton is a clickable container. A VisualButton can contain any other Visual block. By default contained elements are stacked horizontally.

Attributes

  • Clicked [event]: Event that is fired when the item is clicked.
  • Enabled [boolean]: Defines whether or not the item receive focus and be pressed. The appearance of the item will be changed. Default: true
  • Name [string]: The name of the block.
  • Orientation [Horizontal|Vertical]: The direction in which contained elements should be stacked. Default: Vertical.
  • Padding [Padding]: Defines the amount of whitespace inside the item.
  • Style [Style]: The style that needs to be applied to the block.
  • TabStop [boolean]: Whether or not the item can receive focus. Default: true.
  • Visible [boolean]: Whether or not the item (and all it's children) are visible. Default. true.

Output connectors

  • Trigger: The trigger that is fired when the button is clicked.

Example

 1 <VisualPage>
 2 	<VisualContent>
 3 		<VisualText Name="text" Text="Please click the button"/>
 4 		<VisualButton Padding="5" Clicked="buttonclicked">
 5 			<VisualText Text="Click me!"/>
 6 		</VisualButton>
 7 	</VisualContent>
 8 </VisualPage>
 9 
10 <ActionList Name="buttonclicked">
11 	<Action Subject="text" Attribute="Text" AttributeValue="Thank you!"/>
12 </ActionList>
Example image

User comments

Nothing comments yet. Be the first!

Leave a comment

You need to be logged in to post a comment.