menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfRadioButton - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfRadioButton

    Represents the SfRadioButton class. SfRadioButton is a selection control that allows users to select an option from a set of options.

    Inheritance
    System.Object
    SfView
    ToggleButton
    SfRadioButton
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    ToggleButton.CheckedColor
    ToggleButton.CheckedColorProperty
    ToggleButton.ContentSpacing
    ToggleButton.ContentSpacingProperty
    ToggleButton.ControlSize
    ToggleButton.ControlSizeProperty
    ToggleButton.EnabledAnimation
    ToggleButton.EnabledAnimationProperty
    ToggleButton.FlowDirection
    ToggleButton.FlowDirectionProperty
    ToggleButton.FontAttributes
    ToggleButton.FontAttributesProperty
    ToggleButton.FontAutoScalingEnabled
    ToggleButton.FontAutoScalingEnabledProperty
    ToggleButton.FontFamily
    ToggleButton.FontFamilyProperty
    ToggleButton.FontSize
    ToggleButton.FontSizeProperty
    ToggleButton.HorizontalTextAlignment
    ToggleButton.HorizontalTextAlignmentProperty
    ToggleButton.IsEnabled
    ToggleButton.IsEnabledProperty
    ToggleButton.Padding
    ToggleButton.PaddingProperty
    ToggleButton.StateChanged
    ToggleButton.StateChanging
    ToggleButton.StrokeThickness
    ToggleButton.StrokeThicknessProperty
    ToggleButton.Text
    ToggleButton.TextColor
    ToggleButton.TextColorProperty
    ToggleButton.TextProperty
    ToggleButton.UncheckedColor
    ToggleButton.UncheckedColorProperty
    Namespace: Syncfusion.Maui.Buttons
    Assembly: Syncfusion.Maui.Buttons.dll
    Syntax
    public class SfRadioButton : ToggleButton, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITextElement, ITouchListener, IParentThemeElement, IThemeElement

    Constructors

    SfRadioButton()

    Initializes a new instance of the SfRadioButton class.

    Declaration
    public SfRadioButton()

    Fields

    GroupKeyProperty

    Gets or sets the group key for SfRadioButton.This is a Bindable property.

    Declaration
    public static readonly BindableProperty GroupKeyProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    IsCheckedProperty

    Backing store for the IsChecked property.

    Declaration
    public static readonly BindableProperty IsCheckedProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    LineBreakModeProperty

    Gets or sets the Line Break Mode for SfRadioButton.This is a Bindable property.

    Declaration
    public static readonly BindableProperty LineBreakModeProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    ValueProperty

    Gets or sets the Value for SfRadioButton. This is a Bindable property.

    Declaration
    public static readonly BindableProperty ValueProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    GroupKey

    Gets or sets a GroupKey for the radioButton.

    Declaration
    public SfRadioGroupKey GroupKey { get; set; }
    Property Value
    Type
    SfRadioGroupKey

    IsChecked

    Gets or Sets the IsChecked.

    Declaration
    public bool IsChecked { get; set; }
    Property Value
    Type
    System.Boolean

    LineBreakMode

    Gets or sets the value indicating the LineBreakMode for the RadioButton's text.

    Declaration
    public LineBreakMode LineBreakMode { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.LineBreakMode

    Accepts LineBreakMode values, with the default being NoWrap.

    Value

    Gets or sets a unique value that is associated with the SfRadioButton.

    Declaration
    public object Value { get; set; }
    Property Value
    Type
    System.Object
    Remarks

    This value is optional and can be used to uniquely identify the SfRadioButton.

    Methods

    ChangeVisualState()

    This method is used to trigger a change in the visual state of a user interface element.

    Declaration
    protected override void ChangeVisualState()

    GetSemanticsNodesCore(Double, Double)

    Returns the semantics node list

    Declaration
    protected override List<SemanticsNode> GetSemanticsNodesCore(double width, double height)
    Parameters
    Type Name Description
    System.Double width
    System.Double height
    Returns
    Type
    System.Collections.Generic.List<Syncfusion.Maui.Graphics.Internals.SemanticsNode>
    Overrides
    SfView.GetSemanticsNodesCore(Double, Double)

    MeasureContent(Double, Double)

    Measure content method.

    Declaration
    protected override Size MeasureContent(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint
    System.Double heightConstraint
    Returns
    Type
    Microsoft.Maui.Graphics.Size
    Overrides
    SfView.MeasureContent(Double, Double)

    OnDraw(ICanvas, RectF)

    Drawing Method.

    Declaration
    protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.ICanvas canvas
    Microsoft.Maui.Graphics.RectF dirtyRect
    Overrides
    SfView.OnDraw(ICanvas, RectF)

    OnHandlerChanged()

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()

    OnPropertyChanged(String)

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved