RibbonGroupViewModel Class
Represents a view model for a group within a ribbon tab.
public class RibbonGroupViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag, IHasVariantImages
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase object
- Implements:
- IHasKey IHasTag IHasVariantImages
Constructors
RibbonGroupViewModel()
Initializes an instance of the class.
public RibbonGroupViewModel()
RibbonGroupViewModel(string?)
Initializes an instance of the class with the specified key. The label and collapsed button key tip text are auto-generated.
public RibbonGroupViewModel(string? key)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
RibbonGroupViewModel(string?, string?)
Initializes an instance of the class with the specified key and label. The collapsed button key tip text is auto-generated.
public RibbonGroupViewModel(string? key, string? label)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| label | string | The text label to display, which is auto-generated from the |
RibbonGroupViewModel(string?, string?, string?)
Initializes an instance of the class with the specified key, label, and key tip text.
public RibbonGroupViewModel(string? key, string? label, string? collapsedButtonKeyTipText)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| label | string | The text label to display, which is auto-generated from the |
| collapsedButtonKeyTipText | string | The collapsed button key tip text, which is auto-generated from the |
Properties
CanAutoCollapse
Indicates whether the group can auto-collapse.
public bool CanAutoCollapse { get; set; }
Property Value
- bool:
trueif the group can auto-collapse; otherwise,false. The default value istrue.
CanCloneToRibbonQuickAccessToolBar
Indicates whether the control can be cloned to the ribbon quick-access toolbar.
public bool CanCloneToRibbonQuickAccessToolBar { get; set; }
Property Value
- bool:
trueif the control can be cloned to the ribbon quick-access toolbar; otherwise,false. The default value istrue.
ChildOverflowTarget
A RibbonGroupChildOverflowTarget indicating where items overflow when in a Simplified layout mode.
public RibbonGroupChildOverflowTarget ChildOverflowTarget { get; set; }
Property Value
- RibbonGroupChildOverflowTarget:
The default value is Tab.
CollapsedButtonDescription
The text description to display in screen tips for the group when it is rendered as a collapsed button.
CollapsedButtonKeyTipText
The key tip text used to access the group when it is rendered as a collapsed button.
IsVisible
Indicates whether the control is currently visible.
Items
The collection of items in the control.
Label
The text label to display.
LargeImageSource
The ImageSource for a large image, generally 32x32 size.
LauncherButton
A RibbonGroupLauncherButtonViewModel for the optional launcher button.
public RibbonGroupLauncherButtonViewModel? LauncherButton { get; set; }
Property Value
SmallImageSource
The ImageSource for a small image, generally 16x16 size.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
Methods
ToString()
Returns the string representation of this object.
Inherited Members
- BarKeyedObjectViewModelBase.Key
- BarKeyedObjectViewModelBase.Tag
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()