Kt Panel

A modern, fully customizable panel control for WinForms. It acts as an advanced container for grouping and styling related content.

🟣 PREMIUM

This component is only available in the Premium version of KimTools.

Get KimTools

kt-panel-light kt-panel-dark

🟢 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.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = (
        KtColor.PRIMARY % 50,
        KtColor.SECONDARY % 50
    ),
    Border = (
        KtColor.PRIMARY,
        KtColor.SECONDARY,
        45
    ),
    BorderRadius = .5f,
    BorderWidth = 3,
    BorderEdges =
    {
        TopLeft = true,
        TopRight = true,
        BottomLeft = true,
        BottomRight = false
    },
    BorderStyle = DashStyle.DashDotDot,
    PatternStyle = HatchStyle.LargeConfetti,
    PatternColor = KtColor.CONTENT % 10
};
Background Kt-Brush Sets the panel’s background color.

Solid Background

Supports plain System.Drawing.Color, dynamic KtColor, hex values (#1E90FF), or web-formatted colors (rgb / hsl).

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.PRIMARY,
    Border = KtBrush.None
};
Auto
Light
Dark

solid-background-light solid-background-dark

solid-background-light

solid-background-dark

BackgroundMargin Padding Sets the panel’s border Margin.

Background Margin

Defines internal padding offsets applied exclusively to the background fill brush.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.PRIMARY,
    BackgroundMargin = new Padding(10, 10, 0, 0),
    Border = KtColor.SECONDARY,
    BorderWidth = 2
};
Auto
Light
Dark

background-margin-light background-margin-dark

background-margin-light

background-margin-dark

Gradient Background with KtColor

Pass a tuple defining start color, stop color, and an optional gradient angle (0-360 degrees).

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = (
        startColor: KtColor.PRIMARY[50],
        stopColor: KtColor.SECONDARY[50],
        angle: 45
    ),
    Border = KtBrush.None
};
Auto
Light
Dark

gradient-background-light gradient-background-dark

gradient-background-light

gradient-background-dark

Gradient Background with System.Drawing.Color

Mix standard GDI system colors or combine them with semantic KtColor instances.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = (
        startColor: Color.CadetBlue,
        stopColor: Color.DodgerBlue,
        angle: 90
    ),
    Border = KtBrush.None
};
Auto
Light
Dark

system-color-gradient-light system-color-gradient-dark

system-color-gradient-light

system-color-gradient-dark

Translucent Gradient Background

Apply transparency to colors using the % operator on KtColor instances within gradient tuples.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = (
        startColor: KtColor.Teal % 40,  // 40% Opacity
        stopColor: KtColor.Emerald % 60 // 60% Opacity
    ),
    Border = KtBrush.None
};
Auto
Light
Dark

opacity-gradient-light opacity-gradient-dark

opacity-gradient-light

opacity-gradient-dark

Border Kt-Brush Sets the panel’s border color.

Solid Border Color

Assign a single KtColor or Color to the Border property for a uniform outline.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = KtColor.PRIMARY,
    BorderWidth = 2
};
Auto
Light
Dark

solid-border-light solid-border-dark

solid-border-light

solid-border-dark

BorderWidth float Sets the panel’s border thickness.

BorderWidth

Defines the thickness of the panel border stroke.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = KtColor.PRIMARY,
    BorderWidth = 4
};
Auto
Light
Dark

border-width-light border-width-dark

border-width-light

border-width-dark

BorderMargin Padding Sets the panel’s border Margin.

BorderMargin

Applies positional offsets to the border rendering area relative to the control bounds.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = KtColor.PRIMARY,
    BorderWidth = 2,
    BorderMargin = new Padding(10, 10, 0, 0)
};
Auto
Light
Dark

border-margin-light border-margin-dark

border-margin-light

border-margin-dark

Gradient Border Brush

Construct multi-tone borders using tuple definitions containing start color, stop color, and angle.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = (
        startColor: KtColor.PRIMARY,
        stopColor: KtColor.SECONDARY,
        angle: 90
    ),
    BorderWidth = 4
};
Auto
Light
Dark

