ModernTrackBar.WinForms 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ModernTrackBar.WinForms --version 1.0.1
                    
NuGet\Install-Package ModernTrackBar.WinForms -Version 1.0.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="ModernTrackBar.WinForms" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModernTrackBar.WinForms" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ModernTrackBar.WinForms" />
                    
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 ModernTrackBar.WinForms --version 1.0.1
                    
#r "nuget: ModernTrackBar.WinForms, 1.0.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 ModernTrackBar.WinForms@1.0.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=ModernTrackBar.WinForms&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ModernTrackBar.WinForms&version=1.0.1
                    
Install as a Cake Tool

ModernTrackBar.WinForms

<div align="center">

NuGet Version NuGet Downloads License: MIT .NET Target .NET Framework Target

<br /><br />

<img src="https://raw.githubusercontent.com/COxRIPMIZO/GRIT.UI.Controls.Assets/main/WinForms/ModernTrackBar.WinForms/ModernTrackerBar.gif" alt="ModernTrackBar Demo" width="750" />

<p align="center"> <b>A highly polished, high-performance, and deeply customizable TrackBar / Slider control for Windows Forms applications.</b> </p>

ModernTrackBar.WinForms completely replaces the legacy, rigid system control with ultra-smooth, anti-aliased GDI+ vector mapping, beautiful linear gradients, hardware-friendly double buffering, dynamic value displays, and a robust theme engine built for modern desktop design ecosystems.

<p align="center"> <a href="#🎨-built-in-themes">Themes</a> • <a href="#📦-installation">Installation</a> • <a href="#⚡-quick-start">Quick Start</a> • <a href="#🔧-api-reference">API Reference</a> </p>


</div>

🚀 Key Features

  • ✨ Advanced GDI+ Drawing: Fully anti-aliased geometry with crisp, hardware-accelerated double-buffered painting to entirely eliminate control flicker.
  • 🎨 Dynamic Linear Gradients: Create gorgeous multi-color tracks that shift visually alongside the slider's thumb.
  • 💬 Live Floating Value Display: An interactive real-time text layout engine that tracks and previews numeric value changes dynamically.
  • ⚡ Responsive Micro-Interactions: Polished visual feedback animations engineered for hover, focus, press, and active control states.
  • 🎭 Flexible Theme Engine: Ship instantly using beautiful built-in visual profiles or unlock full custom token configurations.
  • 🛠️ First-Class Designer Support: Drop it directly into the Visual Studio Forms Designer canvas with full property serialization support.
  • 📦 Zero External Dependencies: Built natively using standard .NET, System.Drawing, and WinForms APIs without heavy UI wrappers.
  • 🔄 Broad Target Compatibility: Native multi-targeting for classic .NET Framework up through modern .NET Windows environments.

🎨 Built-in Themes

Theme Profile Palette Concept Recommended Context / Visual Intent
NeonBlue #00F0FF / Cyan Core Futuristic, technical dashboards, gaming overlays, and cyber-style interfaces.
EmeraldGreen #00F260 / Eco Accent Modern interfaces requiring crisp, vibrant energy or state configurations.
DarkMode #2D2D30 / Matte Gray Minimalist dark layouts engineered tailored specifically for dark-mode environments.
LightMode #E0E0E0 / Soft Platinum Clean, accessible traditional light Windows Forms interface panels.
GRITSpecial Brand Signature Premium, luxury dark-gold accents explicitly tailored for GRIT UI designs.
Custom Fully Unlocked Manually overwrite colors, corner radii, track offsets, and custom typography.

📦 Installation

.NET CLI

dotnet add package ModernTrackBar.WinForms

Package Manager Console

Install-Package ModernTrackBar.WinForms

Visual Studio GUI

  1. Right-click your project solution and select Manage NuGet Packages.
  2. Search for ModernTrackBar.WinForms under the Browse tab.
  3. Select the latest stable version and click Install.

⚡ Quick Start

