Siticone Logo
Siticone UI
DOCS
v2025.12.15
Docs Borderless Form

Siticone Borderless Form

The SiticoneBorderlessForm component transforms standard WinForms windows into modern, sleek, borderless interfaces. It handles all the complexities of custom window management, including drag-to-move functionality, drop shadows, rounded corners, and a customizable navigation bar area. Simply drop this component onto your form to modernize its appearance instantly.

Core Configuration

Properties to customize the fundamental behavior and look of the borderless form.

Property Type Description & Usage Example
TargetForm Form borderless.TargetForm = this; The Form instance to which the borderless styling will be applied. Usually set to 'this' in the constructor.
CornerRadius int borderless.CornerRadius = 20; Rounds the corners of the entire window. Higher values create a smoother, more pill-like shape.
DropShadow bool borderless.DropShadow = true; Adds a professional drop shadow effect around the form borders (Windows DWM shadow).

Dragging & Interaction

Configure how users can move the window around the desktop.

Property Type Description & Usage Example
CanDrag bool borderless.CanDrag = true; Enables moving the window by clicking and dragging.
FormDragArea DragArea borderless.FormDragArea = DragArea.NavBar; Defines the draggable zone: NavBar (top strip only) or EntireForm (click anywhere to drag).
OpacityDuringDrag double borderless.OpacityDuringDrag = 0.85; Sets the transparency level (0.0 - 1.0) while the user is dragging the window, creating a modern "glass" feel.

Settings for the top area of the form, typically used for title text and control buttons.

Property Type Description & Usage Example
ShowNavBar bool borderless.ShowNavBar = true; Toggles the visibility of the colored header strip.
NavBarHeight int borderless.NavBarHeight = 60; The height in pixels of the top navigation area.
NavBarColor Color borderless.NavBarColor = Color.FromArgb(45, 45, 48); The background color of the navigation bar.

Public Methods

Programmatic control over the component's functionality.

ApplyChanges()
// Forces a re-application of all styles (border, shadow, radius) to the parent form.
// Useful if the form geometry changes dynamically.
siticoneBorderlessForm1.ApplyChanges();
RestoreOriginalFormState()
// Reverts the form to its standard Windows appearance (with title bar and borders).
siticoneBorderlessForm1.RestoreOriginalFormState();

Designer Experience

The component includes a comprehensive Smart Tag panel for rapid UI development.

Category Features
Theme Presets Instant styling options:
  • Modern: Clean, dark header, rounded corners.
  • Fluent Light/Dark: Windows 11-style aesthetics.
  • Acrylic: Semi-transparent effects (where supported).
  • Minimal: No header, just content with shadow.
Quick Actions Toggle Drag / Shadow / NavBar: Immediate boolean switches.
Copy/Paste Settings: Replicate designs across forms easily.

Detailed Usage Examples

Example 1: Modern Dashboard Window

Creating a sleek, rounded application window with a distinct header.

C# - Dashboard Setup
public DashboardForm()
{
                InitializeComponent();
    
                var borderless = new SiticoneBorderlessForm(this);
    
                // Modern Geometry
    borderless.CornerRadius = 12;
    borderless.DropShadow = true;
    
                // Navigation Header
    borderless.ShowNavBar = true;
    borderless.NavBarHeight = 50;
    borderless.NavBarColor = Color.FromArgb(30, 30, 35);
    
                // Interaction
    borderless.CanDrag = true;
    borderless.FormDragArea = SiticoneBorderlessForm.DragArea.NavBar;
    borderless.OpacityDuringDrag = 0.95;
}

Example 2: Floating Tool Window

A minimal, borderless tool window that can be dragged from anywhere.

C# - Tool Window
public ToolPaletteForm()
{
                InitializeComponent();
    
                var borderless = new SiticoneBorderlessForm(this);
    
                // Minimalist look
    borderless.ShowNavBar = false; // No visible header
    borderless.CornerRadius = 5;
    borderless.DropShadow = true;
    
                // Allow dragging by clicking anywhere on the form body
    borderless.FormDragArea = SiticoneBorderlessForm.DragArea.EntireForm;
}