BlackSharp.UI.Avalonia 1.3.2

Prefix Reserved
dotnet add package BlackSharp.UI.Avalonia --version 1.3.2
                    
NuGet\Install-Package BlackSharp.UI.Avalonia -Version 1.3.2
                    
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="BlackSharp.UI.Avalonia" Version="1.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlackSharp.UI.Avalonia" Version="1.3.2" />
                    
Directory.Packages.props
<PackageReference Include="BlackSharp.UI.Avalonia" />
                    
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 BlackSharp.UI.Avalonia --version 1.3.2
                    
#r "nuget: BlackSharp.UI.Avalonia, 1.3.2"
                    
#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 BlackSharp.UI.Avalonia@1.3.2
                    
#: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=BlackSharp.UI.Avalonia&version=1.3.2
                    
Install as a Cake Addin
#tool nuget:?package=BlackSharp.UI.Avalonia&version=1.3.2
                    
Install as a Cake Tool

<h1 align="center">BlackSharp.UI.Avalonia</h1>

<p align="center"> <img src="https://raw.githubusercontent.com/Blacktempel/BlackSharp/master/Assets/BlackSharpFull.png" width="128" height="128" alt="BlackSharp.UI.Avalonia logo"/> </p>

NuGet NuGet downloads .NET GitHub Sponsors PayPal License

BlackSharp.UI.Avalonia provides reusable controls, themes, behaviors and dialog services for Avalonia desktop applications.

Features

Windows and dialogs

  • Custom title bars with optional icons and menus
  • Message boxes with standard and custom buttons
  • Countdown dialogs with automatic close
  • MVVM message, confirmation and theme services

Input, navigation and layout

  • Numeric input with configurable type and precision
  • Bindable hotkey capture
  • Busy overlay with optional message and progress indicator
  • Keyboard tab previews (e.g. Ctrl+Tab, Ctrl+Shift+Tab)
  • Drag-and-drop reordering for tabs and compatible grid rows
  • Drag previews, insertion markers and reorder commands
  • Selection-preserving scrolling (Ctrl+Up/Down)
  • Window-width text wrapping and configurable grid margins

Typography and themes

  • Global font-family, -size and installed font enumeration
  • Opt-in Fluent themes with font-scaled control metrics
  • XAML helpers for font scaling, spacing and corner radii

Desktop integration and utilities

  • Global hotkeys with command bindings (Windows)
  • Window click-through (Win32 and X11 with XFixes)
  • Monitor names, device paths and EDID serial numbers (Windows)
  • Dialog icons and theme-aware brushes
  • Color, font family and string comparison converters

Supported .NET versions

.NET version Support
.NET 8 ✅
.NET 9 ✅
.NET 10 ✅
.NET 11 ✅

NuGet

dotnet add package BlackSharp.UI.Avalonia

Supported platforms

The shared controls run on Avalonia desktop. Some native functionality is not available on all platforms.

Operating system Support
Windows ✅
Linux ✅
Other ✅

Usage

Add the shared resources

Merge the base dictionary in your application's App.axaml. Add the styles include if you use BusyPanel. The scalable dictionary is optional.

<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="ExampleApp.App">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceInclude Source="avares://BlackSharp.UI.Avalonia/Themes/Themes.axaml"/>
                <ResourceInclude Source="avares://BlackSharp.UI.Avalonia/Themes/ScalableControlThemes.axaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

    <Application.Styles>
        <FluentTheme/>
        <StyleInclude Source="avares://BlackSharp.UI.Avalonia/Styles/Styles.axaml"/>
    </Application.Styles>
</Application>

Opt into scalable Fluent controls

Load ScalableControlThemes.axaml after Themes.axaml as shown above. It includes the global font bindings and adds font scaling to selected Fluent control metrics. Use GlobalFontThemes.axaml in place of the scalable dictionary if you want global typography only.

Change the font on the UI thread after Avalonia initializes:

using BlackSharp.UI.Avalonia.Global;

GlobalFontSettings.Current.FontSize = 16.0;

12.0 device-independent pixels is the baseline font size.

Run the demo

The demo targets .NET 10.

Open Settings layout in the demo to try the available controls and behaviors. Note that not all features and controls are available in the demo.

Support and license

Report issues in the BlackSharp issue tracker. Licensed under the Mozilla Public License 2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3.2 76 11/30/2026
1.3.1 107 11/24/2026
1.3.0 106 11/21/2026
1.2.12 155 11/16/2026
1.2.11 107 11/10/2026
1.2.10 108 11/6/2026
1.2.9 107 11/4/2026
1.2.8 119 11/1/2026
1.2.7 119 10/30/2026
1.2.6 695 10/28/2026
1.2.5 155 10/23/2026
1.2.4 122 10/22/2026
1.2.3 143 10/11/2026
1.2.2 134 9/23/2026
1.2.1 132 9/14/2026
1.2.0 187 8/21/2026
1.1.4 165 7/23/2026
1.1.3 193 7/19/2026
1.1.2 156 6/14/2026
1.1.1 163 5/22/2026
Loading failed