Provides a reference for a ribbon control.
- Inheritance:
- object object
- Implements:
- IComparable
Constructors
RibbonControlReference(UIElement)
Initializes a new instance of the RibbonControlReference
class.
Properties
Control
Gets or sets the UIElement that is referenced.
ControlType
Gets or sets a Common
Property Value
- Common
Control :Type A Common
Control specifying the type of control.Type
ImageSource
Gets or sets the image that should be displayed in the customization UI.
Property Value
- Image
Source : The image that should be displayed in the customization UI.
Label
Gets or sets the label that should be displayed in the customization UI.
Property Value
- string:
The label that should be displayed in the customization UI.
Methods
Clone()
Clones the control wrapped by this reference, so that the clone may be added to the QAT.
Returns
- UIElement:
The cloned control.
IsAlreadyAdded(DeferrableObservableCollection<RibbonControlReference>)
Returns whether the referenced control is already included in the specified list.
Parameter | Type | Description |
---|---|---|
items | Deferrable |
The list of items to examine. |
Returns
- bool:
true
if the referenced control is already included in the specified list; otherwise,false
.
Fields
ControlProperty
Identifies the Control dependency property. This field is read-only.
ControlTypeProperty
Identifies the Control
ImageSourceProperty
Identifies the Image
LabelProperty
Identifies the Label dependency property. This field is read-only.