Nocturne.Wpf 0.3.1

dotnet add package Nocturne.Wpf --version 0.3.1
                    
NuGet\Install-Package Nocturne.Wpf -Version 0.3.1
                    
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="Nocturne.Wpf" Version="0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nocturne.Wpf" Version="0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="Nocturne.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nocturne.Wpf --version 0.3.1
                    
#r "nuget: Nocturne.Wpf, 0.3.1"
                    
#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.
#:package Nocturne.Wpf@0.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nocturne.Wpf&version=0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=Nocturne.Wpf&version=0.3.1
                    
Install as a Cake Tool

Nocturne for WPF

A dark theme for WPF on .NET 10 and later. The Windows 11 backdrop (Acrylic, Mica or Mica Alt) shows through a tinted window; cards and controls are light translucent surfaces on top. One resource dictionary styles the standard controls; NocturneWindow gives the frame.

Documentation, with a picture and XAML for every control: https://montago.github.io/NocturneTheme/

Getting started

dotnet add package Nocturne.Wpf

Merge the theme in App.xaml:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/Nocturne.Wpf;component/Styles/Nocturne.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Make the main window a NocturneWindow:

<nc:NocturneWindow x:Class="MyApp.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:nc="urn:nocturne-wpf"
                  Title="My app">
    <HeaderedContentControl Style="{StaticResource Nocturne.Styles.Card}" Header="SETTINGS">
        <Button Style="{StaticResource Nocturne.Styles.Button.Primary}" Content="Save" />
    </HeaderedContentControl>
</nc:NocturneWindow>
public partial class MainWindow : Nocturne.Wpf.Controls.NocturneWindow { ... }

What is in it

  • NocturneWindow: Backdrop (Acrylic by default, Mica, MicaAlt, None), TintOpacity (0.5), 44px title bar with its own caption buttons, LeftWindowCommands and RightWindowCommands, TitleBarStyle (Seamless, Separated, Accent), CornerStyle (Round, RoundSmall, Square). Without Windows 11 22H2, with transparency effects off or over Remote Desktop (unless UseBackdropInRemoteSession) it paints an opaque ground of the same colour.
  • Styles for Button (default, .Primary, .Danger, .Subtle, .Icon), RepeatButton, ToggleButton, TextBox (.Search, .MultiLine), PasswordBox (reveal button), Label, CheckBox (three-state), RadioButton, toggle switch (Nocturne.Styles.ToggleSwitch), ComboBox (editable too), ListBox and side navigation, ListView (with GridView column headers), TreeView, Slider, ProgressBar (indeterminate), ScrollViewer, GroupBox, Expander, TabControl (segmented and .Document tabs with close buttons, badges and "+"), DataGrid (row headers too), Calendar, DatePicker, RichTextBox, ToolBar and ToolBarTray, StatusBar, GridSplitter, ContextMenu, Menu, ToolTip, Hyperlink, Separator, ResizeGrip. Text fields get a right-click menu with icons (Nocturne.ContextMenu.Text), validation errors show in a callout under the field, scroll bars fade out while the mouse is away, and the segmented tabs glide to the chosen tab.
  • Own controls: DropDownButton and SplitButton (each also .Primary), NumericUpDown, ProgressRing, InfoBar (Info, Success, Warning, Error), NocturneDialog (shown in the window with await window.ShowMessageAsync(...) or ShowDialogAsync) and Flyout (in NocturneWindow.Flyouts, slides in from an edge), TimePicker, ColorPicker, AutoSuggestBox, SearchComboBox (a combo box you can type in to filter thousands of items), RangeSlider, Rating, Tile (also .Accent), Badged, BusyIndicator, Accordion and HamburgerMenu (a navigation pane that folds to its icons, with groups of sub-items). ControlHelper.ClearButton puts an × in a TextBox.
  • NocturneGrid: a DataGrid for large lists. Search across all columns (every word must match; hits drawn in the accent), a filter in every column header (tick values with their counts or type them, * wildcards, ranges such as >50000 or 2020-01-01..2020-06-30, a tree of years, months and days for dates), grouping (GroupMemberPath), three-state sorting, paging (PageSize), and virtualized rows and columns with text drawn straight from the font. Columns: NocturneGridColumn and NocturneGridCheckBoxColumn.
  • Accent colours: blue by default; NocturneTheme.SetAccent(NocturneAccent.Green) (or Orange, Yellow, Red) switches the accent, the primary button and the window tint at run time. NocturneAccent.System uses the accent colour chosen in Windows and follows it when the user changes it.
  • Cards (Nocturne.Styles.Card), tags, status pills, badges, icon tiles, typography styles.
  • StrokeIcon and a small set of line icons (Nocturne.Icons.*).
  • NocturneIcon: Material Design Icons by Pictogrammers, <nc:NocturneIcon Kind="Bell" />, with the shortcuts {nc:Icon ContentSave} (for MenuItem.Icon, Content) and {nc:IconGeometry Star}. The icons are under the Apache License 2.0 (see NOTICE.md in the package), the rest under MIT.
  • Attached helpers: ControlHelper (Placeholder, Icon, HasError, CornerRadius), PasswordBoxHelper.CanReveal, TabHelper (ShowCloseButton, Badge, ShowAddButton), ScrollViewerHelper (ChainMouseWheel, AutoHide), ContextMenuHelper.TargetsPlacement, FocusHelper (a keyboard-focus ring a template draws itself, as the TreeViewItem does).

Brushes are Nocturne.Brushes.*; reference them with DynamicResource.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-windows7.0

    • No dependencies.

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.3.1 0 11/18/2026
0.3.0 0 11/18/2026
0.2.0 11 11/18/2026
0.1.2 11 11/18/2026