Vertical transparent button
A vertical button with a transparent background used on the homepage for the horisontal list.
Base component is StateButton, more info here – https://github.com/IeuanWalker/Xamarin.Forms.StateButton
How to use this component
Should be used on a main route screen when there is a requirement for a lot of menu options.
Can only be used with short titles and must have a suitable icon.
Code Resource
Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /home/site/wwwroot/wp-content/themes/huntsman-child/single-mobile.php on line 96
<buttons:VerticalTransparent Margin="10,0,10,0"
ClickedCommand="{Binding BindingContext.ReportItSelectedCommand, Source={x:Reference HomePageName}}"
ClickedCommandParameter="{Binding .}"
Icon="{Binding FontIcon}"
IconFontFamily="{Binding Font, Converter={StaticResource FontFamilyConverter}}"
Text="{Binding Title, Converter={StaticResource WelshEnglishConverter}}" />
- Text
- Sets the text displayed on the button
- Default is String.Empty
- Icon
- Sets the icon (right side of text)
- Default is String.Empty
- IconFontSize
- Sets the Icon font size
- Default is 26d
- State
- This changes based on the button state.
- Options are Pressed or NotPressed
- Default is NotPressed
- ClickedCommand
- Triggered when the button is pressed and released
- PressedCommand
- Triggered when the button is pressed
- ReleasedCommand
- Triggered when the button is released
- Clicked
- Triggered when the button is pressed and released
- Pressed
- Triggered when the button is pressed
- Released
- Triggered when the button is released