🏎️ Designer Workflow

  1. Open your Windows Forms project workspace in Visual Studio.
  2. Open your target Form or UserControl file within the Design View canvas.
  3. Open your Toolbox (Ctrl + Alt + X) and locate ModernTrackBar.
  4. Drag and drop the control directly onto the design interface canvas.
  5. Tailor performance and visual style properties live directly through the native Properties Window.

💻 Programmatic Workflow

using System;
using System.Drawing;
using System.Windows.Forms;
using GRIT.UI.Controls.WinForms;

namespace MyDashboardApp
{
    public partial class MainDashboard : Form
    {
        private ModernTrackBar _volumeSlider;

        public MainDashboard()
        {
            InitializeComponent();
            InitializeCustomControls();
        }

        private void InitializeCustomControls()
        {
            // Instantiate and configure visual parameters
            _volumeSlider = new ModernTrackBar
            {
                Location = new Point(30, 45),
                Size = new Size(350, 60),
                Minimum = 0,
                Maximum = 100,
                Value = 75,
                Theme = TrackBarTheme.NeonBlue,
                ShowValueTooltip = true
            };

            // Bind native state interactions 
            _volumeSlider.ValueChanged += VolumeSlider_ValueChanged;

            // Mount directly into the form control tree hierarchy
            Controls.Add(_volumeSlider);
        }

        private void VolumeSlider_ValueChanged(object sender, EventArgs e)
        {
            Console.WriteLine($"System Volume adjusted to: {_volumeSlider.Value}%");
        }
    }
}

🔧 API Reference

Configuring the Range Matrix

Easily define control limitations, track boundaries, and baseline default offsets directly:

_volumeSlider.Minimum = 0;   // Define the lowest baseline bounds value
_volumeSlider.Maximum = 1000; // Define the absolute target peak value
_volumeSlider.Value = 500;   // Assign the active slider handle location value

Theme Engine Control

Instantly swap presets programmatic tracking behaviors seamlessly:

// Apply pre-configured visual style mappings
_volumeSlider.Theme = TrackBarTheme.EmeraldGreen;

// Explicitly unlock structural theme properties for runtime overrides
_volumeSlider.Theme = TrackBarTheme.Custom;

Floating Tooltip Interactivity

Toggle the real-time layout value indicator tracking behavior during user drag interaction steps:

_volumeSlider.ShowValueTooltip = true;  // Renders the floating tooltip on interaction
_volumeSlider.ShowValueTooltip = false; // Hides the tooltip completely

⚙️ Specifications

Technical Metric Underlying Architecture Profile
Package Identity ModernTrackBar.WinForms
Component Type Windows Forms UI Custom Control Framework
Language Target C# (Optimized for .NET Framework 4.7.2+ & .NET 6.0+)
Rendering Engine Anti-Aliased Surface Vector Paint Mapping (GDI+)
Target Platforms Microsoft Windows Desktop Environment (WinForms)
Dependencies None (System.Windows.Forms Base Assembly Only)

📄 License

This framework utility is securely distributed under the MIT License. Check out the accompanying LICENSE document asset within the repository for commercial application rights and legal usage boundaries.


<div align="center"> <h3>Developed under the GRIT Ecosystem</h3> <p><b>Growth • Resilience • Intensity • Tenacity</b></p> <i>Building zero-dependency, ultra-performance developer workflows and premium component layouts.</i> </div>

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net8.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
2.0.0 85 9/20/2026
1.0.2 90 9/12/2026
1.0.1 81 9/12/2026
1.0.0 101 9/12/2026

v1.0.1 Release:
- Fixed designer initialization issue where labels appeared blank upon dragging from toolbox.
- Fixed theme preset behavior to prevent unintentional overrides to Custom theme.
- Added [DefaultValue] and [Category] metadata attributes for clean Visual Studio property grid serialization.
- Hardened GDI+ painting against zero-dimension exceptions in LinearGradientBrush and GetRoundedRect.
- Guarded against divide-by-zero errors in unit conversion helpers.
- Added IDisposable implementation for label fonts to eliminate GDI resource leaks.
- Updated documentation with live animated preview demo and corrected badge endpoints.