Skip to main content

FormSwitchItem Properties

A switch element that serves as a single item in a composite UI structure such as a data entry form, profile page, menu, action sheet, or settings panel.
Name Description
ActualAppearance Gets the common appearance settings that are applied to the current FormSwitchItem.
AllowTap Indicates whether the control responds to user taps. This is a bindable property. Inherited from FormItemBase.
AnchorX Gets or sets the X component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
AnchorY Gets or sets the Y component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
ArrowColor Gets or sets the arrow’s fill color. This is a bindable property. Inherited from FormItemBase.
ArrowMargin Gets or sets the gaps between the arrow and other form item elements. This is a bindable property. Inherited from FormItemBase.
ArrowTemplate Gets or sets a template that configures the arrow’s appearance. This is a bindable property. Inherited from FormItemBase.
ArrowVerticalOptions Gets or sets the vertical alignment of the form item’s arrow. This is a bindable property. Inherited from FormItemBase.
AutomationId Gets or sets a value that allows the automation framework to find and interact with this element. Inherited from Element.
Background Gets or sets the Brush which will be used to fill the background of an element. This is a bindable property. Inherited from VisualElement.
BackgroundColor Gets or sets the Color which will fill the background of an element. This is a bindable property. Inherited from VisualElement.
Batched Gets a value that indicates there are batched changes done for this element. Inherited from VisualElement.
Behaviors Gets the list of Behavior objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
BindingContext

Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this BindableObject. This is a bindable property.

Inherited from BindableObject.
Bounds Gets the bounds of the element in device-independent units. Inherited from VisualElement.
CascadeInputTransparent

Gets or sets a value that controls whether child elements inherit the input transparency of this layout when the tranparency is true.

Inherited from Layout.
Children Gets the child objects contained in this layout. Inherited from Layout.
class Gets or sets the style classes for the element. Inherited from NavigableElement.
ClassId Gets or sets a value used to identify a collection of semantically similar elements. Inherited from Element.
Clip Specifies the clipping region for an element. This is a bindable property. Inherited from VisualElement.
DesiredSize Gets the size that this element computed during the measure pass of the layout process. Inherited from VisualElement.
Detail Gets or sets the secondary text (description) of the form item. This is a bindable property. Inherited from FormItemBase.
DetailColor Gets or sets the color of the form item’s detail text. This is a bindable property. Inherited from FormItemBase.
DetailFontAttributes Gets or sets font attributes of the detail text. This is a bindable property. Inherited from FormItemBase.
DetailFontFamily Gets or sets the font family that the form item applies to its Detail. This is a bindable property. Inherited from FormItemBase.
DetailFontSize Gets or sets the font size for the detail text. This is a bindable property. Inherited from FormItemBase.
DetailLineBreakMode Gets or sets the line break mode for the font item’s detail text. This is a bindable property. Inherited from FormItemBase.
DetailMargin Gets or sets the gaps between the detail text and other form item elements. This is a bindable property. Inherited from FormItemBase.
DetailMaxLineCount Gets or sets the maximum number of lines the detail text can occupy. This is a bindable property. Inherited from FormItemBase.
DisableLayout Gets a value that indicates that layout for this element is disabled. Inherited from VisualElement.
Dispatcher

Gets the dispatcher that was available when this bindable object was created, otherwise tries to find the nearest available dispatcher (probably the window’s/app’s).

Inherited from BindableObject.
EffectControlProvider For internal use by .NET MAUI. Inherited from Element.
Effects Gets or sets the styles and properties that will be applied to the element during runtime. Inherited from Element.
FlowDirection Gets or sets the layout flow direction. This is a bindable property. Inherited from VisualElement.
FontAutoScalingEnabled Gets or sets whether the form item text is scaled according to the operating system’s text scale setting. This is a bindable property. Inherited from FormItemBase.
Frame Gets or sets the frame this element resides in on screen. Inherited from VisualElement.
GestureRecognizers The collection of gesture recognizers associated with this view. Inherited from View.
Handler Gets or sets the IViewHandler associated to this element. Inherited from VisualElement.
Height Gets the current rendered height of this element. This is a read-only bindable property. Inherited from VisualElement.
HeightRequest Gets or sets the desired height override of this element. This is a bindable property. Inherited from VisualElement.
HorizontalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
HorizontalSpacing Gets or sets the amount of horizontal space between form items in the FormGroupItem. This is a bindable property. Inherited from FormItemBase.
Id Gets a value that can be used to uniquely identify an element throughout the run of your application. Inherited from Element.
ImageColor Gets or sets the image’s fill color. This is a bindable property. Inherited from FormItemBase.
ImageHeight Gets or sets the form item’s image height. This is a bindable property. Inherited from FormItemBase.
ImageMargin Gets or sets the gaps between the image and other form item elements. This is a bindable property. Inherited from FormItemBase.
ImageSource Gets or sets the image source. This is a bindable property. Inherited from FormItemBase.
ImageTemplate Gets or sets a template that configures the image content and appearance. This is a bindable property. Inherited from FormItemBase.
ImageVerticalOptions Gets or sets the vertical alignment for the image. This is a bindable property. Inherited from FormItemBase.
ImageWidth Gets or sets the form item’s image width. This is a bindable property. Inherited from FormItemBase.
InputTransparent Gets or sets a value indicating whether this element responds to hit testing during user interaction. This is a bindable property. Inherited from VisualElement.
IsClippedToBounds

Gets or sets a value which determines if the layout should clip its children to its bounds. The default value is false.

