SpectriumLive.Styles
1.11.2
dotnet add package SpectriumLive.Styles --version 1.11.2
NuGet\Install-Package SpectriumLive.Styles -Version 1.11.2
<PackageReference Include="SpectriumLive.Styles" Version="1.11.2" />
<PackageVersion Include="SpectriumLive.Styles" Version="1.11.2" />
<PackageReference Include="SpectriumLive.Styles" />
paket add SpectriumLive.Styles --version 1.11.2
#r "nuget: SpectriumLive.Styles, 1.11.2"
#:package SpectriumLive.Styles@1.11.2
#addin nuget:?package=SpectriumLive.Styles&version=1.11.2
#tool nuget:?package=SpectriumLive.Styles&version=1.11.2
SpectriumLive.Styles
<p align="center"> <a href="https://www.nuget.org/packages/SpectriumLive.Styles/"><img src="https://img.shields.io/nuget/v/SpectriumLive.Styles?style=flat-square&logo=nuget" alt="NuGet Version"></a> <a href="https://www.nuget.org/packages/SpectriumLive.Styles/"><img src="https://img.shields.io/nuget/dt/SpectriumLive.Styles?style=flat-square&logo=nuget" alt="NuGet Downloads"></a> <a href="https://dotnet.microsoft.com/"><img src="https://img.shields.io/badge/.NET-10.0-512BD4?style=flat-square" alt=".NET 10.0"></a> <a href="https://github.com/Dudziak07/SpectriumLive.Styles/actions/workflows/publish.yml"><img src="https://img.shields.io/github/actions/workflow/status/Dudziak07/SpectriumLive.Styles/publish.yml?style=flat-square&label=Publish" alt="Publish Status"></a> <a href="https://github.com/Dudziak07/SpectriumLive.Styles/blob/main/LICENSE.txt"><img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="License"></a> <a href="https://github.com/Dudziak07"><img src="https://img.shields.io/badge/Author-Filip%20Dudziec-purple?style=flat-square&logo=github" alt="Author Profile"></a> </p>
A sleek, lightweight, and modern WPF style library for .NET desktop applications. Originally crafted for the SpectriumLive application, these styles provide a consistent, dark/light themed, minimalist UI with zero external dependencies.
✨ Features
- 🎨 Dual Themes: Complete out-of-the-box support for both Dark and Light themes.
- ⚡ Lightweight & Fast: Pure XAML and native WPF styling without bulky third-party dependencies.
- 🔄 Runtime Switching: Seamlessly swap themes dynamically in code without restarting the application.
- 🧩 Pre-styled Controls:
- Buttons & RepeatButtons (hover, pressed, and focus visual states)
- Menus & ContextMenus (modern popups, submenus, checkmarks, separators, custom placement)
- ScrollBars & ScrollViewer (thin, clean modern scrollbars and thumbs)
- Sliders (custom track geometry and draggable thumb)
- ComboBoxes (flat, consistent drop-down controls)
- Built-in Converters (
BooleanToVisibilityConverter,MenuPlacementConverter,MenuArrowVisibilityConverter)
- 🚀 Targeting .NET 10: Built and optimized for .NET 10 Windows Desktop (.NET 9 is supported via versions
<= 1.11.0).
🚀 Installation
Install the package via NuGet:
.NET CLI
dotnet add package SpectriumLive.Styles
Package Manager Console
Install-Package SpectriumLive.Styles
PackageReference (csproj)
<PackageReference Include="SpectriumLive.Styles" Version="1.11.2" />
⚙️ Usage: How to Apply Styles
Merge the chosen theme and GlobalStyles.xaml in your App.xaml:
<Application x:Class="YourApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/SpectriumLive.Styles;component/Themes/DarkTheme.xaml" />
<ResourceDictionary Source="pack://application:,,,/SpectriumLive.Styles;component/Styles/GlobalStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
🌗 Switching Themes Dynamically in C#
You can easily switch between Light and Dark themes at runtime:
public static void SetTheme(bool isDark)
{
var themeUri = isDark
? new Uri("pack://application:,,,/SpectriumLive.Styles;component/Themes/DarkTheme.xaml")
: new Uri("pack://application:,,,/SpectriumLive.Styles;component/Themes/LightTheme.xaml");
var appResources = Application.Current.Resources.MergedDictionaries;
var currentTheme = appResources.FirstOrDefault(d =>
d.Source != null && (d.Source.OriginalString.Contains("DarkTheme.xaml") || d.Source.OriginalString.Contains("LightTheme.xaml")));
if (currentTheme != null)
{
appResources.Remove(currentTheme);
}
appResources.Insert(0, new ResourceDictionary { Source = themeUri });
}
📋 Compatibility
| SpectriumLive.Styles Version | Target Framework | Windows OS |
|---|---|---|
>= 1.11.1 |
.NET 10.0 (net10.0-windows) |
Windows 10+ (x64, arm64, x86) |
1.11.0 |
.NET 10.0 & .NET 9.0 | Windows 10+ |
1.10.x |
.NET 9.0 (net9.0-windows) |
Windows 10+ |
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the Issues Page.
📄 License
This project is licensed under the terms of the MIT License - see the LICENSE.txt file for details.
Copyright (c) 2025-2026 Filip Dudziec
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
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.
Updated documentation, search tags, repository metadata and modern WPF styles for .NET 10.0.