OpenSilver lets you write one XAML and .NET codebase and deploy to web, mobile, and desktop targets including a growing WPF-compatible API subset.
Overview
OpenSilver is an open-source framework for cross-platform applications using C#, VB.NET, or F# with XAML. It reimplements a large and growing subset of the WPF and Silverlight API using modern .NET, WebAssembly, and the browser DOM rather than emulating a desktop stack inside Electron.
On the web, C# compiles to WebAssembly and XAML maps to real HTML elements, enabling accessibility, text selection, search-in-page, and SEO compared with canvas-only renderers. Desktop and mobile builds use .NET MAUI-OpenSilver Hybrid or Photino while still rendering UI as HTML and CSS. You can mix Razor and XAML and embed Blazor component libraries inside XAML projects.
The framework supports migration paths from Silverlight, WPF, LightSwitch, and WinForms with API overlap percentages that vary by source platform. Project templates exist for Visual Studio, VS Code, and browser-based XAML.io, with separate entry projects for browser, MAUI hybrid, Photino on Linux, and a simulator for debugging.
Published web output is static files hostable on ordinary web servers without special server technology. An online showcase and gallery demonstrate samples and production-style applications.
Key features
- WPF API subset compatibility
- DOM-based XAML rendering
- WebAssembly web deployment
- MAUI hybrid mobile and desktop
- Photino Linux desktop entry
- C#, VB.NET, and F# support
- Blazor components inside XAML
- NuGet and .NET package ecosystem
Use cases
- Migrating Silverlight or WPF apps to the web
- Cross-platform line-of-business XAML apps
- Browser apps with MVVM XAML patterns
- Embedding third-party Blazor controls
- Prototyping in browser-based XAML.io