In This Article

TextBarGalleryItemViewModel Class

Represents a view model for a gallery item whose value and label are the same text value.

public class TextBarGalleryItemViewModel : BarGalleryItemViewModel<string>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
Inheritance:
object ObservableObjectBase BarGalleryItemViewModel<string> object
Implements:
IBarGalleryItemViewModel IEquatable<IBarGalleryItemViewModel>

Constructors

TextBarGalleryItemViewModel(string)

Initializes a new instance of the class with the specified text as the value and label.

public TextBarGalleryItemViewModel(string text)
Parameter Type Description
text string

The item's value and label.

TextBarGalleryItemViewModel(string, string)

Initializes a new instance of the class with the specified text and category.

public TextBarGalleryItemViewModel(string text, string category)
Parameter Type Description
text string

The item's value and label.

category string

The item's category.

Inherited Members