Share via


Shield Class

Definition

The Shield is a type of badge that has two colored sections that contain text

public class Shield : Xamarin.CommunityToolkit.UI.Views.Internals.BaseTemplatedView<Xamarin.Forms.Frame>
Inheritance

Constructors

Shield()

Fields

ColorProperty
CommandParameterProperty

Backing BindableProperty for the CommandParameter property.

CommandProperty

Backing BindableProperty for the Command property.

FontAttributesProperty

Backing BindableProperty for the FontAttributes property.

FontFamilyProperty

Backing BindableProperty for the FontFamily property.

FontSizeProperty

Backing BindableProperty for the FontSize property.

StatusBackgroundColorProperty

Backing BindableProperty for the StatusBackgroundColor property.

StatusProperty

Backing BindableProperty for the Status property.

StatusTextColorProperty

Backing BindableProperty for the StatusTextColor property.

SubjectBackgroundColorProperty

Backing BindableProperty for the SubjectBackgroundColor property.

SubjectProperty

Backing BindableProperty for the Subject property.

SubjectTextColorProperty

Backing BindableProperty for the SubjectTextColor property.

TextColorProperty

Properties

Color
Command

Command that is triggered when the Shield is tapped. This is a bindable property.

CommandParameter

Parameter that is provided to the Command when the Shield is tapped. This is a bindable property.

Control (Inherited from BaseTemplatedView<TControl>)
FontAttributes

Font attributes of all the text on the Shield. This is a bindable property.

FontFamily

Font of all the text on the Shield. This is a bindable property.

FontSize

Font size of all the text on the Shield. NamedSize values can be used. This is a bindable preoprty.

Status

Text that is shown on the right side of the Shield. This is a bindable property.

StatusBackgroundColor

Background Color of the right side of the Shield. This is a bindable property.

StatusTextColor

Text Color of the text on the right side of the Shield

Subject

Text that is shown on the left side of the Shield. This is a bindable property.

SubjectBackgroundColor

Background Color of the left side of the Shield. This is a bindable property.

SubjectTextColor

Text Color of the text on the right side of the Shield

TextColor

Methods

OnBindingContextChanged() (Inherited from BaseTemplatedView<TControl>)
OnChildAdded(Element) (Inherited from BaseTemplatedView<TControl>)
OnControlInitialized(Frame)
OnControlInitialized(TControl) (Inherited from BaseTemplatedView<TControl>)
OnPropertyChanged(String)

Events

Tapped

Event that is triggered when the Shield is tapped. This is a bindable property.

Applies to