ModelViewerWPF 1.0.2-preview
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
.NETFramework 4.8
- Microsoft.Web.WebView2 (>= 1.0.2646-prerelease)
- System.Net.Http (>= 4.3.4)
-
net8.0-windows7.0
- Microsoft.Web.WebView2 (>= 1.0.2646-prerelease)
- System.Net.Http (>= 4.3.4)
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 | 79 | 8/20/2024 |
1.0.0-preview | 49 | 8/7/2024 |