WPFDXInterop

Repo for WPF DX Interop support

  • Owner: microsoft/WPFDXInterop
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

WPF DirectX Extensions

WPF DirectX Extensions allow you to easily host DirectX 10 and DirectX 11 content in WPF applications.

Getting Started

Where to get it

Resources

More Info

Code Example

XAML

<Window x:Class="WpfApplication5.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication5"
        mc:Ignorable="d"
        xmlns:DXExtensions="clr-namespace:Microsoft.Wpf.Interop.DirectX;assembly=Microsoft.Wpf.Interop.DirectX"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Image>
            <Image.Source>
                <DXExtensions:D3D11Image  x:Name="InteropImage"/>
            </Image.Source>
        </Image>
    </Grid>
</Window>

C#

The C# portions of interfacing with a native component that generates the DX visualization is not concise enough to host as an example. We would recommend that you look at sample code here to get a detailed understanding of the code required

Using WPF DirectX Extensions

The documentation explains how to install Visual Studio, add the WPF DirectX Extension NuGet package to your project, and get started using the API.

Building WPF DirectX Extensions from Source

What You Need

Build and Create WPF DirectX Extensions NuGet

  • Clone the Repository
  • Open Microsoft.Wpf.Interop.DirectX_winsdk or Microsoft.Wpf.Interop.DirectX_dxsdk solution from Source in Visual Studio
  • Change Build Configuration to Release and build for x86 and x64
  • Run BuildNuGetPackage in scripts to create nuget packages

Main metrics

Overview
Name With Ownermicrosoft/WPFDXInterop
Primary LanguageC++
Program languageC++ (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2015-08-16 22:28:11
Pushed At2023-10-04 01:41:04
Last Commit At2022-10-07 10:59:48
Release Count0
用户参与
Stargazers Count323
Watchers Count86
Fork Count94
Commits Count38
Has Issues Enabled
Issues Count42
Issue Open Count33
Pull Requests Count1
Pull Requests Open Count5
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private