Click or drag to resize

GUIButtonStyleModel Class

The GUIButtonStyle class defines a button style in GUI and the direct style modifier for GUIButton class.
Inheritance Hierarchy

Namespace:  Livit.Learn.Model.GUI.Styles
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class GUIButtonStyleModel : GUILabelStyleModel

The GUIButtonStyleModel type exposes the following members.

Constructors
  NameDescription
Public methodGUIButtonStyleModel
Initializes a new instance of the GUIButtonStyleModel class
Top
Properties
  NameDescription
Public propertyAlign (Inherited from GUIWidgetStyleModel.)
Public propertyAtlasPath (Inherited from GUIStyleModel.)
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyAutoResizeOffset (Inherited from GUILabelStyleModel.)
Public propertyAutoResizeOffsetSerialized (Inherited from GUILabelStyleModel.)
Public propertyAutoResizeWithLabel (Inherited from GUILabelStyleModel.)
Public propertyBackgroundImageSource (Inherited from GUIImageStyleModel.)
Public propertyClickMode
Public propertyColor (Inherited from GUIWidgetStyleModel.)
Public propertyColorSerialized (Inherited from GUIWidgetStyleModel.)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyDisabled
Public propertyDisabledSerialized
Public propertyEffect (Inherited from GUILabelStyleModel.)
Public propertyEffectColor (Inherited from GUILabelStyleModel.)
Public propertyEffectColorSerialized (Inherited from GUILabelStyleModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyFontPath (Inherited from GUIStyleModel.)
Public propertyHasAtlasPath (Inherited from GUIStyleModel.)
Public propertyHasFontPath (Inherited from GUIStyleModel.)
Public propertyHasImageSource (Inherited from GUIStyleModel.)
Public propertyHover
Public propertyHoverSerialized
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyImageOffset (Inherited from GUIImageStyleModel.)
Public propertyImageOffsetSerialized (Inherited from GUIImageStyleModel.)
Public propertyImageSource (Inherited from GUIStyleModel.)
Public propertyIsClickable
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyKeepAspectRatio (Inherited from GUILabelStyleModel.)
Public propertyLabelPaddingX
Public propertyMaxLineCount (Inherited from GUILabelStyleModel.)
Public propertyNormal
Public propertyNormalSerialized
Public propertyOutlineAtlas
Public propertyOutlineDisabled
Public propertyOutlineDisabledSerialized
Public propertyOutlineHover
Public propertyOutlineHoverSerialized
Public propertyOutlineImage
Public propertyOutlineNormal
Public propertyOutlineNormalSerialized
Public propertyOutlinePressed
Public propertyOutlinePressedSerialized
Public propertyOutlineThickness
Public propertyOutlineVisibilityOption
Public propertyOverflow (Inherited from GUILabelStyleModel.)
Public propertyPressed
Public propertyPressedSerialized
Public propertyRapidClickDelay
Public propertyResizeMode (Inherited from GUIImageStyleModel.)
Public propertyShader (Inherited from GUIImageStyleModel.)
Public propertySound
Public propertySpacing (Inherited from GUILabelStyleModel.)
Public propertySpacingSerialized (Inherited from GUILabelStyleModel.)
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyTextColor
Public propertyTextColorSerialized
Public propertyTextOffset (Inherited from GUILabelStyleModel.)
Public propertyTextOffsetSerialized (Inherited from GUILabelStyleModel.)
Public propertyTextSize (Inherited from GUILabelStyleModel.)
Public propertyTextWidth
Public propertyTileMode (Inherited from GUIImageStyleModel.)
Public propertyTileSize (Inherited from GUIImageStyleModel.)
Public propertyTileSizeSerialized (Inherited from GUIImageStyleModel.)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Fields
Examples
XML
<GUIStyles>
  <GUIButtonStyle Id="MainStyle" ClickMode="Hold" Disabled="1,1,1,1" Hover="2,2,2,2" IsClickable="false" Normal="1,1,1,1" OutlineAtlas="MachineUIAtlas" OutlineDisabled="1,1,1,1" OutlineHover="1,1,1,1" OutlineImage="block_white" OutlineNormal="1,1,1,1" OutlinePressed="1,1,1,1" OutlineVisibilityOption="Never" Pressed="1,1,1,1" RapidClickDelay="0.2" Sound="Click" TextColor="1,1,1,1" TextWidth="2" />
</GUIStyles>
See Also