Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 2.4 KB

File metadata and controls

90 lines (50 loc) · 2.4 KB

MaterialViewButton

View buttons are Views that react to touch events.

Namespace: HorusStudio.Maui.MaterialDesignControls

Inherits from: MaterialViewButton → ContentView


Properties

Gets or sets the command to invoke when the button is activated. This is a bindable property.

Property type: ICommand

Remarks: This property is used to associate a command with an instance of a button.

  • This property is most often set in the MVVM pattern to bind callbacks back into the ViewModel. VisualElement.IsEnabled is controlled by the Command.CanExecute(object) if set.

Gets or sets the parameter to pass to the Command property. This is a bindable property.

Property type: Object

Default value: null.


Gets or sets a custom animation to be executed when a icon is clicked. This is a bindable property.

Property type: ITouchAnimation

Default value: null.


Gets or sets an animation to be executed when an icon is clicked This is a bindable property.

Property type: TouchAnimationTypes

Name Value Description
None 0 None: no animation runs.
Fade 1 Fade: Represents an animation that simulates a "fade" effect by changing the opacity over the target element.
Scale 2 Scale: Represents an animation that simulates a "sink" or "sunken" effect by scaling the target element.
Bounce 3 Bounce: Represents an animation that simulates a "sink" or "sunken" effect with a "bounce" effect when the user releases the target element.

Default value: TouchAnimationTypes.Fade


Events

Occurs when the card is clicked/tapped.


Occurs when the card is pressed.


Occurs when the card is released.


Occurs when the card is touched.