ModernTrackBar.WinForms
1.0.1
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
<PackageReference Include="ModernTrackBar.WinForms" Version="1.0.1" />
<PackageVersion Include="ModernTrackBar.WinForms" Version="1.0.1" />
<PackageReference Include="ModernTrackBar.WinForms" />
paket add ModernTrackBar.WinForms --version 1.0.1
#r "nuget: ModernTrackBar.WinForms, 1.0.1"
#:package ModernTrackBar.WinForms@1.0.1
#addin nuget:?package=ModernTrackBar.WinForms&version=1.0.1
#tool nuget:?package=ModernTrackBar.WinForms&version=1.0.1
ModernTrackBar.WinForms
<div align="center">
<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 Frameworkup through modern.NET Windowsenvironments.
🎨 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
- Right-click your project solution and select Manage NuGet Packages.
- Search for
ModernTrackBar.WinFormsunder the Browse tab. - Select the latest stable version and click Install.
⚡ Quick Start
🏎️ Designer Workflow
- Open your Windows Forms project workspace in Visual Studio.
- Open your target
FormorUserControlfile within the Design View canvas. - Open your Toolbox (
Ctrl + Alt + X) and locate ModernTrackBar. - Drag and drop the control directly onto the design interface canvas.
- 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 | Versions 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. |
-
.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.
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.