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
<PackageReference Include="BlackSharp.UI.Avalonia" Version="1.3.2" />
<PackageVersion Include="BlackSharp.UI.Avalonia" Version="1.3.2" />
<PackageReference Include="BlackSharp.UI.Avalonia" />
paket add BlackSharp.UI.Avalonia --version 1.3.2
#r "nuget: BlackSharp.UI.Avalonia, 1.3.2"
#:package BlackSharp.UI.Avalonia@1.3.2
#addin nuget:?package=BlackSharp.UI.Avalonia&version=1.3.2
#tool nuget:?package=BlackSharp.UI.Avalonia&version=1.3.2
<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>
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 | Versions 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. |
-
net10.0
- Avalonia (>= 12.1.6)
- Avalonia.Desktop (>= 12.1.6)
- Avalonia.Fonts.Inter (>= 12.1.6)
- Avalonia.Themes.Fluent (>= 12.1.6)
- BlackSharp.Core (>= 1.3.2)
- BlackSharp.MVVM (>= 1.3.2)
- Tmds.DBus.Protocol (>= 0.95.2)
- Xaml.Behaviors (>= 12.1.5)
-
net11.0
- Avalonia (>= 12.1.6)
- Avalonia.Desktop (>= 12.1.6)
- Avalonia.Fonts.Inter (>= 12.1.6)
- Avalonia.Themes.Fluent (>= 12.1.6)
- BlackSharp.Core (>= 1.3.2)
- BlackSharp.MVVM (>= 1.3.2)
- Tmds.DBus.Protocol (>= 0.95.2)
- Xaml.Behaviors (>= 12.1.5)
-
net8.0
- Avalonia (>= 12.1.6)
- Avalonia.Desktop (>= 12.1.6)
- Avalonia.Fonts.Inter (>= 12.1.6)
- Avalonia.Themes.Fluent (>= 12.1.6)
- BlackSharp.Core (>= 1.3.2)
- BlackSharp.MVVM (>= 1.3.2)
- Tmds.DBus.Protocol (>= 0.95.2)
- Xaml.Behaviors (>= 12.1.5)
-
net9.0
- Avalonia (>= 12.1.6)
- Avalonia.Desktop (>= 12.1.6)
- Avalonia.Fonts.Inter (>= 12.1.6)
- Avalonia.Themes.Fluent (>= 12.1.6)
- BlackSharp.Core (>= 1.3.2)
- BlackSharp.MVVM (>= 1.3.2)
- Tmds.DBus.Protocol (>= 0.95.2)
- Xaml.Behaviors (>= 12.1.5)
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 |