Inherited from Layout.
IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface. This is a bindable property. Inherited from VisualElement.
IsFocused Gets a value indicating whether this element is focused currently. This is a bindable property. Inherited from VisualElement.
IsPlatformEnabled Gets or sets a value that indicates whether this elements’s platform equivalent element is enabled. Inherited from VisualElement.
IsToggled Gets or sets whether the item is toggled (enabled). This is a bindable property.
IsVisible Gets or sets a value that determines whether this element will be visible on screen and take up space in layouts. This is a bindable property. Inherited from VisualElement.
LogicalChildren For internal use by the Microsoft.Maui.Controls platform. Inherited from Element.
Margin Gets or set the margin for the view. Inherited from View.
MinimumHeightRequest Gets or sets the minimum height the element will request during layout. This is a bindable property. Inherited from VisualElement.
MinimumWidthRequest Gets or sets the minimum width the element will request during layout. This is a bindable property. Inherited from VisualElement.
Navigation Gets the object responsible for handling stack-based navigation. Inherited from NavigableElement.
NavigationProxy Gets the cast of Navigation to a NavigationProxy. Inherited from NavigableElement.
OnColor Gets or sets the switch color when it is ‘On’. This is a bindable property.
Opacity Gets or sets the opacity value applied to the element when it is rendered. The range of this value is 0 to 1; values outside this range will be set to the nearest valid value. This is a bindable property. Inherited from VisualElement.
Padding

Gets or sets the inner padding of the layout. The default value is a Thickness with all values set to 0.

Inherited from Layout.
Parent Gets or sets the parent Element of this element. Inherited from Element.
PressedColor Gets or sets the FormItemBase descendant’s color in the pressed state. This is a bindable property. Inherited from FormItemBase.
RealParent For internal use by .NET MAUI. Inherited from Element.
Resources Gets or sets the local resource dictionary. Inherited from VisualElement.
Rotation Gets or sets the rotation (in degrees) about the Z-axis (affine rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationX Gets or sets the rotation (in degrees) about the X-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationY Gets or sets the rotation (in degrees) about the Y-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
Scale Gets or sets the scale factor applied to the element. This is a bindable property. Inherited from VisualElement.
ScaleX Gets or sets a scale value to apply to the X direction. This is a bindable property. Inherited from VisualElement.
ScaleY Gets or sets a scale value to apply to the Y direction. This is a bindable property. Inherited from VisualElement.
SeparatorColor Gets or sets the separator’s fill color. This is a bindable property. Inherited from FormItemBase.
SeparatorMargin Gets or sets the form item separator margin. This is a bindable property. Inherited from FormItemBase.
SeparatorThickness Gets or sets the form item’s separator thickness. This is a bindable property. Inherited from FormItemBase.
ShowArrow Gets or sets whether to show the form items’s arrow. This is a bindable property. Inherited from FormItemBase.
ShowSeparator Gets or sets whether to show the form items’s separator. This is a bindable property. Inherited from FormItemBase.
Style Gets or sets the unique Style for this element. Inherited from NavigableElement.
StyleClass Gets or sets the style classes for the element. Inherited from NavigableElement.
StyleId Gets or sets a user defined value to uniquely identify the element. Inherited from Element.
TapCommand Gets or sets a command executed when a user taps the form item. This is a bindable property. Inherited from FormItemBase.
TapCommandParameter Gets or sets the parameter passed to the TapCommand. This is a bindable property. Inherited from FormItemBase.
Text Gets or sets the primary text for the form item. This is a bindable property. Inherited from FormItemBase.
TextColor Gets or sets the form item Text color. This is a bindable property. Inherited from FormItemBase.
TextFontAttributes Gets or sets the font style that the form item applies to its Text. This is a bindable property. Inherited from FormItemBase.
TextFontFamily Gets or sets the font family that the form item applies for its Text. This is a bindable property. Inherited from FormItemBase.
TextFontSize Gets or sets the font size for the detail text. This is a bindable property. Inherited from FormItemBase.
TextLineBreakMode Specifies the line breaking mode for the font item’s text. This is a bindable property. Inherited from FormItemBase.
TextMargin Gets or sets the gaps between the primary text and other form item elements. This is a bindable property. Inherited from FormItemBase.
TextMaxLineCount Gets or sets the maximum number of lines the text can occupy. This is a bindable property. Inherited from FormItemBase.
ThumbColor Gets or sets the color of the FormSwitchItem thumb. This is a bindable property.
TranslationX Gets or sets the X translation delta of the element. This is a bindable property. Inherited from VisualElement.
TranslationY Gets or sets the Y translation delta of the element. This is a bindable property. Inherited from VisualElement.
Triggers Gets the list of TriggerBase objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
UseRippleEffect Gets or sets whether to show ripple effects when users tap a data form item. This is a bindable property. Inherited from FormItemBase.
VerticalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
VerticalSpacing Gets or sets the amount of vertical space between items in the FormGroupItem when they are arranged in multiple rows. This is a bindable property. Inherited from FormItemBase.
Visual Gets or sets a IVisual implementation that overrides the visual appearance of an element. This is a bindable property. Inherited from VisualElement.
Width Gets the current width of this element. This is a read-only bindable property. Inherited from VisualElement.
WidthRequest Gets or sets the desired width override of this element. This is a bindable property. Inherited from VisualElement.
X Gets the current X position of this element. This is a read-only bindable property. Inherited from VisualElement.
Y Gets the current Y position of this element. This is a read-only bindable property. Inherited from VisualElement.
See Also