ModelViewerWPF 1.0.2-preview

This is a prerelease version of ModelViewerWPF.
dotnet add package ModelViewerWPF --version 1.0.2-preview                
NuGet\Install-Package ModelViewerWPF -Version 1.0.2-preview                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModelViewerWPF" Version="1.0.2-preview" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ModelViewerWPF --version 1.0.2-preview                
#r "nuget: ModelViewerWPF, 1.0.2-preview"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ModelViewerWPF as a Cake Addin
#addin nuget:?package=ModelViewerWPF&version=1.0.2-preview&prerelease

// Install ModelViewerWPF as a Cake Tool
#tool nuget:?package=ModelViewerWPF&version=1.0.2-preview&prerelease                

ModelViewerWPF

ModelViewerWPF is a WPF control that uses WebView2 to display 3D models within a WPF application. This control is based on the model-viewer and supports *.gltf and *.glb formats.

Features

  • Display 3D models using WebView2
  • Supports GLB/GLTF 3D model formats

<img src="wpf.png" alt="window" height="200">

Installation

You can install ModelViewerWPF via the NuGet Package Manager:

Install-Package ModelViewerWPF

Simple Usage

<Window
    x:Class="YourNamespace.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:modelviewer="clr-namespace:ModelViewerWPF;assembly=ModelViewerWPF"
    Title="MainWindow"
    Width="800"
    Height="450">
    <Grid>
        <modelviewer:ModelViewer
            Margin="4"
            ModelSource="Assets/Models/Horse.glb" />
    </Grid>
</Window>
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2-preview 73 8/20/2024
1.0.0-preview 45 8/7/2024