# C1.WPF.Extended.C1RatingItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_C1RatingItem" data-uid="C1.WPF.Extended.C1RatingItem" class="text-break">C1RatingItem Class
</h1>
  <div class="markdown level0 summary"><p>Represents a item inside a C1Rating control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.contentcontrol">ContentControl</a></div>
    <div class="level8"><span class="xref">C1RatingItem</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Extended.html">C1.WPF.Extended</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Extended.4.6.2.dll</h6>
  <h5 id="C1_WPF_Extended_C1RatingItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;RatedIconPresenter&quot;, Type = typeof(ContentControl))]
[TemplatePart(Name = &quot;IconPresenter&quot;, Type = typeof(ContentControl))]
[TemplatePart(Name = &quot;HoverIconPresenter&quot;, Type = typeof(ContentControl))]
[TemplatePart(Name = &quot;MainPresenter&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;ToolTip&quot;, Type = typeof(ToolTip))]
public class C1RatingItem : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;RatedIconPresenter&quot;, Type:=GetType(ContentControl))&gt;
&lt;TemplatePart(Name:=&quot;IconPresenter&quot;, Type:=GetType(ContentControl))&gt;
&lt;TemplatePart(Name:=&quot;HoverIconPresenter&quot;, Type:=GetType(ContentControl))&gt;
&lt;TemplatePart(Name:=&quot;MainPresenter&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;ToolTip&quot;, Type:=GetType(ToolTip))&gt;
Public Class C1RatingItem
    Inherits ContentControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem__ctor" data-uid="C1.WPF.Extended.C1RatingItem.#ctor">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.-ctor.html#C1_WPF_Extended_C1RatingItem__ctor">C1RatingItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.C1RatingItem.html">C1RatingItem</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_HoveredBrushProperty" data-uid="C1.WPF.Extended.C1RatingItem.HoveredBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.HoveredBrushProperty.html">HoveredBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1RatingItem.HoveredBrush.html#C1_WPF_Extended_C1RatingItem_HoveredBrush">HoveredBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_RatedBrushProperty" data-uid="C1.WPF.Extended.C1RatingItem.RatedBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.RatedBrushProperty.html">RatedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1RatingItem.RatedBrush.html#C1_WPF_Extended_C1RatingItem_RatedBrush">RatedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_ToolTipProperty" data-uid="C1.WPF.Extended.C1RatingItem.ToolTipProperty">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.ToolTipProperty.html">ToolTipProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1RatingItem.ToolTip.html#C1_WPF_Extended_C1RatingItem_ToolTip">ToolTip</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_UnratedBrushProperty" data-uid="C1.WPF.Extended.C1RatingItem.UnratedBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.UnratedBrushProperty.html">UnratedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1RatingItem.UnratedBrush.html#C1_WPF_Extended_C1RatingItem_UnratedBrush">UnratedBrush</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_HoveredBrush" data-uid="C1.WPF.Extended.C1RatingItem.HoveredBrush">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.HoveredBrush.html#C1_WPF_Extended_C1RatingItem_HoveredBrush">HoveredBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set background brush in a hovered state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_Index" data-uid="C1.WPF.Extended.C1RatingItem.Index">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.Index.html#C1_WPF_Extended_C1RatingItem_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of this <a class="xref" href="C1.WPF.Extended.C1RatingItem.html">C1RatingItem</a> in its parent items collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_RatedBrush" data-uid="C1.WPF.Extended.C1RatingItem.RatedBrush">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.RatedBrush.html#C1_WPF_Extended_C1RatingItem_RatedBrush">RatedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set background brush in a rated state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_Rating" data-uid="C1.WPF.Extended.C1RatingItem.Rating">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.Rating.html#C1_WPF_Extended_C1RatingItem_Rating">Rating</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the parent <a class="xref" href="C1.WPF.Extended.C1Rating.html">C1Rating</a> of this item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_ToolTip" data-uid="C1.WPF.Extended.C1RatingItem.ToolTip">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.ToolTip.html#C1_WPF_Extended_C1RatingItem_ToolTip">ToolTip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the tooltip of this control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_UnratedBrush" data-uid="C1.WPF.Extended.C1RatingItem.UnratedBrush">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.UnratedBrush.html#C1_WPF_Extended_C1RatingItem_UnratedBrush">UnratedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set background brush in an unrated state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_OnApplyTemplate" data-uid="C1.WPF.Extended.C1RatingItem.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.OnApplyTemplate.html#C1_WPF_Extended_C1RatingItem_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.C1RatingItem.html">C1RatingItem</a> control when a new template is applied.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_C1RatingItem_Click" data-uid="C1.WPF.Extended.C1RatingItem.Click">
          <a class="xref" href="C1.WPF.Extended.C1RatingItem.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.WPF.Extended.C1RatingItem.html">C1RatingItem</a> is clicked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
