Tag button
Used as shortcuts to search lists of items.
Base component is StateButton, more info here – https://github.com/IeuanWalker/Xamarin.Forms.StateButton
How to use this component
Should be used with a list/ search bar.
See context for how to display a list of tags.
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:Tag Clicked="FilterResults" Text="{Binding Tag, Converter={StaticResource WelshEnglishConverter}}" />
- Text
- Sets the text displayed on the button
- Default is String.Empty
- 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
<ScrollView Grid.Row="0"
BackgroundColor="{DynamicResource SearchBackgroundColor}"
HorizontalScrollBarVisibility="Never"
IsVisible="{Binding QuickTag, Converter={StaticResource HasDataConverter}}"
Orientation="Horizontal">
<StackLayout BindableLayout.ItemsSource="{Binding QuickTag}" Orientation="Horizontal">
<BindableLayout.ItemTemplate>
<DataTemplate x:DataType="reportIt1:TagModel">
<buttons:Tag Clicked="FilterResults" Text="{Binding Tag, Converter={StaticResource WelshEnglishConverter}}" />
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
</ScrollView>