In This Article

RadioButtonList Class

Represents a ListBox that renders its items as a list of radio buttons.

public class RadioButtonList : ListBox
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl Selector ListBox object

Remarks

For detailed documentation on this control's features and how to use them, please see the RadioButtonList documentation topic.

Constructors

RadioButtonList()

Initializes an instance of the class.

public RadioButtonList()

Properties

AutoDisableNonSelectedItemContent

Gets or sets whether item content will be automatically disabled when the item is not selected. This is a dependency property.

public bool AutoDisableNonSelectedItemContent { get; set; }

Property Value

bool:

true if item content will be automatically disabled when the item is not selected; otherwise, false. The default value is false.

BulletMargin

Gets or sets the Thickness of the margin around the bullet. This is a dependency property.

public Thickness BulletMargin { get; set; }

Property Value

Thickness:

The Thickness of the margin around the bullet. The default value is 0, 0, 4, 0.

BulletVerticalAlignment

Gets or sets a VerticalAlignment that indicates the vertical alignment of the bullet. This is a dependency property.

public VerticalAlignment BulletVerticalAlignment { get; set; }

Property Value

VerticalAlignment:

A VerticalAlignment that indicates the vertical alignment of the bullet. The default value is VerticalAlignment.Center.

Orientation

Gets or sets the Orientation that indicates the orientation of the list items. This is a dependency property.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The Orientation that indicates the orientation of the list items. The default value is Orientation.Vertical.

Methods

GetBulletMargin(DependencyObject)

Gets the value of the BulletMargin attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static Thickness GetBulletMargin(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

Thickness:

The object's value.

GetBulletVerticalAlignment(DependencyObject)

Gets the value of the BulletVerticalAlignment attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static VerticalAlignment GetBulletVerticalAlignment(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

VerticalAlignment:

The object's value.

SetBulletMargin(DependencyObject, Thickness)

Sets the value of the BulletMargin attached property to the specified object.

public static void SetBulletMargin(DependencyObject obj, Thickness value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value Thickness

The value to set.

SetBulletVerticalAlignment(DependencyObject, VerticalAlignment)

Sets the value of the BulletVerticalAlignment attached property to the specified object.

public static void SetBulletVerticalAlignment(DependencyObject obj, VerticalAlignment value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value VerticalAlignment

The value to set.

Fields

AutoDisableNonSelectedItemContentProperty

Identifies the AutoDisableNonSelectedItemContent dependency property. This field is read-only.

public static readonly DependencyProperty AutoDisableNonSelectedItemContentProperty

BulletMarginProperty

Identifies the BulletMargin dependency property. This field is read-only.

public static readonly DependencyProperty BulletMarginProperty

BulletVerticalAlignmentProperty

Identifies the BulletVerticalAlignment dependency property. This field is read-only.

public static readonly DependencyProperty BulletVerticalAlignmentProperty

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty