Class RibbonRadioButton
Represents a button that can be selected, but not cleared, by a user. The IsChecked property of a RibbonRadioButton can be set by clicking it, but it can only be cleared programmatically.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class RibbonRadioButton : RadioButton, IRibbonControl, IDisposable
Remarks
A RibbonRadioButton has two states: true or false. The RibbonRadioButton is a control that is usually used as an item in a group of RibbonRadioButton controls. However, it is possible to create a single RibbonRadioButton. Whether a RibbonRadioButton is selected is determined by the state of its IsChecked property.
Constructors
RibbonRadioButton()
Initializes a new instance of the RibbonRadioButton class.
Declaration
public RibbonRadioButton()
Fields
LabelProperty
Defines the text that labels RibbonRadioButton. This is a dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SmallIconProperty
Defines the icon that appears in RibbonRadioButton. This is a dependency property.
Declaration
public static readonly DependencyProperty SmallIconProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Label
Gets the value of the Label property.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
System.String | Get the content. |
SmallIcon
Gets or sets the icon that appears in RibbonRadioButton.
Declaration
public ImageSource SmallIcon { get; set; }
Property Value
Type |
---|
System.Windows.Media.ImageSource |
Remarks
Many controls have more than just text in the element. Often there is an icon.
See Also
Methods
Dispose()
Dispose all used objects
Declaration
public void Dispose()
OnMouseRightButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseRightButtonUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released. |
OnSmallIconChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SmallIconChanged event.
Declaration
protected virtual void OnSmallIconChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property changes details, such as old value and new value. |
Events
SmallIconChanged
Event that is raised when SmallIcon property is changed.
Declaration
public event PropertyChangedCallback SmallIconChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
Explicit Interface Implementations
IRibbonControl.get_ToolTip()
Declaration
object IRibbonControl.get_ToolTip()
Returns
Type |
---|
System.Object |