Click or drag to resize
AB4D logo

D3DHost Class

D3DHost is a control that is used to show the 3D scene with when the DirectXOverlay is used for the PresentationType property. The control is derived from System.Windows.Interop.HwndHost and provides a windows handle based area that can be used to display the 3D scene with using the DirectX SwapChain. The area occupied with D3DHost cannot be used by any other WPF element (this is possible when using DXImage control.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.InteropHwndHost
              Ab3d.DirectX.ControlsD3DHost

Namespace: Ab3d.DirectX.Controls
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public class D3DHost : HwndHost

The D3DHost type exposes the following members.

Constructors
 NameDescription
Public methodD3DHost Constructor
Top
Properties
 NameDescription
Public propertyClientWindowSize Gets the Size2 (width and heigh as int) of the created window.
Public propertyIsInitiallyPainted Gets a boolean that specifies if the created window is initially painted
Top
Methods
 NameDescription
Public methodGetHWnd Returns a handle to used window.
Top
Events
 NameDescription
Public eventHandleCreated Called when Window handle is created automatically inside BuildWindowCore - when Window handle is created manually with calling CreateWindow method, this event is not called.
Public eventPainting Called when WM_PAINT message is passed to D3DHost WndProc
Public eventSizeChanging Called when WM_SIZE message is passed to D3DHost WndProc
Top
Fields
 NameDescription
Public fieldStatic memberRenderAsManyFramesAsPossible Gets or sets a static Boolean that specifies if rendering is not bound to WPF's frame rate but is rendering as many frames as possible (when set to true).
Top
See Also