Interface IButton
Interface for Forms9Patch button elements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public interface IButton : IButtonController, IViewController, IVisualElementController, IElementController, IButtonState, IBackground, IShape, ILabel, ILabelStyle, IFontElement, IElement
Properties
Command
Gets/Sets ICommand invoked when button is clicked
Declaration
ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
CommandParameter
Gets/Sets command parameter used when Command is invoked
Declaration
object CommandParameter { get; set; }
Property Value
Type | Description |
---|---|
Object |
HapticEffect
Get/Sets the haptic effect to be performed when button is clicked
Declaration
HapticEffect HapticEffect { get; set; }
Property Value
Type | Description |
---|---|
HapticEffect |
HapticEffectMode
Gets/Sets the haptic mode used to determine if a HapticEffect will occur when button is clicked
Declaration
EffectMode HapticEffectMode { get; set; }
Property Value
Type | Description |
---|---|
EffectMode |
IsEnabled
Gets/Sets if the button is enabled
Declaration
bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSelected
Gets/Sets if the button is selected
Declaration
bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SelectedBackgroundColor
Gets/Sets background color used when button is selected
Declaration
Color SelectedBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
SelectedTextColor
Gets/Sets color of text when button is selected
Declaration
Color SelectedTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
SoundEffect
Get/Sets the sound effect to be performed when button is clicked
Declaration
SoundEffect SoundEffect { get; set; }
Property Value
Type | Description |
---|---|
SoundEffect |
SoundEffectMode
Gets/Sets the sound mode used to determine if a SoundEffect will occur when button is clicked
Declaration
EffectMode SoundEffectMode { get; set; }
Property Value
Type | Description |
---|---|
EffectMode |
ToggleBehavior
Gets/Sets if button stays in selected or unselected state with one click and requires a second click to return
Declaration
bool ToggleBehavior { get; set; }
Property Value
Type | Description |
---|---|
Boolean |