DataFormSwitchItem Members
Stores settings of the data form’s switch control.Constructors
Name | Description |
---|---|
DataFormSwitchItem() | Initializes a new instance of the DataFormSwitchItem class. |
Fields
Name | Description |
---|---|
AnchorXProperty static | Bindable property for AnchorX. Inherited from VisualElement. |
AnchorYProperty static | Bindable property for AnchorY. Inherited from VisualElement. |
AutomationIdProperty static | Bindable property for AutomationId. Inherited from Element. |
BackgroundColorProperty static | Identifies the BackgroundColor bindable property. Inherited from DataFormItem. |
BackgroundProperty static | Bindable property for Background. Inherited from VisualElement. |
BehaviorsProperty static | Bindable property for Behaviors. Inherited from VisualElement. |
BindingContextProperty static | Bindable property for BindingContext. Inherited from BindableObject. |
BottomTextFontAttributesProperty static | Identifies the BottomTextFontAttributes bindable property. Inherited from DataFormItem. |
BottomTextFontFamilyProperty static | Identifies the BottomTextFontFamily bindable property. Inherited from DataFormItem. |
BottomTextFontSizeProperty static | Identifies the BottomTextFontSize bindable property. Inherited from DataFormItem. |
ClassIdProperty static | Bindable property for ClassId. Inherited from Element. |
ClipProperty static | Bindable property for Clip. Inherited from VisualElement. |
EditorHorizontalAlignmentProperty static | Identifies the EditorHorizontalAlignment bindable property. |
EditorMaxWidthProperty static | Identifies the EditorMaxWidth bindable property. Inherited from DataFormItem. |
EditorMinWidthProperty static | Identifies the EditorMinWidth bindable property. Inherited from DataFormItem. |
EditorWidthProperty static | Identifies the EditorWidth bindable property. Inherited from DataFormItem. |
ErrorColorProperty static | Identifies the ErrorColor bindable property. Inherited from DataFormItem. |
FieldNameProperty static | Identifies the FieldName bindable property. Inherited from DataFormItem. |
FlowDirectionProperty static | Bindable property for FlowDirection. Inherited from VisualElement. |
GroupNameProperty static | Identifies the GroupName bindable property. Inherited from DataFormItem. |
HeightProperty static | Bindable property for Height. Inherited from VisualElement. |
HeightRequestProperty static | Bindable property for HeightRequest. Inherited from VisualElement. |
HelpTextColorProperty static | Identifies the HelpTextColor bindable property. Inherited from DataFormItem. |
HelpTextProperty static | Identifies the HelpText bindable property. Inherited from DataFormItem. |
InputTransparentProperty static | Bindable property for InputTransparent. Inherited from VisualElement. |
IsEnabledProperty static | Identifies the IsEnabled bindable property. Inherited from DataFormItem. |
IsFocusedProperty static | Bindable property for IsFocused. Inherited from VisualElement. |
IsFocusedPropertyKey static | Bindable property for IsFocused. Inherited from VisualElement. |
IsLabelVisibleProperty static | Identifies the IsLabelVisible bindable property. Inherited from DataFormItem. |
IsVisibleProperty static | Identifies the IsVisible bindable property. Inherited from DataFormItem. |
ItemOrderInRowProperty static | Identifies the ItemOrderInRow bindable property. Inherited from DataFormItem. |
LabelColorProperty static | Identifies the LabelColor bindable property. Inherited from DataFormItem. |
LabelFontAttributesProperty static | Identifies the LabelFontAttributes bindable property. Inherited from DataFormItem. |
LabelFontFamilyProperty static | Identifies the LabelFontFamily bindable property. Inherited from DataFormItem. |
LabelFontSizeProperty static | Identifies the LabelFontSize bindable property. Inherited from DataFormItem. |
LabelHorizontalAlignmentProperty static | Identifies the LabelHorizontalAlignment bindable property. Inherited from DataFormItem. |
LabelIconProperty static | Identifies the LabelIcon bindable property. Inherited from DataFormItem. |
LabelIndentProperty static | Identifies the LabelIndent bindable property. Inherited from DataFormItem. |
LabelMaxWidthProperty static | Identifies the LabelMaxWidth bindable property. Inherited from DataFormItem. |
LabelMinWidthProperty static | Identifies the LabelMinWidth bindable property. Inherited from DataFormItem. |
LabelPositionProperty static | Identifies the LabelPosition bindable property. Inherited from DataFormItem. |
LabelTextProperty static | Identifies the LabelText bindable property. Inherited from DataFormItem. |
LabelWidthProperty static | Identifies the LabelWidth bindable property. Inherited from DataFormItem. |
MinimumHeightRequestProperty static | Bindable property for MinimumHeightRequest. Inherited from VisualElement. |
MinimumWidthRequestProperty static | Bindable property for MinimumWidthRequest. Inherited from VisualElement. |
NavigationProperty static | Bindable property for Navigation. Inherited from VisualElement. |
OnColorProperty static | Identifies the OnColor bindable property. |
OpacityProperty static | Bindable property for Opacity. Inherited from VisualElement. |
PaddingProperty static | Identifies the Padding bindable property. Inherited from DataFormItem. |
ReserveBottomTextLineProperty static | Identifies the ReserveBottomTextLine bindable property. Inherited from DataFormItem. |
RotationProperty static | Bindable property for Rotation. Inherited from VisualElement. |
RotationXProperty static | Bindable property for RotationX. Inherited from VisualElement. |
RotationYProperty static | Bindable property for RotationY. Inherited from VisualElement. |
RowOrderProperty static | Identifies the RowOrder bindable property. Inherited from DataFormItem. |
RowSpanProperty static | Identifies the RowSpan bindable property. Inherited from DataFormItem. |
ScaleProperty static | Bindable property for Scale. Inherited from VisualElement. |
ScaleXProperty static | Bindable property for ScaleX. Inherited from VisualElement. |
ScaleYProperty static | Bindable property for ScaleY. Inherited from VisualElement. |
StyleProperty static | Bindable property for Style. Inherited from VisualElement. |
ThumbColorProperty static | Identifies the ThumbColor bindable property. |
TranslationXProperty static | Bindable property for TranslationX. Inherited from VisualElement. |
TranslationYProperty static | Bindable property for TranslationY. Inherited from VisualElement. |
TriggersProperty static | Bindable property for Triggers. Inherited from VisualElement. |
VisualProperty static | Bindable property for Visual. Inherited from VisualElement. |
WidthProperty static | Bindable property for Width. Inherited from VisualElement. |
WidthRequestProperty static | Bindable property for WidthRequest. Inherited from VisualElement. |
XProperty static | Bindable property for X. Inherited from VisualElement. |
YProperty static | Bindable property for Y. Inherited from VisualElement. |
Properties
Name | Description |
---|---|
ActualIsEnabled | Gets the IsEnabled value that is applied to the current instance of the DataFormItem. Inherited from DataFormItem. |
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. |
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 background color of the data form’s item. This is a bindable property. Inherited from DataFormItem. |
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. |
BottomTextFontAttributes | Gets or sets whether the editor’s help and error text is bold or italic. This is a bindable property. Inherited from DataFormItem. |
BottomTextFontFamily | Gets or sets the name of the font for the editor’s help and error text. This is a bindable property. Inherited from DataFormItem. |
BottomTextFontSize | Gets or sets the font size of the editor’s help and error text. This is a bindable property. Inherited from DataFormItem. |
Bounds | Gets the bounds of the element in device-independent units. Inherited from VisualElement. |
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. |
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. |
EditorHorizontalAlignment | Gets or sets a SwitchItem’s horizontal alignment within the data form. This is a bindable property. |
EditorMaxWidth | Gets or sets the maximum width of the edit box. This is a bindable property. Inherited from DataFormItem. |
EditorMinWidth | Gets or sets the minimum width of the edit box. This is a bindable property. Inherited from DataFormItem. |
EditorWidth | Gets or sets the width of the edit box. This is a bindable property. Inherited from DataFormItem. |
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. |
ErrorColor | Gets or sets the color of the editor’s borders, in-place label, error icon, and error message. This is a bindable property. Inherited from DataFormItem. |
FieldName | Gets or sets the name of the data object’s property to which the editor is bound. This is a bindable property. Inherited from DataFormItem. |
FlowDirection | Gets or sets the layout flow direction. This is a bindable property. Inherited from VisualElement. |
Frame | Gets or sets the frame this element resides in on screen. Inherited from VisualElement. |
GroupName | Gets or sets the name of the group that contains the editor. This is a bindable property. Inherited from DataFormItem. |
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. |
HelpText | Gets or sets the input prompt string displayed below the edit box. This is a bindable property. Inherited from DataFormItem. |
HelpTextColor | Gets or sets the color of help text displayed below the editor. This is a bindable property. Inherited from DataFormItem. |
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. |
IsEnabled | Gets or sets whether the item is enabled. This is a bindable property. Inherited from DataFormItem. |
IsFocused | Gets a value indicating whether this element is focused currently. This is a bindable property. Inherited from VisualElement. |
IsLabelVisible | Gets or sets whether the data form displays a label for the editor. This is a bindable property. Inherited from DataFormItem. |
IsPlatformEnabled | Gets or sets a value that indicates whether this elements’s platform equivalent element is enabled. Inherited from VisualElement. |
IsVisible | Gets or sets whether the editor is visible on the data form. This is a bindable property. Inherited from DataFormItem. |
ItemOrderInRow | Gets or sets the editor’s position in a row. This is a bindable property. Inherited from DataFormItem. |
LabelColor | Gets or sets the color of the editor’s label (text or icon). This is a bindable property. Inherited from DataFormItem. |
LabelFontAttributes | Gets or sets the font style for the editor’s text label. This is a bindable property. Inherited from DataFormItem. |
LabelFontFamily | Gets or sets the font family name for the editor’s text label. This is a bindable property. Inherited from DataFormItem. |
LabelFontSize | Gets or sets the font size for the editor’s text label. This is a bindable property. Inherited from DataFormItem. |
LabelHorizontalAlignment | Gets or sets the horizontal alignment of a label displayed above the editor. This is a bindable property. Inherited from DataFormItem. |
LabelIcon | Gets or sets an image used as the editor’s label. This is a bindable property. Inherited from DataFormItem. |
LabelIndent | Gets or sets the distance between the editor and its label. This is a bindable property. Inherited from DataFormItem. |
LabelMaxWidth | Gets or sets the maximum width of the editor’s label. This is a bindable property. Inherited from DataFormItem. |
LabelMinWidth | Gets or sets the minimum width of the editor’s label. This is a bindable property. Inherited from DataFormItem. |
LabelPosition | Gets or sets the position of a label relative to the editor. This is a bindable property. Inherited from DataFormItem. |
LabelText | Gets or sets the editor’s label text. This is a bindable property. Inherited from DataFormItem. |
LabelWidth | Gets or sets the width of the editor’s label. This is a bindable property. Inherited from DataFormItem. |
LogicalChildren | For internal use by the Microsoft.Maui.Controls platform. Inherited from Element. |
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 distance between the data form item’s edges and content (editor and label). This is a bindable property. Inherited from DataFormItem. |
Parent | Gets or sets the parent Element of this element. Inherited from Element. |
RealParent | For internal use by .NET MAUI. Inherited from Element. |
ReserveBottomTextLine | Gets or sets whether a line for help and error text below the editor is reserved. This is a bindable property. Inherited from DataFormItem. |
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. |
RowOrder | Gets or sets the row in which the editor is located. This is a bindable property. Inherited from DataFormItem. |
RowSpan | Gets or sets the number of layout rows that this item spans. This is a bindable property. Inherited from DataFormItem. |
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. |
ThumbColor | Gets or sets the color of the DataFormSwitchItem 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. |
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. |
Methods
Name | Description |
---|---|
ApplyBindings() protected | Applies all the current bindings to BindingContext. Inherited from BindableObject. |
BatchBegin() | Signals the start of a batch of changes to the elements properties. This can benefit performance if a bigger number of property values are changed. Inherited from VisualElement. |
BatchCommit() | Signals the end of a batch of commands to the element and that those commands should now be committed. Inherited from VisualElement. |
ChangeVisualState() protected | Changes the current visual state based on this elements current property values. Inherited from VisualElement. |
ClearValue(BindableProperty) | Clears any value that is previously set for a bindable property. Inherited from BindableObject. |
ClearValue(BindablePropertyKey) | Clears any value that is previously set for a bindable property, identified by its key. Inherited from BindableObject. |
CoerceValue(BindableProperty) |
Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property. Inherited from BindableObject. |
CoerceValue(BindablePropertyKey) |
Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property. Inherited from BindableObject. |
EffectIsAttached(String) | For internal use by .NET MAUI. Inherited from Element. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from System.Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from System.Object. |
FindByName(String) | Returns the element that has the specified name. Inherited from Element. |
Focus() | Attempts to set focus to this element. Inherited from VisualElement. |
GetHashCode() | Serves as the default hash function. Inherited from System.Object. |
GetType() | Gets the Type of the current instance. Inherited from System.Object. |
GetValue() | Returns the current value of the data form editor. Inherited from DataFormItem. |
GetValue(BindableProperty) | Returns the value that is contained in the given bindable property. Inherited from BindableObject. |
InvalidateMeasure() protected | Marks the current measure of an element as invalidated. Inherited from VisualElement. |
InvalidateMeasureNonVirtual(InvalidationTrigger) | Invalidates the measure of an element. Inherited from VisualElement. |
InvalidateMeasureOverride() protected | Provides a way to allow subclasses (e.g., Layout) to override InvalidateMeasure() Inherited from VisualElement. |
IsSet(BindableProperty) | Determines whether or not a bindable property exists and has a value set. Inherited from BindableObject. |
Measure(Double, Double, MeasureFlags) | Returns the minimum size that an element needs in order to be displayed on the device. Inherited from VisualElement. |
MeasureOverride(Double, Double) protected | Allows subclasses to implement custom Measure logic during a controls measure pass. Inherited from VisualElement. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from System.Object. |
IElementController.SetValueFromRenderer(BindableProperty, Object) | For internal use by .NET MAUI. Inherited from Element. |
OnBindingContextChanged() protected | Invoked when the binding context of this element has changed. Inherited from VisualElement. |
OnChildAdded(Element) protected | Invoked when a child object is added to this element. Inherited from VisualElement. |
OnChildRemoved(Element, Int32) protected | Invoked when a child object is removed from this element. Inherited from VisualElement. |
OnChildrenReordered() protected | Raises the ChildrenReordered event. Inherited from VisualElement. |
OnMeasure(Double, Double) protected | Method that is called when a layout measurement happens. Inherited from VisualElement. |
OnParentSet() protected |
Raises the (internal) ParentSet event.
Inherited from NavigableElement. |
OnPropertyChanging(String) protected | Raises the PropertyChanging event. Inherited from BindableObject. |
OnSizeAllocated(Double, Double) protected | Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event. Inherited from VisualElement. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from System.Object. |
RemoveBinding(BindableProperty) | Removes a previously set binding from a bindable property. Inherited from BindableObject. |
RemoveDynamicResource(BindableProperty) | Removes a previously set dynamic resource. Inherited from Element. |
SetBinding(BindableProperty, BindingBase) | Assigns a binding to a bindable property. Inherited from BindableObject. |
SetDynamicResource(BindableProperty, String) | Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key. Inherited from Element. |
SetInheritedBindingContext(BindableObject, Object) static | Sets the inherited context to a nested element. Inherited from BindableObject. |
SetValue(BindableProperty, Object) | Sets the value of the specified bindable property. Inherited from BindableObject. |
SetValue(BindablePropertyKey, Object) | Sets the value of the specified bindable property. Inherited from BindableObject. |
SetValue(Object) | Specifies the Data Form editor value. Inherited from DataFormItem. |
SetValueCore(BindableProperty, Object, SetValueFlags) | For internal use by the Microsoft.Maui.Controls platform. Inherited from BindableObject. |
SetValueFromRenderer(BindableProperty, Object) | For internal use by .NET MAUI. Inherited from Element. |
SetValueFromRenderer(BindablePropertyKey, Object) | For internal use by .NET MAUI. Inherited from Element. |
SizeAllocated(Double, Double) protected | Method that is called during a layout cycle to signal the start of a sub-tree layout. Inherited from VisualElement. |
ToString() | Returns a string that represents the current object. Inherited from System.Object. |
UnapplyBindings() protected | Removes all current bindings from the current context. Inherited from BindableObject. |
Unfocus() | Unsets keyboard focus on this element. Inherited from VisualElement. |
Events
Name | Description |
---|---|
BatchCommitted | Occurs when a batch of property changes have been committed by calling BatchCommit(). Inherited from VisualElement. |
BindingContextChanged | Occurs when the value of the BindingContext property changes. Inherited from BindableObject. |
ChildAdded | Raised whenever a child element is added to the element. Inherited from Element. |
ChildRemoved | Raised whenever a child element is removed from the element. Inherited from Element. |
ChildrenReordered | Occurs when the order of this element’s children changes. Inherited from VisualElement. |
DescendantAdded | Raised whenever a child element is added to the element’s subtree. Inherited from Element. |
DescendantRemoved | Raised whenever a child element is removed from the elements subtree. Inherited from Element. |
FocusChangeRequested | Occurs when a focus change is requested. Inherited from VisualElement. |
Focused | Occurs when this element is focused. Inherited from VisualElement. |
MeasureInvalidated | Occurs when the current measure of an element has been invalidated. Inherited from VisualElement. |
PropertyChanged | Occurs when a property value changes. Inherited from BindableObject. |
PropertyChanging | Occurs when a property value is changing. Inherited from BindableObject. |
SizeChanged | Occurs when the size of an element changed. Inherited from VisualElement. |
Unfocused | Occurs when this element is unfocused. Inherited from VisualElement. |
See Also