DXSwitch Properties
A switch control.| Name | Description |
|---|---|
| AllowContentTap | Gets or sets whether to toggle the DXSwitch when a user taps its caption. This is a bindable property. |
| AllowUncheckInGroup | Gets or sets whether a user can uncheck the DXSwitch within the group. This is a bindable property. |
| 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. |
| AnimationBounceDelta | Gets or sets the delta between base and extreme positions of the thumb during the bounce animation. This is the bindable property. |
| AnimationDuration | Gets or sets the animation’s duration. This is a bindable property. |
| 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. |
| BorderColor | Gets or sets the border color of a DXViewBase descendant. This is a bindable property. Inherited from DXViewBase. |
| BorderThickness | Gets or sets the border thickness of a DXViewBase descendant. This is a bindable property. Inherited from DXViewBase. |
| Bounds | Gets the bounds of the element in device-independent units. Inherited from VisualElement. |
| CheckedIcon | Gets or sets the thumb icon of the DXSwitch in the checked state. This is a bindable property. |
| CheckedIconColor | Gets or sets the thumb icon color of the DXSwitch in the checked state. This is a bindable property. |
| CheckedTextColor | Gets or sets the caption color of the DXSwitch in the checked state. This is a bindable property. |
| CheckedThumbColor | Gets or sets the thumb color of the DXSwitch in the checked state. This is a bindable property. |
| CheckedThumbHeight | Gets or sets the thumb height of the DXSwitch in the checked state. This is a bindable property. |
| CheckedThumbWidth | Gets or sets the thumb width of the DXSwitch in the checked state. This is a bindable property. |
| CheckedTrackBorderColor | Gets or sets the track border color of the DXSwitch in the checked state. This is a bindable property. |
| CheckedTrackColor | Gets or sets the track color of the DXSwitch in the checked state. This is a bindable property. |
| 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. |
| Command | Gets or sets the command executed when a user taps the DXSwitch. This is a bindable property. |
| CommandParameter | Gets or sets the parameter passed to the Command. This is a bindable property. |
| Content | Gets or sets an object that the DXBorder displays. This is a bindable property. Inherited from DXBorder. |
| ContentTemplate | Gets or sets a template that configures the DXBorder.Content appearance. This is a bindable property. Inherited from DXBorder. |
| ContentTemplateSelector | Gets or sets the template selector that chooses a ContentTemplate based on the passed view model. This is a bindable property. Inherited from DXBorder. |
| CornerRadius | Gets or sets the corner radius of a DXViewBase descendant. This is a bindable property. Inherited from DXViewBase. |
| DesiredSize | Gets the size that this element computed during the measure pass of the layout process. Inherited from VisualElement. |
| DisabledCheckedIconColor | Gets or sets the thumb icon color of the DXSwitch in disabled and checked states. This is a bindable property. |
| DisabledCheckedTextColor | Gets or sets the caption color of the DXSwitch in disabled and checked states. This is a bindable property. |
| DisabledCheckedThumbColor | Gets or sets the thumb color of the DXSwitch in disabled and checked states. This is a bindable property. |
| DisabledCheckedTrackBorderColor | Gets or sets the track border color of the DXSwitch in disabled and checked states. This is a bindable property. |
| DisabledCheckedTrackColor | Gets or sets the track color of the DXSwitch in disabled and checked states. This is a bindable property. |
| DisabledIconColor | Gets or sets the thumb icon color of the DXSwitch in the disabled state. This is a bindable property. |
| DisabledTextColor | Gets or sets the caption color of the DXSwitch in the disabled state. This is a bindable property. |
| DisabledThumbColor | Gets or sets the thumb color of the DXSwitch in the disabled state. This is a bindable property. |
| DisabledTrackBorderColor | Gets or sets the track border color of the DXSwitch in the disabled state. This is a bindable property. |
| DisabledTrackColor | Gets or sets the track color of the DXSwitch in the disabled state. This is a bindable property. |
| 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. |
| FontAttributes | Gets or sets font attributes (such as bold and italic). This is a bindable property. Inherited from DXContentPresenterBase. |
| FontAutoScalingEnabled | Gets or sets whether text is scaled according to the operating system’s text scale setting. This is a bindable property. Inherited from DXContentPresenterBase. |
| FontFamily | Gets or sets the font name applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| FontSize | Gets or sets the font size applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| 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. |
| GroupName | Gets or sets the name of the group to which the DXSwitch belongs. This is a bindable property. |
| 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. |
| HorizontalContentAlignment | Gets or sets the horizontal alignment of a DXContentPresenterBase descendant’s content. This is a bindable property. Inherited from DXContentPresenterBase. |
| 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. |
| Icon | Gets or sets the thumb icon of the DXSwitch. This is a bindable property. |
| IconAspect | Gets or sets the thumb icon aspect of the DXSwitch. This is a bindable property. |
| IconColor | Gets or sets the thumb icon color of the DXSwitch. This is a bindable property. |
| IconColorizationEnabled | Gets or sets whether to change the thumb icon color of the DXSwitch. This is a bindable property. |
| IconHeight | Gets or sets the thumb icon height of the DXSwitch. This is a bindable property. |
| IconWidth | Gets or sets the thumb icon width of the DXSwitch. This is a bindable property. |
| Id | Gets a value that can be used to uniquely identify an element throughout the run of your application. Inherited from Element. |
| 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. |
| IsChecked | Gets or sets if the DXSwitch is checked. This is a bindable property. |
| IsClippedToBounds | Gets or sets whether the DXViewBase should clip child controls to its bounds. This is a bindable property. Inherited from DXViewBase. |
| 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. |
| 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. |
| 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 amount of space around the DXViewBase descendants. This is a bindable property. Inherited from DXViewBase. |
| Parent | Gets or sets the parent Element of this element. Inherited from Element. |
| PressedThumbHeight | Gets or sets the thumb height of the DXSwitch in the pressed state. This is a bindable property. |
| PressedThumbShadowColor | Gets or sets the thumb shadow color of the DXSwitch in the pressed state. This is a bindable property. |
| PressedThumbShadowHeight | Gets or sets the thumb shadow height of the DXSwitch in the pressed state. This is a bindable property. |
| PressedThumbShadowWidth | Gets or sets the thumb shadow width of the DXSwitch in the pressed state. This is a bindable property. |
| PressedThumbWidth | Gets or sets the thumb width of the DXSwitch in the pressed state. This is a bindable property. |
| 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. |
| 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. |
| SwitchIndent | Gets or sets the gap between the caption and the track within the DXSwitch. This is a bindable property. |
| SwitchPlacement | Gets or sets the track placement relative to the caption. This is a bindable property. |
| TextCharacterSpacing | Gets or sets the spacing between characters of a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextColor | Gets or sets a DXContentPresenterBase descendant’s text color. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextDecorations | Gets or sets text decorations applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextHorizontalAlignment | Gets or sets the horizontal alignment applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextLineBreakMode | Gets or sets the line breaking mode for a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextLineHeight | Gets or sets line height applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextMaxLines | Gets or sets the maximum number of a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextTransform | Gets or sets the transformation applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| TextVerticalAlignment | Gets or sets the vertical alignment applied to a DXContentPresenterBase descendant’s text. This is a bindable property. Inherited from DXContentPresenterBase. |
| Theme | Gets or sets the theme applied to the DXSwitch. This is a bindable property. |
| ThemeSeedColor | Gets or sets the primary key color of the applied theme. This is a bindable property. |
| ThumbColor | Gets or sets the thumb color of the DXSwitch. This is a bindable property. |
| ThumbHeight | Gets or sets the thumb height of the DXSwitch. This is a bindable property. |
| ThumbWidth | Gets or sets the thumb width of the DXSwitch. This is a bindable property. |
| TrackBorderColor | Gets or sets the track border color of the DXSwitch. This is a bindable property. |
| TrackBorderThickness | Gets or sets the track border thickness of the DXSwitch. This is a bindable property. |
| TrackColor | Gets or sets the track color of the DXSwitch. This is a bindable property. |
| TrackPadding | Gets or sets the track padding of the DXSwitch. 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. |
| VerticalContentAlignment | Gets or sets the vertical alignment of a DXContentPresenterBase descendant’s content. This is a bindable property. Inherited from DXContentPresenterBase. |
| 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. |
| 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