New to Telerik UI for WinForms? Download free 30-day trial

RadRadioButtonElement

RadRadioButtonlElement contains the logic and user interface for a single RadRadioButton.

tpf-elements-radradiobutton 001

public class MyRadioButtonControl : RadControl
{
    protected override void CreateChildItems(RadElement parent)
    {
        RadRadioButtonElement radRadioButtonElement = new RadRadioButtonElement();
        radRadioButtonElement.ToggleState = ToggleState.On;
        radRadioButtonElement.RadioCheckAlignment = ContentAlignment.BottomRight;
        this.RootElement.Children.Add(radRadioButtonElement);
        base.CreateChildItems(parent);
    }
}

Public Class MyRadioButtonControl
    Inherits RadControl
    Protected Overrides Sub CreateChildItems(ByVal parent As RadElement)
        Dim radRadioButtonElement As New RadRadioButtonElement()
        radRadioButtonElement.ToggleState = ToggleState.On
        radRadioButtonElement.RadioCheckAlignment = ContentAlignment.BottomRight
        Me.RootElement.Children.Add(radRadioButtonElement)
        MyBase.CreateChildItems(parent)
    End Sub
End Class

See Also

In this article