gradient-border-light gradient-border-dark

gradient-border-light

gradient-border-dark

BorderStyle DashStyle Sets the panel’s border style.

BorderStyle Variants

Configure standard GDI dash patterns using System.Drawing.Drawing2D.DashStyle.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = KtColor.PRIMARY,
    BorderWidth = 3,
    BorderStyle = DashStyle.DashDot
};
Auto
Light
Dark

border-styles-light border-styles-dark

border-styles-light

border-styles-dark

Dash Styles Gallery
Solid

border-styles_solid-light border-styles_solid-dark

Dash

border-styles_dash-light border-styles_dash-dark

Dot

border-styles_dot-light border-styles_dot-dark

DashDot

border-styles_dashdot-light border-styles_dashdot-dark

DashDotDot

border-styles_dashdotdot-light border-styles_dashdotdot-dark

BorderEdges Edges Sets the Border edges.

Selective BorderEdges

Toggle visibility for specific border edges individually using the BorderEdges sub-properties.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.Transparent,
    Border = KtColor.ERROR,
    BorderWidth = 3,
    BorderEdges =
    {
        TopLeft = true,
        TopRight = false,
        BottomLeft = true,
        BottomRight = false
    }
};
Auto
Light
Dark

border-edges-light border-edges-dark

border-edges-light

border-edges-dark

BorderRadius float Sets the panel’s border radius.

Corner Rounding with BorderRadius

Control relative corner rounding with a floating point ratio value.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.PRIMARY % 20,
    Border = KtColor.PRIMARY,
    BorderWidth = 2,
    BorderRadius = 0.75f // Fractional rounding scale
};
Auto
Light
Dark

border-radius-light border-radius-dark

border-radius-light

border-radius-dark

PatternStyle HatchStyle Nullable Sets the Pattern style.

Pattern Style & Color

Overlay HatchStyle patterns over solid or gradient background fills. Set PatternStyle to null to disable.

🔴 🟡 🟢
var panel = new KtPanel
{
    Background = KtColor.PRIMARY,
    PatternColor = KtColor.SECONDARY % 50,
    PatternStyle = HatchStyle.LargeConfetti,
    Border = KtBrush.Solid,
    BorderRadius = 0f
};
Auto
Light
Dark

background-patterns-light background-patterns-dark

background-patterns-light

background-patterns-dark

Pattern styles
Horizontal

background-patterns_horizontal-light background-patterns_horizontal-dark

Horizontal

background-patterns_horizontal-light background-patterns_horizontal-dark

Vertical

background-patterns_vertical-light background-patterns_vertical-dark

ForwardDiagonal

background-patterns_forwarddiagonal-light background-patterns_forwarddiagonal-dark

BackwardDiagonal

background-patterns_backwarddiagonal-light background-patterns_backwarddiagonal-dark

LargeGrid

background-patterns_largegrid-light background-patterns_largegrid-dark

LargeGrid

background-patterns_largegrid-light background-patterns_largegrid-dark

LargeGrid

background-patterns_largegrid-light background-patterns_largegrid-dark

DiagonalCross

background-patterns_diagonalcross-light background-patterns_diagonalcross-dark

Percent05

background-patterns_percent05-light background-patterns_percent05-dark

Percent10

background-patterns_percent10-light background-patterns_percent10-dark

Percent20

background-patterns_percent20-light background-patterns_percent20-dark

Percent25

background-patterns_percent25-light background-patterns_percent25-dark

Percent30

background-patterns_percent30-light background-patterns_percent30-dark

Percent40

background-patterns_percent40-light background-patterns_percent40-dark

Percent50

background-patterns_percent50-light background-patterns_percent50-dark

Percent60

background-patterns_percent60-light background-patterns_percent60-dark

Percent70

background-patterns_percent70-light background-patterns_percent70-dark

Percent75

background-patterns_percent75-light background-patterns_percent75-dark

Percent80

background-patterns_percent80-light background-patterns_percent80-dark

Percent90

background-patterns_percent90-light background-patterns_percent90-dark

LightDownwardDiagonal

