In This Article

BarSizeSelectionMenuGalleryViewModel Class

Represents a view model for a size selection gallery control within a bar control.

public class BarSizeSelectionMenuGalleryViewModel : BarGalleryViewModelBase, IHasKey
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase BarGalleryViewModelBase object
Implements:
IHasKey

Constructors

BarSizeSelectionMenuGalleryViewModel()

Initializes a new instance of the class.

public BarSizeSelectionMenuGalleryViewModel()

BarSizeSelectionMenuGalleryViewModel(string)

Initializes a new 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 a new 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 key if null.

BarSizeSelectionMenuGalleryViewModel(string, string, ICommand)

Initializes a new 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 or key if null.

command ICommand

The command to attach to the control.

BarSizeSelectionMenuGalleryViewModel(string, ICommand)

Initializes a new 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 a new 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

Gets or sets the default heading text that is displayed above the menu gallery.

public string DefaultHeadingText { get; set; }

Property Value

string:

The default heading text that is displayed above the menu gallery.

MenuColumnCount

Gets or sets the number of columns when in a menu.

public int MenuColumnCount { get; set; }

Property Value

int:

The number of columns when in a menu. The default value is 10.

MenuRowCount

Gets or sets the number of rows when in a menu.

public int MenuRowCount { get; set; }

Property Value

int:

The number of rows when in a menu. The default value is 8.

SizeHeadingTextFormat

Gets or sets 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

string:

The format string to use for the heading when the end user is selecting a size in the gallery.

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