In This Article

TextStyleBarGalleryItemViewModel Class

Represents a gallery item view model for a text style (font, color, weight, etc.).

public class TextStyleBarGalleryItemViewModel : BarGalleryItemViewModel<TextStyle>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
Inheritance:
object ObservableObjectBase BarGalleryItemViewModel<TextStyle> object
Implements:
IBarGalleryItemViewModel IEquatable<IBarGalleryItemViewModel>

Constructors

TextStyleBarGalleryItemViewModel()

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

public TextStyleBarGalleryItemViewModel()

TextStyleBarGalleryItemViewModel(TextStyle)

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

public TextStyleBarGalleryItemViewModel(TextStyle value)
Parameter Type Description
value TextStyle

The text style.

TextStyleBarGalleryItemViewModel(TextStyle, string)

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

public TextStyleBarGalleryItemViewModel(TextStyle value, string category)
Parameter Type Description
value TextStyle

The text style.

category string

The item's category, or null if categorization is not supported.

TextStyleBarGalleryItemViewModel(TextStyle, string, string)

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

public TextStyleBarGalleryItemViewModel(TextStyle value, string category, string label)
Parameter Type Description
value TextStyle

The text style.

category string

The item's category, or null if categorization is not supported.

label string

The text label to display, or null if the label can be coerced from the current value.

Properties

DefaultCategory

Gets the localizable default category to be used for view models of this type.

public static string DefaultCategory { get; }

Property Value

string:

The string category name.

Inherited Members