RadioButtonList Class
Represents a ListBox that renders its items as a list of radio buttons.
public class RadioButtonList : ListBox, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl Selector ListBox object
- Implements:
- IOrientedElement
Constructors
RadioButtonList()
Initializes an instance of the class.
public RadioButtonList()
Properties
AutoDisableNonSelectedItemContent
Indicates whether item content will be automatically disabled when the item is not selected.
public bool AutoDisableNonSelectedItemContent { get; set; }
Property Value
- bool:
trueif item content will be automatically disabled when the item is not selected; otherwise,false. The default value isfalse.
BulletMargin
The Thickness of the margin around the bullet. This is a dependency property.
public Thickness BulletMargin { get; set; }
Property Value
- Thickness:
The default value is
0, 0, 4, 0.
BulletVerticalAlignment
The vertical alignment of the bullet.
public VerticalAlignment BulletVerticalAlignment { get; set; }
Property Value
- VerticalAlignment:
The default value is
VerticalAlignment.Center.
Orientation
The orientation of the list items.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
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
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
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
Defines the AutoDisableNonSelectedItemContent property.
public static readonly DependencyProperty AutoDisableNonSelectedItemContentProperty
BulletMarginProperty
Defines the BulletMargin property.
public static readonly DependencyProperty BulletMarginProperty
BulletVerticalAlignmentProperty
Defines the BulletVerticalAlignment property.
public static readonly DependencyProperty BulletVerticalAlignmentProperty
OrientationProperty
Defines the Orientation property.
public static readonly DependencyProperty OrientationProperty