Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.

v1.8.6: Industrial Controls Partial Refactoring & Readout Jitter Elimination

Choose a tag to compare

@kzxl kzxl released this 22 Sep 16:24
· 152 commits to main since this release

ZeroUI v1.8.6 Release Notes

🎯 Highlights

ZeroUI v1.8.6 broadens the industrial telemetry stability foundation established in v1.8.5. This release eliminates digital readout horizontal jumping and jitter across all industrial gauges and indicators, applies High-DPI Per-Monitor V2 auto-scaling across remaining industrial controls via ControlBase, and restructures massive components into clean, modular partial classes.


1. ⏱️ Comprehensive Readout Jitter & Jitter Elimination

  • LinearGauge (WPF & WinForms):
    • Added configurable ValueFormat (defaults to "0.#" for 100% backward compatibility).
    • Added UseTabularReadout (default true) using the Tabular Digit Spacing Engine, rendering numbers in fixed-pitch character cells to eliminate horizontal jitter when passing integer thresholds with proportional fonts (Segoe UI).
    • Supports custom fixed-precision formatting (e.g. "0.0", "0.00", "F1") with safe fallback to "0.#" on invalid or blank format strings.
  • SevenSegment (WinForms):
    • Fixed-pitch segmented cell typography ensuring steady numeric alignment without visual jump.
  • DigitalIndicator & ProductionCounter (WinForms):
    • Added safe invariant culture fallback for numerical readouts.
    • Added PercentFormat to ProductionCounter for completion percentage readouts.
  • CircularGauge & PidFaceplate (WinForms):
    • Added ValueFormat property with safe format fallback for process variables, setpoints, and OEE metrics.

2. 🖥️ Extended WinForms High-DPI Per-Monitor V2 Scaling

  • Modernized remaining industrial controls to inherit from ControlBase instead of raw System.Windows.Forms.Control:
    • LinearGauge: Ticks, bar tracks, margins, and readout text scale with DpiScale.
    • SevenSegment: Segment thickness, bevel polygons, corner gaps, and frame borders dynamically scale with DpiScale.
    • DigitalIndicator: Beveled panels, tag labels, digital readout, and unit positioning scale dynamically.
    • ProductionCounter: Scoreboard container, metric columns, headers, values, and target progress bar scale with DpiScale.
    • CircularGauge: Track ring thickness, arc bounds, and center value text scale with DpiScale. Resolved static theme change event leak.
    • PidFaceplate: Header strip, Auto/Man/Cascade mode buttons, +/- setpoint step buttons, dual PV/SP vertical comparison bars, scale axis ticks, and tuning indicators scale with DpiScale.

3. 🏗️ Component Architecture & Partial Classes

Refactored large monolithic component files into clean, logical partial classes separating state, properties, and SCADA bindings from GDI+/WPF rendering engines:

  • LinearGauge (WPF & WinForms): Split into <Control>.cs and <Control>.Rendering.cs.
  • SevenSegment (WinForms): Split from a 977-line file into SevenSegment.cs (~380 lines) and SevenSegment.Rendering.cs (~580 lines).
  • PidFaceplate (WinForms): Split from a 410-line file into PidFaceplate.cs (~220 lines) and PidFaceplate.Rendering.cs (~210 lines).

📦 NuGet Packages Released

  • ZeroUI.Core 1.8.6
  • ZeroUI.WinForms 1.8.6
  • ZeroUI.Wpf 1.8.6

🧪 Automated Verification

  • 63/63 Desktop Unit Tests passed (including new IndustrialReadoutRefactorTests).
  • 539/539 Core Tests passed (100% pass rate).
  • Full solution build: 0 Errors, 0 Warnings across .NET 8.0, .NET Framework 4.6.2, and .NET Standard 2.0.