CSX-Forms
Select image to view full size
A C# scripting library that turns plain CSX scripts into styled WinForms applications with DPI scaling, dark mode, and rounded corners.
My role
Solo developer.
What it solves
C# scripting with dotnet-script is convenient for utilities, but CSX files have no easy way to get a presentable windowed UI without dragging in a full project.
What it delivers
- Windowed C# scripting utilities that match the Windows theme without any project scaffolding.
Key decisions
- Packaged WinForms setup, theming, and keyboard shortcut handling into a loadable Window.csx so a script stays a script.
Explore the technical details
Capabilities
- WindowManager class for building forms from CSX scripts with a single
- Automatic DPI scaling based on system settings
- Dark mode detection and theming that follows the Windows theme
- Rounded corners on Windows 10 and above
- Worked examples in the repository's examples directory
- Custom colour themes and keyboard shortcuts for script-driven forms
