Kt Window
A modern, theme-aware WinForms window with customizable backgrounds, styling, and layout support.

🟢 DESIGNER SUPPORT
This control has full Visual Studio design-time support.
Drag it from the Toolbox onto your form, customize its properties directly in the Properties window, and KimTools will generate the corresponding code for you.
Theme-aware gradient
Use semantic KtColor values to create a background that follows the KimTools theme.
window.Background =
(
startColor: KtColor.BASE_1,
stopColor: KtColor.BASE_3,
angle: 45
);



Background
| Background | Kt-Brush | Sets the Background. |
|---|
Solid background
Set a single KtColor to create a solid window background.
window.Background = KtColor.PRIMARY[50];



Gradient background
Combine two KtColor values to create a gradient background.
window.Background =
(
KtColor.PRIMARY[50],
KtColor.SECONDARY[50]
);



Gradient angle
Set the gradient direction by supplying an angle (0-360 degrees).
window.Background =
(
KtColor.BASE,
KtColor.Amber,
90
);



Semantic colors
Use KimTools semantic theme variables so the background follows the active theme.
window.Background = KtColor.ACCENT;



Color shades
Use the color indexer to select a specific lightness level.
window.Background = KtColor.SECONDARY[20];



Custom color
Assign a hexadecimal color directly when a semantic theme color is not required.
window.Background = Color.Teal;
//or window.Background = (KtColor)"#3B82F6";



Pattern styles
| PatternStyle | HatchStyle Nullable | Sets the Pattern style. |
|---|
Pattern Style | Color
Supports patterns types which blend with the Background
set PatternStyle to null to disable patterns.
// Use % operator to apply transparency to Kt-Color
window.Background = KtColor.BASE_1; // Solid Color or Gradient
window.PatternColor = KtColor.BASE_3; // Solid Color or
window.PatternStyle = HatchStyle.LargeConfetti;



Pattern styles
























































API Reference
| Background | Kt-Brush | Sets the Background. |
| PatternColor | Kt-Color | Sets the Pattern color. |
| Foreground | Kt-Color | Sets the Foreground. |
| Drag | Boolean | Sets the Drag. |
| Composited | Boolean | Enables WS_EX_COMPOSITED to reduce flicker at runtime. |
| Shadow | Boolean | Enables Shadows on borderless window. |
| PatternStyle | HatchStyle Nullable | Sets the Pattern style. |
| Text | String | The text associated with the control. |