FontFamilyBarGalleryItemViewModel Class
Represents a gallery item view model for a font family.
public class FontFamilyBarGalleryItemViewModel : BarGalleryItemViewModel<FontFamily>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
- Inheritance:
- object ObservableObjectBase BarGalleryItemViewModel<FontFamily> object
- Implements:
- IBarGalleryItemViewModel IEquatable<IBarGalleryItemViewModel>
Constructors
FontFamilyBarGalleryItemViewModel()
Initializes a new instance of the class with a default font family name and category.
public FontFamilyBarGalleryItemViewModel()
FontFamilyBarGalleryItemViewModel(FontFamily)
Initializes a new instance of the class with the specified Avalonia.Media.FontFamily and a default category.
public FontFamilyBarGalleryItemViewModel(FontFamily value)
Parameter | Type | Description |
---|---|---|
value | FontFamily | The Avalonia.Media.FontFamily value. |
FontFamilyBarGalleryItemViewModel(FontFamily, string?)
Initializes a new instance of the class with the specified Avalonia.Media.FontFamily and category.
public FontFamilyBarGalleryItemViewModel(FontFamily value, string? category)
Parameter | Type | Description |
---|---|---|
value | FontFamily | The Avalonia.Media.FontFamily value. |
category | string | The item's category, or |
FontFamilyBarGalleryItemViewModel(FontFamily, string?, string?)
Initializes a new instance of the class with the specified Avalonia.Media.FontFamily, category, and label.
public FontFamilyBarGalleryItemViewModel(FontFamily value, string? category, string? label)
Parameter | Type | Description |
---|---|---|
value | FontFamily | The Avalonia.Media.FontFamily value. |
category | string | The item's category, or |
label | string | The text label to display, or |
FontFamilyBarGalleryItemViewModel(string?)
Initializes a new instance of the class with the specified name and a default category.
public FontFamilyBarGalleryItemViewModel(string? fontFamilyName)
Parameter | Type | Description |
---|---|---|
fontFamilyName | string | The font family name. |
FontFamilyBarGalleryItemViewModel(string?, string?)
Initializes a new instance of the class with the specified name and category.
public FontFamilyBarGalleryItemViewModel(string? fontFamilyName, string? category)
Parameter | Type | Description |
---|---|---|
fontFamilyName | string | The font family name. |
category | string | The item's category, or |
FontFamilyBarGalleryItemViewModel(string?, string?, string?)
Initializes a new instance of the class with the specified name, category, and label.
public FontFamilyBarGalleryItemViewModel(string? fontFamilyName, string? category, string? label)
Parameter | Type | Description |
---|---|---|
fontFamilyName | string | The font family name. |
category | string | The item's category, or |
label | string | The text label to display, or |
Properties
DefaultCategory
The localizable default category to be used for view models of this type.
Methods
CoerceLabel()
Gets the coerced value to use as the Label when an explicit value has not been defined.
protected override string? CoerceLabel()
Returns
- string:
The coerced text label to display.
See Also
CreateDefaultCollection()
Creates a default collection of gallery item view models representing the installed font families.
public static IEnumerable<FontFamilyBarGalleryItemViewModel> CreateDefaultCollection()
Returns
- IEnumerable<FontFamilyBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
Inherited Members
- BarGalleryItemViewModel<FontFamily>.ConvertEnumValueToString<TEnum>(TEnum, bool)
- BarGalleryItemViewModel<FontFamily>.ConvertEnumValueToString(Type, object, bool)
- BarGalleryItemViewModel<FontFamily>.Equals(object)
- BarGalleryItemViewModel<FontFamily>.Equals(IBarGalleryItemViewModel)
- BarGalleryItemViewModel<FontFamily>.GetHashCode()
- BarGalleryItemViewModel<FontFamily>.OnValueChanged()
- BarGalleryItemViewModel<FontFamily>.ToString()
- BarGalleryItemViewModel<FontFamily>.Category
- BarGalleryItemViewModel<FontFamily>.Description
- BarGalleryItemViewModel<FontFamily>.Icon
- BarGalleryItemViewModel<FontFamily>.IsLabelVisible
- BarGalleryItemViewModel<FontFamily>.IsVisible
- BarGalleryItemViewModel<FontFamily>.KeyTipText
- BarGalleryItemViewModel<FontFamily>.Label
- BarGalleryItemViewModel<FontFamily>.LayoutBehavior
- BarGalleryItemViewModel<FontFamily>.Value
- 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)
- object.ReferenceEquals(object, object)