# GrapeCity.ActiveReports.Converters.CommandAdapter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Converters_CommandAdapter" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter" class="text-break">CommandAdapter Class
</h1>
  <div class="markdown level0 summary"><p>Represents a class that facilitates associating a key binding in XAML markup to a GrapeCity's Command
defined in a View Model by exposing a Command dependency property. The class derives from Freezable
to work around a limitation in WPF when data-binding from XAML.</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.freezable">Freezable</a></div>
    <div class="level4"><span class="xref">CommandAdapter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.icommand">ICommand</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Converters.html">GrapeCity.ActiveReports.Converters</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Converters_CommandAdapter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CommandAdapter : Freezable, ICommand</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="GrapeCity_ActiveReports_Converters_CommandAdapter__ctor" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.-ctor.html#GrapeCity_ActiveReports_Converters_CommandAdapter__ctor">CommandAdapter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.html">CommandAdapter</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_CommandAdapter__ctor_GrapeCity_Viewer_Common_ICommand_" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.#ctor(GrapeCity.Viewer.Common.ICommand)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.-ctor.html#GrapeCity_ActiveReports_Converters_CommandAdapter__ctor_GrapeCity_Viewer_Common_ICommand_">CommandAdapter(ICommand)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.html">CommandAdapter</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="GrapeCity_ActiveReports_Converters_CommandAdapter_CommandProperty" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.CommandProperty">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.CommandProperty.html">CommandProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.Command.html#GrapeCity_ActiveReports_Converters_CommandAdapter_Command">Command</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="GrapeCity_ActiveReports_Converters_CommandAdapter_Command" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.Command">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.Command.html#GrapeCity_ActiveReports_Converters_CommandAdapter_Command">Command</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the command to adapt.</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="GrapeCity_ActiveReports_Converters_CommandAdapter_CanExecute_System_Object_" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.CanExecute(System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.CanExecute.html#GrapeCity_ActiveReports_Converters_CommandAdapter_CanExecute_System_Object_">CanExecute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the method that determines whether the command can execute in its current state.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_CommandAdapter_CreateInstanceCore" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.CreateInstanceCore">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.CreateInstanceCore.html#GrapeCity_ActiveReports_Converters_CommandAdapter_CreateInstanceCore">CreateInstanceCore()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.html">CommandAdapter</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_CommandAdapter_Execute_System_Object_" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.Execute(System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.Execute.html#GrapeCity_ActiveReports_Converters_CommandAdapter_Execute_System_Object_">Execute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the method to be called when the command is invoked.</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="GrapeCity_ActiveReports_Converters_CommandAdapter_CanExecuteChanged" data-uid="GrapeCity.ActiveReports.Converters.CommandAdapter.CanExecuteChanged">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.CommandAdapter.CanExecuteChanged.html">CanExecuteChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when changes occur that affect whether the command should execute.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
