BarGalleryViewModelBase Class
Represents an abstract view model base for a gallery control within a bar control.
public abstract class BarGalleryViewModelBase : BarKeyedObjectViewModelBase, IHasKey
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase object
- Implements:
- IHasKey
Constructors
BarGalleryViewModelBase()
Initializes a new instance of the class.
protected BarGalleryViewModelBase()
BarGalleryViewModelBase(string?)
Initializes a new instance of the class with the specified key. The label and key tip text are auto-generated.
protected BarGalleryViewModelBase(string? key)
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies the control. |
BarGalleryViewModelBase(string?, string?, ICommand?)
Initializes a new instance of the class with the specified key, label, and command. The key tip text is auto-generated.
protected BarGalleryViewModelBase(string? key, string? label, ICommand? command)
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 |
command | ICommand | The command to attach to the control. |
Properties
AreSurroundingSeparatorsAllowed
Indicates whether the menu gallery can render surrounding separators.
public bool AreSurroundingSeparatorsAllowed { get; set; }
Property Value
- bool:
The default value is
true
.
CanCloneToRibbonQuickAccessToolBar
Indicates whether the control can be cloned to the ribbon quick-access toolbar.
public bool CanCloneToRibbonQuickAccessToolBar { get; set; }
Property Value
- bool:
The default value is
true
.
Command
The ICommand to attach to the control.
IsVisible
Indicates whether the control is currently visible.
ItemContainerTheme
The Avalonia.Styling.ControlTheme to apply to gallery item container elements.
public ControlTheme? ItemContainerTheme { get; set; }
Property Value
- ControlTheme
ItemSpacing
The amount of spacing between gallery items.
ItemTemplate
The Avalonia.Controls.Templates.IDataTemplate used to display the content for each gallery item.
public IDataTemplate? ItemTemplate { get; set; }
Property Value
- IDataTemplate
ItemTemplateSelector
The IDataTemplateSelector that picks an Avalonia.Controls.Templates.IDataTemplate used to display the content for each gallery item.
public IDataTemplateSelector? ItemTemplateSelector { get; set; }
Property Value
Label
The text label to display.
MinItemHeight
The minimum item height.
MinItemWidth
The minimum item width.
SmallIcon
The object representing a small icon, generally 16x16
size.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
Inherited Members
- BarKeyedObjectViewModelBase.ToString()
- BarKeyedObjectViewModelBase.Key
- 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()