FontFamilyBarGalleryItemViewModel Class
Represents a gallery item view model for a font family.
public class FontFamilyBarGalleryItemViewModel : BarGalleryItemViewModel<string>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
- Inheritance:
- object ObservableObjectBase BarGalleryItemViewModel<string> 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(string)
Initializes a new instance of the class with the specified name and a default category.
public FontFamilyBarGalleryItemViewModel(string value)
Parameter | Type | Description |
---|---|---|
value | string | The font family name. |
FontFamilyBarGalleryItemViewModel(string, string)
Initializes a new instance of the class with the specified name and category.
public FontFamilyBarGalleryItemViewModel(string value, string category)
Parameter | Type | Description |
---|---|---|
value | 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 value, string category, string label)
Parameter | Type | Description |
---|---|---|
value | string | The font family name. |
category | string | The item's category, or |
label | string | The text label to display, or |
Properties
DefaultCategory
Gets the localizable default category to be used for view models of this type.
Value
Gets or sets the value associated with this view model.
Methods
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.
CreateDefaultCollectionViewSource(bool)
Creates a CollectionViewSource of gallery item view models representing the installed font families, allowing for possible categorization and filtering.
public static CollectionViewSource CreateDefaultCollectionViewSource(bool categorize)
Parameter | Type | Description |
---|---|---|
categorize | bool | Whether the collection view source should support categorization by including a group description based on Category property values. |
Returns
- CollectionViewSource:
The CollectionViewSource of gallery item view models that was created.
Inherited Members
- BarGalleryItemViewModel<string>.CoerceLabel()
- BarGalleryItemViewModel<string>.ConvertEnumValueToString<TEnum>(TEnum, bool)
- BarGalleryItemViewModel<string>.ConvertEnumValueToString(Type, object, bool)
- BarGalleryItemViewModel<string>.Equals(object)
- BarGalleryItemViewModel<string>.Equals(IBarGalleryItemViewModel)
- BarGalleryItemViewModel<string>.GetHashCode()
- BarGalleryItemViewModel<string>.OnValueChanged()
- BarGalleryItemViewModel<string>.ToString()
- BarGalleryItemViewModel<string>.Category
- BarGalleryItemViewModel<string>.Description
- BarGalleryItemViewModel<string>.ImageSource
- BarGalleryItemViewModel<string>.IsLabelVisible
- BarGalleryItemViewModel<string>.IsVisible
- BarGalleryItemViewModel<string>.KeyTipText
- BarGalleryItemViewModel<string>.Label
- BarGalleryItemViewModel<string>.LayoutBehavior
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)