background-patterns_lightdownwarddiagonal-light background-patterns_lightdownwarddiagonal-dark

LightUpwardDiagonal

background-patterns_lightupwarddiagonal-light background-patterns_lightupwarddiagonal-dark

DarkDownwardDiagonal

background-patterns_darkdownwarddiagonal-light background-patterns_darkdownwarddiagonal-dark

DarkUpwardDiagonal

background-patterns_darkupwarddiagonal-light background-patterns_darkupwarddiagonal-dark

WideDownwardDiagonal

background-patterns_widedownwarddiagonal-light background-patterns_widedownwarddiagonal-dark

WideUpwardDiagonal

background-patterns_wideupwarddiagonal-light background-patterns_wideupwarddiagonal-dark

LightVertical

background-patterns_lightvertical-light background-patterns_lightvertical-dark

LightHorizontal

background-patterns_lighthorizontal-light background-patterns_lighthorizontal-dark

NarrowVertical

background-patterns_narrowvertical-light background-patterns_narrowvertical-dark

NarrowHorizontal

background-patterns_narrowhorizontal-light background-patterns_narrowhorizontal-dark

DarkVertical

background-patterns_darkvertical-light background-patterns_darkvertical-dark

DarkHorizontal

background-patterns_darkhorizontal-light background-patterns_darkhorizontal-dark

DashedDownwardDiagonal

background-patterns_dasheddownwarddiagonal-light background-patterns_dasheddownwarddiagonal-dark

DashedUpwardDiagonal

background-patterns_dashedupwarddiagonal-light background-patterns_dashedupwarddiagonal-dark

DashedHorizontal

background-patterns_dashedhorizontal-light background-patterns_dashedhorizontal-dark

DashedVertical

background-patterns_dashedvertical-light background-patterns_dashedvertical-dark

SmallConfetti

background-patterns_smallconfetti-light background-patterns_smallconfetti-dark

LargeConfetti

background-patterns_largeconfetti-light background-patterns_largeconfetti-dark

ZigZag

background-patterns_zigzag-light background-patterns_zigzag-dark

Wave

background-patterns_wave-light background-patterns_wave-dark

DiagonalBrick

background-patterns_diagonalbrick-light background-patterns_diagonalbrick-dark

HorizontalBrick

background-patterns_horizontalbrick-light background-patterns_horizontalbrick-dark

Weave

background-patterns_weave-light background-patterns_weave-dark

Plaid

background-patterns_plaid-light background-patterns_plaid-dark

Divot

background-patterns_divot-light background-patterns_divot-dark

DottedGrid

background-patterns_dottedgrid-light background-patterns_dottedgrid-dark

DottedDiamond

background-patterns_dotteddiamond-light background-patterns_dotteddiamond-dark

Shingle

background-patterns_shingle-light background-patterns_shingle-dark

Trellis

background-patterns_trellis-light background-patterns_trellis-dark

Sphere

background-patterns_sphere-light background-patterns_sphere-dark

SmallGrid

background-patterns_smallgrid-light background-patterns_smallgrid-dark

SmallCheckerBoard

background-patterns_smallcheckerboard-light background-patterns_smallcheckerboard-dark

LargeCheckerBoard

background-patterns_largecheckerboard-light background-patterns_largecheckerboard-dark

OutlinedDiamond

background-patterns_outlineddiamond-light background-patterns_outlineddiamond-dark

SolidDiamond

background-patterns_soliddiamond-light background-patterns_soliddiamond-dark

API Reference

Background Kt-Brush Sets the panel’s background color.
Border Kt-Brush Sets the panel’s border color.
BorderEdges Edges Sets the Border edges.
PatternColor Kt-Color Sets the Pattern color.
Foreground Kt-Color Sets the Foreground.
BorderStyle DashStyle Sets the panel’s border style.
PatternStyle HatchStyle Nullable Sets the Pattern style.
BorderRadius float Sets the panel’s border radius.
BorderWidth float Sets the panel’s border thickness.
BackgroundMargin Padding Sets the panel’s border Margin.
BorderMargin Padding Sets the panel’s border Margin.