# C1.WPF.Extended.MethodBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_MethodBox" data-uid="C1.WPF.Extended.MethodBox" class="text-break">MethodBox Class
</h1>
  <div class="markdown level0 summary"><p>The control used by the C1PropertyGrid to display the SelectedObject's methods.</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"><span class="xref">MethodBox</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>
  <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_MethodBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ActionButton&quot;, Type = typeof(Button))]
[TemplateVisualState(Name = &quot;MouseOver&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Disabled&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Normal&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Focused&quot;, GroupName = &quot;FocusStates&quot;)]
[TemplateVisualState(Name = &quot;Unfocused&quot;, GroupName = &quot;FocusStates&quot;)]
public class MethodBox : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ActionButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplateVisualState(Name:=&quot;MouseOver&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Disabled&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Normal&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Focused&quot;, GroupName:=&quot;FocusStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Unfocused&quot;, GroupName:=&quot;FocusStates&quot;)&gt;
Public Class MethodBox
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</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_MethodBox__ctor" data-uid="C1.WPF.Extended.MethodBox.#ctor">
          <a class="xref" href="C1.WPF.Extended.MethodBox.-ctor.html#C1_WPF_Extended_MethodBox__ctor">MethodBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.MethodBox.html">MethodBox</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_MethodBox_DisabledCuesVisibilityProperty" data-uid="C1.WPF.Extended.MethodBox.DisabledCuesVisibilityProperty">
          <a class="xref" href="C1.WPF.Extended.MethodBox.DisabledCuesVisibilityProperty.html">DisabledCuesVisibilityProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.MethodBox.DisabledCuesVisibility.html#C1_WPF_Extended_MethodBox_DisabledCuesVisibility">DisabledCuesVisibility</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_FocusCuesVisibilityProperty" data-uid="C1.WPF.Extended.MethodBox.FocusCuesVisibilityProperty">
          <a class="xref" href="C1.WPF.Extended.MethodBox.FocusCuesVisibilityProperty.html">FocusCuesVisibilityProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.MethodBox.FocusCuesVisibility.html#C1_WPF_Extended_MethodBox_FocusCuesVisibility">FocusCuesVisibility</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_IsFocusedProperty" data-uid="C1.WPF.Extended.MethodBox.IsFocusedProperty">
          <a class="xref" href="C1.WPF.Extended.MethodBox.IsFocusedProperty.html">IsFocusedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.MethodBox.IsFocused.html#C1_WPF_Extended_MethodBox_IsFocused">IsFocused</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_MethodAttributeProperty" data-uid="C1.WPF.Extended.MethodBox.MethodAttributeProperty">
          <a class="xref" href="C1.WPF.Extended.MethodBox.MethodAttributeProperty.html">MethodAttributeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.MethodBox.MethodAttribute.html#C1_WPF_Extended_MethodBox_MethodAttribute">MethodAttribute</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_MethodBox_DisabledCuesVisibility" data-uid="C1.WPF.Extended.MethodBox.DisabledCuesVisibility">
          <a class="xref" href="C1.WPF.Extended.MethodBox.DisabledCuesVisibility.html#C1_WPF_Extended_MethodBox_DisabledCuesVisibility">DisabledCuesVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the disabled visuals of the control are visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_FocusCuesVisibility" data-uid="C1.WPF.Extended.MethodBox.FocusCuesVisibility">
          <a class="xref" href="C1.WPF.Extended.MethodBox.FocusCuesVisibility.html#C1_WPF_Extended_MethodBox_FocusCuesVisibility">FocusCuesVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the focus visuals of the control are visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_IsFocused" data-uid="C1.WPF.Extended.MethodBox.IsFocused">
          <a class="xref" href="C1.WPF.Extended.MethodBox.IsFocused.html#C1_WPF_Extended_MethodBox_IsFocused">IsFocused</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the control has the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_MethodAttribute" data-uid="C1.WPF.Extended.MethodBox.MethodAttribute">
          <a class="xref" href="C1.WPF.Extended.MethodBox.MethodAttribute.html#C1_WPF_Extended_MethodBox_MethodAttribute">MethodAttribute</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the method attribute used to configure the MethodBox.</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_MethodBox_ChangeVisualStateCommon_System_Boolean_" data-uid="C1.WPF.Extended.MethodBox.ChangeVisualStateCommon(System.Boolean)">
          <a class="xref" href="C1.WPF.Extended.MethodBox.ChangeVisualStateCommon.html#C1_WPF_Extended_MethodBox_ChangeVisualStateCommon_System_Boolean_">ChangeVisualStateCommon(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Common visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_ChangeVisualStateFocus_System_Boolean_" data-uid="C1.WPF.Extended.MethodBox.ChangeVisualStateFocus(System.Boolean)">
          <a class="xref" href="C1.WPF.Extended.MethodBox.ChangeVisualStateFocus.html#C1_WPF_Extended_MethodBox_ChangeVisualStateFocus_System_Boolean_">ChangeVisualStateFocus(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Focus visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_OnApplyTemplate" data-uid="C1.WPF.Extended.MethodBox.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.MethodBox.OnApplyTemplate.html#C1_WPF_Extended_MethodBox_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.MethodBox.html">MethodBox</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_OnCreateAutomationPeer" data-uid="C1.WPF.Extended.MethodBox.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.Extended.MethodBox.OnCreateAutomationPeer.html#C1_WPF_Extended_MethodBox_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_OnPropertyChanged_System_Windows_DependencyPropertyChangedEventArgs_" data-uid="C1.WPF.Extended.MethodBox.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.Extended.MethodBox.OnPropertyChanged.html#C1_WPF_Extended_MethodBox_OnPropertyChanged_System_Windows_DependencyPropertyChangedEventArgs_">OnPropertyChanged(DependencyPropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked whenever the effective value of any dependency property has been updated.</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_MethodBox_IsMouseOverChanged" data-uid="C1.WPF.Extended.MethodBox.IsMouseOverChanged">
          <a class="xref" href="C1.WPF.Extended.MethodBox.IsMouseOverChanged.html">IsMouseOverChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <span class="xref">IsMouseOver</span> property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_MethodBox_MethodAttributeChanged" data-uid="C1.WPF.Extended.MethodBox.MethodAttributeChanged">
          <a class="xref" href="C1.WPF.Extended.MethodBox.MethodAttributeChanged.html">MethodAttributeChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <span class="xref">MethodAttribute</span> property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
