FontFamilyBarGalleryItemViewModel Class
Represents a gallery item view model for a font family.
public class FontFamilyBarGalleryItemViewModel : BarGalleryItemViewModel<string>, IBarGalleryItemViewModel, INotifyPropertyChanged, IEquatable<IBarGalleryItemViewModel>
- Inheritance:
- System.Object ObservableObjectBase BarGalleryItemViewModel<System.String> Object
- Implements:
- IBarGalleryItemViewModel System.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 | System.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 | System.String | The font family name. |
category | System.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 | System.String | The font family name. |
category | System.String | The item's category, or |
label | System.String | The text label to display, or |
Properties
DefaultCategory
Gets the localizable default category to be used for view models of this type.
public static string DefaultCategory { get; }
Property Value
- System.String:
The string category name.
Value
Gets or sets the value associated with this view model.
public override string Value { get; set; }
Property Value
- System.String:
An object of type
TValue
.
Methods
CreateDefaultCollection()
Creates a default collection of gallery item view models representing the installed font families.
public static IEnumerable<FontFamilyBarGalleryItemViewModel> CreateDefaultCollection()
Returns
- System.Collections.Generic.IEnumerable<FontFamilyBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
CreateDefaultCollectionViewSource(Boolean)
Creates a System.Windows.Data.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 | System.Boolean | Whether the collection view source should support categorization by including a group description based on Category property values. |
Returns
- System.Windows.Data.CollectionViewSource:
The System.Windows.Data.CollectionViewSource of gallery item view models that was created.
Inherited Members
- BarGalleryItemViewModel<String>.CoerceLabel()
- BarGalleryItemViewModel<String>.ConvertEnumValueToString<TEnum>(TEnum, Boolean)
- BarGalleryItemViewModel<String>.ConvertEnumValueToString(Type, Object, Boolean)
- BarGalleryItemViewModel<String>.Equals(Object)
- BarGalleryItemViewModel<String>.Equals(IBarGalleryItemViewModel)
- BarGalleryItemViewModel<String>.GetHashCode()
- BarGalleryItemViewModel<String>.OnValueChanged()
- BarGalleryItemViewModel<String>.ToString()
- BarGalleryItemViewModel<String>.IBarGalleryItemViewModel.Value
- BarGalleryItemViewModel<String>.Category
- BarGalleryItemViewModel<String>.Description
- BarGalleryItemViewModel<String>.ImageSource
- BarGalleryItemViewModel<String>.IsLabelVisible
- BarGalleryItemViewModel<String>.KeyTipText
- BarGalleryItemViewModel<String>.Label
- BarGalleryItemViewModel<String>.LayoutBehavior
- ObservableObjectBase.NotifyPropertyChanged(String)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.PropertyChanged
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetType()
- Object.MemberwiseClone()