SpectriumLive.Styles 1.11.2

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

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 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
1.11.2 126 11/2/2026
1.11.1 97 11/2/2026
1.11.0 96 11/2/2026
1.10.6 278 11/14/2025
1.10.5 168 11/8/2025
1.10.4 168 11/8/2025
1.10.3 200 10/20/2025
1.10.2 156 10/18/2025
1.10.1 144 10/18/2025
1.10.0 154 10/18/2025

Updated documentation, search tags, repository metadata and modern WPF styles for .NET 10.0.