BarGalleryItemTemplateSelector Class
Provides a System.Windows.Controls.DataTemplateSelector that selects item templates for various gallery item view models, generally used with a BarGalleryBase-based control and assigned to its ItemTemplateSelector property.
public class BarGalleryItemTemplateSelector : DataTemplateSelector
- Inheritance:
- System.Object System.Windows.Controls.DataTemplateSelector Object
Constructors
BarGalleryItemTemplateSelector()
Initializes a new instance of the BarGalleryItemTemplateSelector class.
public BarGalleryItemTemplateSelector()
Properties
ColorMenuItemTemplate
Gets or sets the System.Windows.DataTemplate to use for a ColorBarGalleryItemViewModel using a menu item appearance.
public DataTemplate ColorMenuItemTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
ColorTemplate
Gets or sets the System.Windows.DataTemplate to use for a ColorBarGalleryItemViewModel.
public DataTemplate ColorTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
DefaultTemplate
Gets or sets the System.Windows.DataTemplate to use for an IBarGalleryItemViewModel.
public DataTemplate DefaultTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
FontFamilyTemplate
Gets or sets the System.Windows.DataTemplate to use for a FontFamilyBarGalleryItemViewModel.
public DataTemplate FontFamilyTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
FontSizeTemplate
Gets or sets the System.Windows.DataTemplate to use for a FontSizeBarGalleryItemViewModel.
public DataTemplate FontSizeTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
MenuItemTemplate
Gets or sets the System.Windows.DataTemplate to use for an IBarGalleryItemViewModel using a menu item appearance.
public DataTemplate MenuItemTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
SizeSelectionTemplate
Gets or sets the System.Windows.DataTemplate to use for a System.Windows.Size.
public DataTemplate SizeSelectionTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
SymbolDataTemplate
Gets or sets the System.Windows.DataTemplate to use for a SymbolBarGalleryItemViewModel.
public DataTemplate SymbolDataTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
TextStyleTemplate
Gets or sets the System.Windows.DataTemplate to use for a TextStyleBarGalleryItemViewModel.
public DataTemplate TextStyleTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate to use.
Methods
SelectTemplate(Object, DependencyObject)
When overridden in a derived class, returns a System.Windows.DataTemplate based on custom logic.
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameter | Type | Description |
---|---|---|
item | System.Object | The data object for which to select the template. |
container | System.Windows.DependencyObject | The data-bound object. |
Returns
- System.Windows.DataTemplate:
Returns a System.Windows.DataTemplate or null. The default value is null.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()