WinUIShell.Core
0.1.0-preview.1
dotnet add package WinUIShell.Core --version 0.1.0-preview.1
NuGet\Install-Package WinUIShell.Core -Version 0.1.0-preview.1
<PackageReference Include="WinUIShell.Core" Version="0.1.0-preview.1" />
<PackageVersion Include="WinUIShell.Core" Version="0.1.0-preview.1" />
<PackageReference Include="WinUIShell.Core" />
paket add WinUIShell.Core --version 0.1.0-preview.1
#r "nuget: WinUIShell.Core, 0.1.0-preview.1"
#:package WinUIShell.Core@0.1.0-preview.1
#addin nuget:?package=WinUIShell.Core&version=0.1.0-preview.1&prerelease
#tool nuget:?package=WinUIShell.Core&version=0.1.0-preview.1&prerelease
WinUIShell.Core
A reusable Windows App SDK / WinUI 3 shell for .NET 10 Windows desktop apps. It provides the familiar Windows 11/WinUI Gallery-style Mica window, native TitleBar with Search, Home navigation, and Settings page without introducing a custom visual theme.
Prerelease: This version depends on Microsoft's
Microsoft.WindowsAppSDK 2.5.4-experimental. Microsoft marks some associated APIs experimental. This is not a trial version.
Requirements
- Windows 10 version 1809 (build 17763) or later; Windows 11 recommended for the intended appearance.
- .NET 10, a Windows App SDK / WinUI 3 application (not WPF, WinForms, ASP.NET, MAUI, or a console-only process).
- Architecture-specific Windows App SDK native runtime. Build your application for x64 or x86, not a universal WinUI executable.
- The host app must initialize WinUI XAML and provide
XamlControlsResourcesinApp.xaml. - The sample app is unpackaged (
WindowsPackageType=None) and uses a self-contained Windows App SDK runtime.
Install (after publication)
dotnet add package WinUIShell.Core --version 0.1.0-preview.1
The package declares its own direct dependencies on the experimental Windows App SDK and the Windows Community Toolkit SettingsControls.
Use in your WinUI app
using Microsoft.UI.Xaml;
using WinUIShell.Core;
public sealed partial class App : Application
{
private ShellWindow? _shell;
public App() => InitializeComponent();
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
_shell = new ShellWindow();
_shell.Activate();
}
}
The standard shell exposes NavigationView, Navigate(Type), ApplyTheme(ElementTheme), and ApplyNavigationStyle(bool). It initially shows a blank Home page; Settings offers Light/Dark/System appearance, Left/Top navigation, and sound settings.
UI and behavior
This library is based on the MIT-licensed WinUI Gallery shell. It deliberately preserves native WinUI 3 styling; no AI Chat, custom skin, or alternative appearance is included.
The shell uses unpackaged app preferences (ApplicationData.GetForUnpackaged("HFAsif", "WinUI3OriginalShell")) for backwards compatibility. These preferences are shared with earlier samples using the same store. The sample app provides the Gallery icon at Assets/Tiles/GalleryIcon.ico — applications are responsible for providing an icon there if they want to preserve the sample's icon.
Limitations / support status
- This is a prerelease and has an experimental Windows App SDK dependency.
- The sample is currently tested with unpackaged WinUI 3; packaged MSIX scenarios have not been certified.
- Consumer apps must be separately tested on Windows for startup, XAML resources and Settings interactions.
- The NuGet package does not include a Windows application executable.
- See the repository for the complete sample and issue reporting: https://github.com/HFAsif/WinUIGallery_Privet (the repository may be private).
Attribution
Parts of the shell are derived from Microsoft WinUI Gallery, distributed under the MIT license. Copyright notices are preserved; THIRD_PARTY_LICENSE.txt is included in the package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows10.0.22621 is compatible. |
-
net10.0-windows10.0.22621
- CommunityToolkit.WinUI.Controls.SettingsControls (>= 8.2.251219)
- Microsoft.WindowsAppSDK (>= 2.5.4-experimental)
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 |
|---|---|---|
| 0.1.0-preview.1 | 106 | 10/8/2026 |
Initial prerelease: extracted, reusable .NET 10 WinUI 3 shell with sample; depends on Windows App SDK 2.5.4-experimental.