BarSizeSelectionMenuGalleryViewModel Class
Represents a view model for a size selection gallery control within a bar control.
public class BarSizeSelectionMenuGalleryViewModel : BarGalleryViewModelBase, IHasKey, IHasTag, IHasVariantImages
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase BarGalleryViewModelBase object
- Implements:
- IHasKey IHasTag IHasVariantImages
Constructors
BarSizeSelectionMenuGalleryViewModel()
Initializes an instance of the class.
public BarSizeSelectionMenuGalleryViewModel()
BarSizeSelectionMenuGalleryViewModel(string?)
Initializes an instance of the class with the specified key. The label and key tip text are auto-generated.
public BarSizeSelectionMenuGalleryViewModel(string? key)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
BarSizeSelectionMenuGalleryViewModel(string?, string?)
Initializes an instance of the class with the specified key and label. The key tip text is auto-generated.
public BarSizeSelectionMenuGalleryViewModel(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 |
BarSizeSelectionMenuGalleryViewModel(string?, string?, ICommand?)
Initializes an instance of the class with the specified key, label, and command. The key tip text is auto-generated.
public BarSizeSelectionMenuGalleryViewModel(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. |
BarSizeSelectionMenuGalleryViewModel(string?, ICommand?)
Initializes an instance of the class with the specified key and command. The label and key tip text are auto-generated.
public BarSizeSelectionMenuGalleryViewModel(string? key, ICommand? command)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| command | ICommand | The command to attach to the control. |
BarSizeSelectionMenuGalleryViewModel(RoutedCommand?)
Initializes an instance of the class with the specified RoutedCommand, also used to auto-generate a key, label, and key tip text.
public BarSizeSelectionMenuGalleryViewModel(RoutedCommand? routedCommand)
| Parameter | Type | Description |
|---|---|---|
| routedCommand | RoutedCommand | The command to attach to the control. |
Properties
DefaultHeadingText
The default heading text that is displayed above the menu gallery.
MenuColumnCount
The number of columns when in a menu.
MenuRowCount
The number of rows when in a menu.
SizeHeadingTextFormat
The format string to use for the heading when the end user is selecting a size in the gallery.
public string? SizeHeadingTextFormat { get; set; }
Property Value
Remarks
The first parameter to the format string is the current width. The second parameter to the format string is the current height.
Inherited Members
- BarGalleryViewModelBase.AreSurroundingSeparatorsAllowed
- BarGalleryViewModelBase.CanCloneToRibbonQuickAccessToolBar
- BarGalleryViewModelBase.Command
- BarGalleryViewModelBase.IsVisible
- BarGalleryViewModelBase.ItemContainerStyle
- BarGalleryViewModelBase.ItemContainerStyleSelector
- BarGalleryViewModelBase.ItemSpacing
- BarGalleryViewModelBase.ItemTemplate
- BarGalleryViewModelBase.ItemTemplateSelector
- BarGalleryViewModelBase.Label
- BarGalleryViewModelBase.MinItemHeight
- BarGalleryViewModelBase.MinItemWidth
- BarGalleryViewModelBase.SmallImageSource
- BarGalleryViewModelBase.Title
- BarKeyedObjectViewModelBase.ToString()
- 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()