RatingItem Class
Represents a single item in a Rating control.
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Active", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Average", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Selected", GroupName = "CommonStates")]
[TemplatePart(Name = "PART_ForegroundGlyphContentPresenter", Type = typeof(ContentPresenter))]
public class RatingItem : ContentControl, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl object
- Implements:
- IOrientedElement
Constructors
RatingItem()
Initializes an instance of the class.
public RatingItem()
Properties
ActiveGlyphTemplate
The DataTemplate to use for the item glyph when the end user's pointer actively over this item or one after it.
AverageGlyphTemplate
The DataTemplate to use for the item glyph when the item is involved in rendering an average value for the overall rating.
ClipPercentage
The clip percentage to apply on the foreground glyph.
NormalGlyphTemplate
The DataTemplate to use for the item glyph in the normal (unselected) state.
Orientation
The orientation of the element.
SelectedGlyphTemplate
The DataTemplate to use for the item glyph when the item is involved in the end user's value selection.
State
The current item state.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Fields
ActiveGlyphTemplateProperty
Defines the ActiveGlyphTemplate property.
public static readonly DependencyProperty ActiveGlyphTemplateProperty
AverageGlyphTemplateProperty
Defines the AverageGlyphTemplate property.
public static readonly DependencyProperty AverageGlyphTemplateProperty
ClipPercentageProperty
Defines the ClipPercentage property.
public static readonly DependencyProperty ClipPercentageProperty
NormalGlyphTemplateProperty
Defines the NormalGlyphTemplate property.
public static readonly DependencyProperty NormalGlyphTemplateProperty
OrientationProperty
Defines the Orientation property.
public static readonly DependencyProperty OrientationProperty
SelectedGlyphTemplateProperty
Defines the SelectedGlyphTemplate property.
public static readonly DependencyProperty SelectedGlyphTemplateProperty
StateProperty
Defines the State property.
public static readonly DependencyProperty StateProperty