In This Article

FontSizeBarGalleryItemViewModel Class

Represents a gallery item view model for a font size.

public class FontSizeBarGalleryItemViewModel : BarGalleryItemViewModel<double>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
Inheritance:
object ObservableObjectBase BarGalleryItemViewModel<double> object
Implements:
IBarGalleryItemViewModel IEquatable<IBarGalleryItemViewModel>

Constructors

FontSizeBarGalleryItemViewModel()

Initializes a new instance of the class with a default font size.

public FontSizeBarGalleryItemViewModel()

FontSizeBarGalleryItemViewModel(double)

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

public FontSizeBarGalleryItemViewModel(double value)
Parameter Type Description
value double

The font size.

FontSizeBarGalleryItemViewModel(double, string?)

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

public FontSizeBarGalleryItemViewModel(double value, string? category)
Parameter Type Description
value double

The font size.

category string

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

FontSizeBarGalleryItemViewModel(double, string?, string?)

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

public FontSizeBarGalleryItemViewModel(double value, string? category, string? label)
Parameter Type Description
value double

The font size.

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

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

public static string DefaultCategory { get; }

Property Value

string

IsLabelVisible

Indicates whether the Label is visible.

public override bool IsLabelVisible { get; }

Property Value

bool

Value

The value associated with this view model.

public override double Value { get; set; }

Property Value

double

Methods

CreateDefaultCollection()

Creates a default collection of gallery item view models representing common font sizes.

public static IEnumerable<FontSizeBarGalleryItemViewModel> CreateDefaultCollection()

Returns

IEnumerable<FontSizeBarGalleryItemViewModel>:

The collection of gallery item view models that was created.

Inherited Members

Extension Methods