[]
        
(Showing Draft Content)

C1.WPF.Extended.C1RatingItem

C1RatingItem Class

Represents a item inside a C1Rating control.

Namespace: C1.WPF.Extended
Assembly: C1.WPF.Extended.4.6.2.dll
Syntax
[TemplatePart(Name = "RatedIconPresenter", Type = typeof(ContentControl))]
[TemplatePart(Name = "IconPresenter", Type = typeof(ContentControl))]
[TemplatePart(Name = "HoverIconPresenter", Type = typeof(ContentControl))]
[TemplatePart(Name = "MainPresenter", Type = typeof(Grid))]
[TemplatePart(Name = "ToolTip", Type = typeof(ToolTip))]
public class C1RatingItem : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
C1RatingItem()

Initializes a new instance of a C1RatingItem.

Fields

Name Description
HoveredBrushProperty

Identifies the HoveredBrush dependency property.

RatedBrushProperty

Identifies the RatedBrush dependency property.

ToolTipProperty

Identifies the ToolTip dependency property.

UnratedBrushProperty

Identifies the UnratedBrush dependency property.

Properties

Name Description
HoveredBrush

Get or set background brush in a hovered state.

Index

Gets the index of this C1RatingItem in its parent items collection.

RatedBrush

Get or set background brush in a rated state.

Rating

Identifies the parent C1Rating of this item.

ToolTip

Gets or sets the tooltip of this control.

UnratedBrush

Get or set background brush in an unrated state.

Methods

Name Description
OnApplyTemplate()

Builds the visual tree for the C1RatingItem control when a new template is applied.

Events

Name Description
Click

Occurs when the C1RatingItem is clicked.