# C1.WPF.Ribbon.C1Tool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Ribbon_C1Tool" data-uid="C1.WPF.Ribbon.C1Tool" class="text-break">C1Tool Class
</h1>
  <div class="markdown level0 summary"><p>C1Tool represents the base abstract class for different tools like <a class="xref" href="C1.WPF.Ribbon.C1ButtonTool.html">C1ButtonTool</a>, <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.html">C1ToggleButtonTool</a>, <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.html">C1DropDownTool</a>, <a class="xref" href="C1.WPF.Ribbon.C1ContentControlTool.html">C1ContentControlTool</a>.</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"><span class="xref">C1Tool</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.Ribbon.C1ButtonTool.html">C1ButtonTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.Ribbon.C1ContentControlTool.html">C1ContentControlTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.html">C1DropDownTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.Ribbon.C1SelectTool.html">C1SelectTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.html">C1ToggleButtonTool</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Ribbon.html">C1.WPF.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Ribbon.dll</h6>
  <h5 id="C1_WPF_Ribbon_C1Tool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplateVisualState(Name = &quot;Horizontal&quot;, GroupName = &quot;OrientationStates&quot;)]
[TemplateVisualState(Name = &quot;Vertical&quot;, GroupName = &quot;OrientationStates&quot;)]
public abstract class C1Tool : C1View</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplateVisualState(Name:=&quot;Horizontal&quot;, GroupName:=&quot;OrientationStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Vertical&quot;, GroupName:=&quot;OrientationStates&quot;)&gt;
Public MustInherit Class C1Tool
    Inherits C1View</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_Ribbon_C1Tool__ctor" data-uid="C1.WPF.Ribbon.C1Tool.#ctor">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.-ctor.html#C1_WPF_Ribbon_C1Tool__ctor">C1Tool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Ribbon.C1Tool.html">C1Tool</a> class.</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_Ribbon_C1Tool_AllowMergingProperty" data-uid="C1.WPF.Ribbon.C1Tool.AllowMergingProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.AllowMergingProperty.html">AllowMergingProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.AllowMerging.html#C1_WPF_Ribbon_C1Tool_AllowMerging">AllowMerging</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_BorderAlignmentProperty" data-uid="C1.WPF.Ribbon.C1Tool.BorderAlignmentProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.BorderAlignmentProperty.html">BorderAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.BorderAlignment.html#C1_WPF_Ribbon_C1Tool_BorderAlignment">BorderAlignment</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_DescriptionProperty" data-uid="C1.WPF.Ribbon.C1Tool.DescriptionProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.DescriptionProperty.html">DescriptionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.Description.html#C1_WPF_Ribbon_C1Tool_Description">Description</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_FocusBrushProperty" data-uid="C1.WPF.Ribbon.C1Tool.FocusBrushProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.FocusBrush.html#C1_WPF_Ribbon_C1Tool_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_HotKeyProperty" data-uid="C1.WPF.Ribbon.C1Tool.HotKeyProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.HotKeyProperty.html">HotKeyProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.HotKey.html#C1_WPF_Ribbon_C1Tool_HotKey">HotKey</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_IconSizeProperty" data-uid="C1.WPF.Ribbon.C1Tool.IconSizeProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconSizeProperty.html">IconSizeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconSize.html#C1_WPF_Ribbon_C1Tool_IconSize">IconSize</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_IconTemplateProperty" data-uid="C1.WPF.Ribbon.C1Tool.IconTemplateProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconTemplateProperty.html">IconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconTemplate.html#C1_WPF_Ribbon_C1Tool_IconTemplate">IconTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_LabelProperty" data-uid="C1.WPF.Ribbon.C1Tool.LabelProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.LabelProperty.html">LabelProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.Label.html#C1_WPF_Ribbon_C1Tool_Label">Label</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_LabelVisibilityProperty" data-uid="C1.WPF.Ribbon.C1Tool.LabelVisibilityProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.LabelVisibilityProperty.html">LabelVisibilityProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.LabelVisibility.html#C1_WPF_Ribbon_C1Tool_LabelVisibility">LabelVisibility</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_LargeIconTemplateProperty" data-uid="C1.WPF.Ribbon.C1Tool.LargeIconTemplateProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.LargeIconTemplateProperty.html">LargeIconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.LargeIconTemplate.html#C1_WPF_Ribbon_C1Tool_LargeIconTemplate">LargeIconTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_MouseOverBrushProperty" data-uid="C1.WPF.Ribbon.C1Tool.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.MouseOverBrush.html#C1_WPF_Ribbon_C1Tool_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_OrientationProperty" data-uid="C1.WPF.Ribbon.C1Tool.OrientationProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.OrientationProperty.html">OrientationProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.Orientation.html#C1_WPF_Ribbon_C1Tool_Orientation">Orientation</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_PressedBrushProperty" data-uid="C1.WPF.Ribbon.C1Tool.PressedBrushProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.PressedBrush.html#C1_WPF_Ribbon_C1Tool_PressedBrush">PressedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_SmallIconTemplateProperty" data-uid="C1.WPF.Ribbon.C1Tool.SmallIconTemplateProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.SmallIconTemplateProperty.html">SmallIconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1Tool.SmallIconTemplate.html#C1_WPF_Ribbon_C1Tool_SmallIconTemplate">SmallIconTemplate</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_Ribbon_C1Tool_AllowMerging" data-uid="C1.WPF.Ribbon.C1Tool.AllowMerging">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.AllowMerging.html#C1_WPF_Ribbon_C1Tool_AllowMerging">AllowMerging</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the tool can be merged with adjacent tools which also has this property set to 'true' when they are placed on <a class="xref" href="C1.WPF.Ribbon.C1ToolStrip.html">C1ToolStrip</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_BorderAlignment" data-uid="C1.WPF.Ribbon.C1Tool.BorderAlignment">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.BorderAlignment.html#C1_WPF_Ribbon_C1Tool_BorderAlignment">BorderAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the alignment of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_Description" data-uid="C1.WPF.Ribbon.C1Tool.Description">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.Description.html#C1_WPF_Ribbon_C1Tool_Description">Description</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a more descriptive text that will be shown in tooltips.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_FocusBrush" data-uid="C1.WPF.Ribbon.C1Tool.FocusBrush">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.FocusBrush.html#C1_WPF_Ribbon_C1Tool_FocusBrush">FocusBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the focused control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_HotKey" data-uid="C1.WPF.Ribbon.C1Tool.HotKey">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.HotKey.html#C1_WPF_Ribbon_C1Tool_HotKey">HotKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the hotkey text that will be displayed in tooltips and overflow menus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_IconSize" data-uid="C1.WPF.Ribbon.C1Tool.IconSize">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconSize.html#C1_WPF_Ribbon_C1Tool_IconSize">IconSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_IconTemplate" data-uid="C1.WPF.Ribbon.C1Tool.IconTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.IconTemplate.html#C1_WPF_Ribbon_C1Tool_IconTemplate">IconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_IsEditable" data-uid="C1.WPF.Ribbon.C1Tool.IsEditable">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.IsEditable.html#C1_WPF_Ribbon_C1Tool_IsEditable">IsEditable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the tool is editable and can get the keyboard focus to enter text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_Label" data-uid="C1.WPF.Ribbon.C1Tool.Label">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.Label.html#C1_WPF_Ribbon_C1Tool_Label">Label</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text that will shown inside the tool and in the menus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_LabelVisibility" data-uid="C1.WPF.Ribbon.C1Tool.LabelVisibility">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.LabelVisibility.html#C1_WPF_Ribbon_C1Tool_LabelVisibility">LabelVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the visibility of the label.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_LargeIconTemplate" data-uid="C1.WPF.Ribbon.C1Tool.LargeIconTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.LargeIconTemplate.html#C1_WPF_Ribbon_C1Tool_LargeIconTemplate">LargeIconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template used when the icon size is greater or equals to 24 pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_MouseOverBrush" data-uid="C1.WPF.Ribbon.C1Tool.MouseOverBrush">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.MouseOverBrush.html#C1_WPF_Ribbon_C1Tool_MouseOverBrush">MouseOverBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the control when it has the mouse over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_Orientation" data-uid="C1.WPF.Ribbon.C1Tool.Orientation">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.Orientation.html#C1_WPF_Ribbon_C1Tool_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of the tool element. When is Horizontal, the label will be drawn at the right of the icon, and when it is vertical, the label will be displayed at the bottom of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_PressedBrush" data-uid="C1.WPF.Ribbon.C1Tool.PressedBrush">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.PressedBrush.html#C1_WPF_Ribbon_C1Tool_PressedBrush">PressedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to paint a button when it is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_SmallIconTemplate" data-uid="C1.WPF.Ribbon.C1Tool.SmallIconTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.SmallIconTemplate.html#C1_WPF_Ribbon_C1Tool_SmallIconTemplate">SmallIconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template used when the icon size is smaller or equals to 12 pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_TemplateSettings" data-uid="C1.WPF.Ribbon.C1Tool.TemplateSettings">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.TemplateSettings.html#C1_WPF_Ribbon_C1Tool_TemplateSettings">TemplateSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the settings that can be bound in the template of the control.</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_Ribbon_C1Tool_ChangeVisualStateOrientation_System_Boolean_" data-uid="C1.WPF.Ribbon.C1Tool.ChangeVisualStateOrientation(System.Boolean)">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.ChangeVisualStateOrientation.html#C1_WPF_Ribbon_C1Tool_ChangeVisualStateOrientation_System_Boolean_">ChangeVisualStateOrientation(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Orientation visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_Dispose_System_Boolean_" data-uid="C1.WPF.Ribbon.C1Tool.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.Dispose.html#C1_WPF_Ribbon_C1Tool_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_Execute_System_Object_" data-uid="C1.WPF.Ribbon.C1Tool.Execute(System.Object)">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.Execute.html#C1_WPF_Ribbon_C1Tool_Execute_System_Object_">Execute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the tool is executed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_GetTheme" data-uid="C1.WPF.Ribbon.C1Tool.GetTheme">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.GetTheme.html#C1_WPF_Ribbon_C1Tool_GetTheme">GetTheme()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_OnApplyTemplate" data-uid="C1.WPF.Ribbon.C1Tool.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.OnApplyTemplate.html#C1_WPF_Ribbon_C1Tool_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1Tool_UpdateLabel" data-uid="C1.WPF.Ribbon.C1Tool.UpdateLabel">
          <a class="xref" href="C1.WPF.Ribbon.C1Tool.UpdateLabel.html#C1_WPF_Ribbon_C1Tool_UpdateLabel">UpdateLabel()</a>
        </td>
        <td class="markdown level1 summary"><p>UpdateLabel</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
