In This Article

RadioButtonList Class

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

public class RadioButtonList : ListBox, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.Primitives.Selector System.Windows.Controls.ListBox Object

Remarks

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

Constructors

RadioButtonList()

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

System.Boolean:

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 System.Windows.Thickness of the margin around the bullet. This is a dependency property.

public Thickness BulletMargin { get; set; }

Property Value

System.Windows.Thickness:

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

BulletVerticalAlignment

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

public VerticalAlignment BulletVerticalAlignment { get; set; }

Property Value

System.Windows.VerticalAlignment:

A System.Windows.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

System.Windows.Controls.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 System.Windows.DependencyObject

The object from which the property value is read.

Returns

System.Windows.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 System.Windows.DependencyObject

The object from which the property value is read.

Returns

System.Windows.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 System.Windows.DependencyObject

The object to which the attached property is written.

value System.Windows.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 System.Windows.DependencyObject

The object to which the attached property is written.

value System.Windows.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

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods