Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8,296 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibreWPF ProGPU Port

This branch ports WPF onto the ProGPU/Silk.NET platform while reusing as much managed WPF code as possible. The public package brand is LibreWPF, with the custom SDK package LibreWPF.Sdk, so an existing WPF app can switch the project SDK and keep normal WPF source and XAML unchanged.

Current focus areas:

  • Reuse WPF managed code for application model, dependency properties, layout, controls, data binding, documents, XAML, resources, themes, and the XAML compiler.
  • Replace Windows-only MIL/D3D rendering with ProGPU WebGPU composition, shaders, DirectX-compatible shims, GPU hit testing, and Silk.NET windowing/input.
  • Package the runtime as a preview SDK and NuGet set that can be consumed from a local feed or NuGet.org.
  • Keep third-party validation active through basic WPF apps, Xceed Toolkit/AvalonDock, Xceed paid Toolkit/DataGrid, SciChart MVP, ProGPU Avalonia package smoke, and no-source-change SDK smoke tests.

SDK Switch

After adding the preview feed, existing WPF projects should only need the SDK change:

<Project Sdk="LibreWPF.Sdk/11.0.0-dev">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net11.0-windows</TargetFramework>
    <UseWPF>true</UseWPF>
  </PropertyGroup>
</Project>

Windows-only interop and unsupported native/DirectX APIs remain the expected exceptions while the portable platform layer is completed.

NuGet Packages

The preview package set is defined in eng/progpu-preview-package-list.sh and validated by the release workflow.

Package Purpose Source
LibreWPF.Transport Ported managed WPF transport assemblies, refs, themes, XAML build tasks, and runtime metadata. packaging/Microsoft.DotNet.Wpf.GitHub/Microsoft.DotNet.Wpf.GitHub.ArchNeutral.csproj
ProGPU.Backend WebGPU device, swapchain, Silk.NET windowing, and platform backend services. external/ProGPU/src/ProGPU.Backend/ProGPU.Backend.csproj
ProGPU.DirectX DirectX-compatible facade for SciChart and future D3D-style interop on ProGPU/WebGPU. external/ProGPU/src/ProGPU.DirectX/ProGPU.DirectX.csproj
ProGPU.Transpiler Shader/source transformation helpers used by generated GPU pipelines. external/ProGPU/src/ProGPU.Transpiler/ProGPU.Transpiler.csproj
ProGPU.Compute Compute pipeline helpers for GPU effects, indexes, and acceleration structures. external/ProGPU/src/ProGPU.Compute/ProGPU.Compute.csproj
ProGPU.Vector Vector paths, geometry, brushes, pens, and rasterization data models. external/ProGPU/src/ProGPU.Vector/ProGPU.Vector.csproj
ProGPU.Text Text layout, glyph metrics, and GPU-ready text rendering helpers. external/ProGPU/src/ProGPU.Text/ProGPU.Text.csproj
ProGPU.Scene Scene graph, compositor commands, retained visuals, effects, and presentation primitives. external/ProGPU/src/ProGPU.Scene/ProGPU.Scene.csproj
ProGPU.Layout Measure/arrange layout substrate shared by ProGPU UI adapters. external/ProGPU/src/ProGPU.Layout/ProGPU.Layout.csproj
ProGPU.Virtualization Virtualization helpers for large retained visual and item surfaces. external/ProGPU/src/ProGPU.Virtualization/ProGPU.Virtualization.csproj
ProGPU.WinUI WinUI-shaped controls and app model implemented on ProGPU. external/ProGPU/src/ProGPU.WinUI/ProGPU.WinUI.csproj
ProGPU.Avalonia Avalonia integration and compositor backend adapter used by package smoke validation. external/ProGPU/src/ProGPU.Avalonia/ProGPU.Avalonia.csproj
LibreWPF.Interop Shared WPF interop contracts consumed by the WPF bridge and ProGPU runtime. external/ProGPU/src/ProGPU.Wpf.Interop/ProGPU.Wpf.Interop.csproj
LibreWPF.ProGPU WPF-to-ProGPU host, retained/source replay bridge, Silk.NET input/windowing, and compositor adapter. src/ProGPU.Wpf/ProGPU.Wpf.csproj
LibreWPF.Sdk Custom MSBuild SDK that redirects WPF apps to the ProGPU/Silk.NET platform. packaging/ProGPU.Wpf.Sdk/ProGPU.Wpf.Sdk.ArchNeutral.csproj

Build And Release

PROGPU_WPF_DEV_PACKAGE_VERSION=11.0.0-dev ./eng/progpu-wpf-sdk-ci.sh

The SDK CI script builds ProGPU runtime packages, managed WPF transport assemblies, LibreWPF.ProGPU, and LibreWPF.Sdk, then audits the packages, writes the preview manifest, creates and verifies the release bundle, and runs package-mode SDK smoke tests.

GitHub workflows:

  • LibreWPF Build runs the SDK package/no-source-change smoke on macOS.
  • LibreWPF Docs verifies README and release docs against the preview package list.
  • LibreWPF Release builds preview packages/bundle artifacts and can publish to NuGet.org with NUGET_API_KEY.

See docs/progpu-wpf-release.md and the ongoing porting reports in reports/.

Original Upstream README

Windows Presentation Foundation (WPF)

.NET Foundation Build Status codecov MIT License

Windows Presentation Foundation (WPF) is a UI framework for building Windows desktop applications.

WPF supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding and documents. WPF uses the Extensible Application Markup Language (XAML) to provide a declarative model for application programming.

WPF's rendering is vector-based, which enables applications to look great on high DPI monitors, as they can be infinitely scaled. WPF also includes a flexible hosting model, which makes it straightforward to host a video in a button, for example.

Visual Studio's designer, as well as Visual Studio Blend, make it easy to build WPF applications, with drag-and-drop and/or direct editing of XAML markup.

As of .NET 6.0, WPF supports ARM64.

See the WPF Roadmap to learn about project priorities, status and ship dates.

WinForms is another UI framework for building Windows desktop applications that is supported on .NET (7.0.x/6.0.x). WPF and WinForms applications only run on Windows. They are part of the Microsoft.NET.Sdk.WindowsDesktop SDK. You are recommended to use the most recent version of Visual Studio to develop WPF and WinForms applications for .NET.

To build the WPF repo and contribute features and fixes for .NET 8.0, Visual Studio 2022 Preview is required.

Getting started

Status

  • We are currently developing WPF for .NET 10.

See the WPF roadmap to learn about the schedule for specific WPF components.

Test published at separate repo Tests and have limited coverage at this time. We will add more tests, however, it will be a progressive process.

The Visual Studio WPF designer is now available as part of Visual Studio 2019.

How to Engage, Contribute and Provide Feedback

Some of the best ways to contribute are to try things out, file bugs, join in design conversations, and fix issues.

.NET Framework issues

Issues with .NET Framework, including WPF, should be filed on VS developer community, or Product Support. They should not be filed on this repo.

Relationship to .NET Framework

This code base is a fork of the WPF code in the .NET Framework. .NET Core 3.0 was released with a goal of WPF having parity with the .NET Framework version. Over time, the two implementations may diverge.

The Update on .NET Core 3.0 and .NET Framework 4.8 provides a good description of the forward-looking differences between .NET Core and .NET Framework.

This update states how going forward .NET Core is the future of .NET. and .NET Framework 4.8 will be the last major version of .NET Framework.

Code of Conduct

This project uses the .NET Foundation Code of Conduct to define expected conduct in our community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at conduct@dotnetfoundation.org.

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Also see info about related Microsoft .NET Core and ASP.NET Core Bug Bounty Program.

License

.NET Core (including the WPF repo) is licensed under the MIT license.

.NET Foundation

.NET Core WPF is a .NET Foundation project.

See the .NET home repo to find other .NET-related projects.

About

Cross-platform WPF port powered by ProGPU/WebGPU and Silk.NET with custom SDK-switch packaging.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages