# C1.WPF.DxToolkit.DxHost

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_DxToolkit_DxHost" data-uid="C1.WPF.DxToolkit.DxHost" class="text-break">DxHost Class
</h1>
  <div class="markdown level0 summary"><p>Base element rendering its content with Direct2D and DirectWrite.</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.interop.hwndhost">HwndHost</a></div>
    <div class="level7"><span class="xref">DxHost</span></div>
      <div class="level8"><a class="xref" href="C1.WPF.FlexViewer.C1FlexViewerPane.html">C1FlexViewerPane</a></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.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.interop.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.interop.ikeyboardinputsink">IKeyboardInputSink</a></div>
    <div><a class="xref" href="C1.WPF.DxToolkit.ITouchDestination.html">ITouchDestination</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.DxToolkit.html">C1.WPF.DxToolkit</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexViewer.4.6.2.dll</h6>
  <h5 id="C1_WPF_DxToolkit_DxHost_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class DxHost : HwndHost, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable, IWin32Window, IKeyboardInputSink, ITouchDestination</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class DxHost
    Inherits HwndHost
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable, IWin32Window, IKeyboardInputSink, ITouchDestination</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_DxToolkit_DxHost__ctor" data-uid="C1.WPF.DxToolkit.DxHost.#ctor">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.-ctor.html#C1_WPF_DxToolkit_DxHost__ctor">DxHost()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.WPF.DxToolkit.DxHost.html">DxHost</a> control.</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_DxToolkit_DxHost_BackgroundColorProperty" data-uid="C1.WPF.DxToolkit.DxHost.BackgroundColorProperty">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.BackgroundColorProperty.html">BackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.DxToolkit.DxHost.BackgroundColor.html#C1_WPF_DxToolkit_DxHost_BackgroundColor">BackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_ToolTipTextProperty" data-uid="C1.WPF.DxToolkit.DxHost.ToolTipTextProperty">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.ToolTipTextProperty.html">ToolTipTextProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.DxToolkit.DxHost.ToolTipText.html#C1_WPF_DxToolkit_DxHost_ToolTipText">ToolTipText</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_DxToolkit_DxHost_BackgroundColor" data-uid="C1.WPF.DxToolkit.DxHost.BackgroundColor">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.BackgroundColor.html#C1_WPF_DxToolkit_DxHost_BackgroundColor">BackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color for <a class="xref" href="C1.WPF.DxToolkit.DxHost.html">DxHost</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_ToolTipText" data-uid="C1.WPF.DxToolkit.DxHost.ToolTipText">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.ToolTipText.html#C1_WPF_DxToolkit_DxHost_ToolTipText">ToolTipText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the tooltip text for <a class="xref" href="C1.WPF.DxToolkit.DxHost.html">DxHost</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_WindowClassName" data-uid="C1.WPF.DxToolkit.DxHost.WindowClassName">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.WindowClassName.html#C1_WPF_DxToolkit_DxHost_WindowClassName">WindowClassName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the window class.</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_DxToolkit_DxHost_BuildWindowCore_System_Runtime_InteropServices_HandleRef_" data-uid="C1.WPF.DxToolkit.DxHost.BuildWindowCore(System.Runtime.InteropServices.HandleRef)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.BuildWindowCore.html#C1_WPF_DxToolkit_DxHost_BuildWindowCore_System_Runtime_InteropServices_HandleRef_">BuildWindowCore(HandleRef)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the window to be hosted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_CreateDeviceIndependentResources" data-uid="C1.WPF.DxToolkit.DxHost.CreateDeviceIndependentResources">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.CreateDeviceIndependentResources.html#C1_WPF_DxToolkit_DxHost_CreateDeviceIndependentResources">CreateDeviceIndependentResources()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates class factories and other device-independent resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_CreateDeviceResources" data-uid="C1.WPF.DxToolkit.DxHost.CreateDeviceResources">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.CreateDeviceResources.html#C1_WPF_DxToolkit_DxHost_CreateDeviceResources">CreateDeviceResources()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the GPU-dependent resources, such as SwapChain and DeviceContext.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_DestroyWindowCore_System_Runtime_InteropServices_HandleRef_" data-uid="C1.WPF.DxToolkit.DxHost.DestroyWindowCore(System.Runtime.InteropServices.HandleRef)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.DestroyWindowCore.html#C1_WPF_DxToolkit_DxHost_DestroyWindowCore_System_Runtime_InteropServices_HandleRef_">DestroyWindowCore(HandleRef)</a>
        </td>
        <td class="markdown level1 summary"><p>Destroys the hosted window.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_DiscardDeviceIndependentResources" data-uid="C1.WPF.DxToolkit.DxHost.DiscardDeviceIndependentResources">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.DiscardDeviceIndependentResources.html#C1_WPF_DxToolkit_DxHost_DiscardDeviceIndependentResources">DiscardDeviceIndependentResources()</a>
        </td>
        <td class="markdown level1 summary"><p>Discards class factories and other device-independent resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_DiscardDeviceResources" data-uid="C1.WPF.DxToolkit.DxHost.DiscardDeviceResources">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.DiscardDeviceResources.html#C1_WPF_DxToolkit_DxHost_DiscardDeviceResources">DiscardDeviceResources()</a>
        </td>
        <td class="markdown level1 summary"><p>Discards all GPU-dependent resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_Dispose_System_Boolean_" data-uid="C1.WPF.DxToolkit.DxHost.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.Dispose.html#C1_WPF_DxToolkit_DxHost_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_FocusFirstElement_System_Boolean_" data-uid="C1.WPF.DxToolkit.DxHost.FocusFirstElement(System.Boolean)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.FocusFirstElement.html#C1_WPF_DxToolkit_DxHost_FocusFirstElement_System_Boolean_">FocusFirstElement(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves focus to the first or the last element of the control in tab order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_FocusNextElement_System_Boolean_" data-uid="C1.WPF.DxToolkit.DxHost.FocusNextElement(System.Boolean)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.FocusNextElement.html#C1_WPF_DxToolkit_DxHost_FocusNextElement_System_Boolean_">FocusNextElement(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves focus to the next or the previous element of the control in tab order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_OnDoWork" data-uid="C1.WPF.DxToolkit.DxHost.OnDoWork">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.OnDoWork.html#C1_WPF_DxToolkit_DxHost_OnDoWork">OnDoWork()</a>
        </td>
        <td class="markdown level1 summary"><p>Does some job in the background thread.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_OnKeyDown_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.DxToolkit.DxHost.OnKeyDown(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.OnKeyDown.html#C1_WPF_DxToolkit_DxHost_OnKeyDown_System_Windows_Input_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes WM_KEYDOWN message.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_OnKeyUp_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.DxToolkit.DxHost.OnKeyUp(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.OnKeyUp.html#C1_WPF_DxToolkit_DxHost_OnKeyUp_System_Windows_Input_KeyEventArgs_">OnKeyUp(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes WM_KEYUP message.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_OnRunWorkerCompleted" data-uid="C1.WPF.DxToolkit.DxHost.OnRunWorkerCompleted">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.OnRunWorkerCompleted.html#C1_WPF_DxToolkit_DxHost_OnRunWorkerCompleted">OnRunWorkerCompleted()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes when the background thread is about to finish.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_OnVisualParentChanged_System_Windows_DependencyObject_" data-uid="C1.WPF.DxToolkit.DxHost.OnVisualParentChanged(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.OnVisualParentChanged.html#C1_WPF_DxToolkit_DxHost_OnVisualParentChanged_System_Windows_DependencyObject_">OnVisualParentChanged(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked when the Parent of this element is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_TabIntoCore_System_Windows_Input_TraversalRequest_" data-uid="C1.WPF.DxToolkit.DxHost.TabIntoCore(System.Windows.Input.TraversalRequest)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.TabIntoCore.html#C1_WPF_DxToolkit_DxHost_TabIntoCore_System_Windows_Input_TraversalRequest_">TabIntoCore(TraversalRequest)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets focus on either the first tab stop or the last tab stop of the sink.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_TranslateAcceleratorCore_System_Windows_Interop_MSG__System_Windows_Input_ModifierKeys_" data-uid="C1.WPF.DxToolkit.DxHost.TranslateAcceleratorCore(System.Windows.Interop.MSG@,System.Windows.Input.ModifierKeys)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.TranslateAcceleratorCore.html#C1_WPF_DxToolkit_DxHost_TranslateAcceleratorCore_System_Windows_Interop_MSG__System_Windows_Input_ModifierKeys_">TranslateAcceleratorCore(ref MSG, ModifierKeys)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes keyboard input at the keydown message level.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_TranslateCharCore_System_Windows_Interop_MSG__System_Windows_Input_ModifierKeys_" data-uid="C1.WPF.DxToolkit.DxHost.TranslateCharCore(System.Windows.Interop.MSG@,System.Windows.Input.ModifierKeys)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.TranslateCharCore.html#C1_WPF_DxToolkit_DxHost_TranslateCharCore_System_Windows_Interop_MSG__System_Windows_Input_ModifierKeys_">TranslateCharCore(ref MSG, ModifierKeys)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes WM_CHAR input message.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DxToolkit_DxHost_WndProc_System_IntPtr_System_Int32_System_IntPtr_System_IntPtr_System_Boolean__" data-uid="C1.WPF.DxToolkit.DxHost.WndProc(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr,System.Boolean@)">
          <a class="xref" href="C1.WPF.DxToolkit.DxHost.WndProc.html#C1_WPF_DxToolkit_DxHost_WndProc_System_IntPtr_System_Int32_System_IntPtr_System_IntPtr_System_Boolean__">WndProc(IntPtr, int, IntPtr, IntPtr, ref bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
