hdframe 1.0.0
dotnet add package hdframe --version 1.0.0
NuGet\Install-Package hdframe -Version 1.0.0
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="hdframe" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="hdframe" Version="1.0.0" />
<PackageReference Include="hdframe" />
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 hdframe --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: hdframe, 1.0.0"
#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 hdframe@1.0.0
#: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=hdframe&version=1.0.0
#tool nuget:?package=hdframe&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HDFrame
Modern Windows Forms UI framework. Package id: hdframe (nuget.org).
Features
.css.hdscs— CSS-like styles for C# controls viaHdOp.hdcs— declarative component trees- Controls: Button, Card, Input, Nav, Modal, Badge, Avatar, Switch, Tabs, Sidebar, Progress, IconButton, Toast
- 170+ icons in
assets/icons(+ embedded resources) - Light & dark themes
Install
dotnet add package hdframe
Quick start
using HDFrame;
using HDFrame.Assets;
using HDFrame.Controls;
using HDFrame.Css;
using HDFrame.Hdcs;
// Load theme (.css.hdscs → HDFrame CSS)
HdStyleSheet.Load("styles/theme.css.hdscs");
// or: HdApplication.UseEmbeddedTheme("theme.css.hdscs");
var form = new Form { Text = "My App", Size = new Size(1000, 640) };
HdApplication.StyleForm(form);
// Apply CSS class (op = style operation ke control C#)
var btn = new HdButton { Text = "Get Started", Location = new Point(24, 24) };
HdOp.Apply(btn, "btn btn-primary");
// Icon from assets
var iconBtn = new HdIconButton {
Icon = HdIconCatalog.Get("home"),
Location = new Point(180, 24)
};
// Declarative UI from .hdcs
var hero = HdcsLoader.Load("components/hero.hdcs");
hero.Location = new Point(24, 90);
form.Controls.Add(btn);
form.Controls.Add(iconBtn);
form.Controls.Add(hero);
Application.Run(form);
File types
| Extension | Role |
|---|---|
.css.hdscs |
HDFrame CSS — variables, selectors, properties. Dipakai di C# lewat HdOp.Apply |
.hdcs |
Component tree (type, props, children, class) → HdcsLoader |
Contoh .css.hdscs
:root { --primary: #6366f1; }
.btn-primary {
background: var(--primary);
color: #ffffff;
border-radius: 10px;
height: 42px;
}
HdOp.Apply(myButton, "btn btn-primary"); // op CSS → control
HdOp.Set(myButton, "border-radius", "16px");
Contoh .hdcs
Card class="card" width=380 height=200 {
Label class="title" text="Hello HDFrame" x=20 y=20
Button class="btn btn-primary" text="OK" x=20 y=80 width=120 height=42
}
Controls
HdButton HdCard HdPanel HdTextBox HdLabel HdBadge HdAvatar
HdSwitch HdNavBar HdSidebar HdModal HdTabs HdIconButton
HdProgress + HdToast.Show(form, "Saved!")
Icons
var img = HdAssets.GetImage("icons/home.png");
// or
var img2 = HdIconCatalog.Get("settings");
foreach (var name in HdIconCatalog.Names()) { /* ... */ }
Demo
dotnet run --project samples/HDFrame.Demo -c Release
Publish (nuget.org)
$env:NUGET_API_KEY = "your-key-from-nuget.org"
.\publish-nuget.ps1
License
MIT
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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 |
|---|---|---|
| 1.0.0 | 123 | 7/25/2026 |
v1.0.0 — Modern WinForms UI, .css.hdscs + HdOp, .hdcs loader, 170+ icons, demo controls.