Skip to content

Commit 255a0e1

Browse files
995186-Resolve the ReadMe file length issue in this sample repository
1 parent 8b426b5 commit 255a0e1

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,48 @@
1-
# how-to-customize-the-tabs-in-in-winforms-tabcontrol
2-
This sample demonstrates how to customize the tabs in in Syncfusion WinForms TabControlAdv.
1+
# Customization in Windows Forms TabControl (TabControlAdv)
2+
A concise guide to customizing Syncfusion WinForms TabControlAdv appearance and behavior, including runtime tab renaming, drag-reorder, padding, mnemonic handling, border styles, page images (including animated GIFs), and preventing movement of specific tabs.
3+
4+
## Overview
5+
TabControlAdv offers Excel-like label editing, drag-and-drop tab reordering, flexible padding around text/images, mnemonic processing, configurable page borders, and image support on TabPages. The sections below show how to enable and customize each feature.
6+
7+
## Features
8+
- Rename tabs at runtime (LabelEdit)
9+
- Drag-reorder tabs (UserMoveTabs)
10+
- Adjust tab header padding
11+
- Enable/disable mnemonic processing (& as access key)
12+
- Border styles for TabPages and custom FixedSingle border color
13+
- Page images with adjustable size (supports animated GIF)
14+
- Prevent movement of specific tabs
15+
16+
## Renaming TabItems
17+
Enable Excel-like renaming by turning on LabelEdit. Users can right-click and choose rename, double-click the tab header, press Enter to commit, or click elsewhere to exit.
18+
19+
## Moving TabItems
20+
Allow users to change tab order at design time and runtime by dragging tab headers. Enable with UserMoveTabs.
21+
22+
## Padding
23+
Control the space around a tab’s text/image using the Padding property (X, Y).
24+
25+
## UseMnemonic
26+
Determines whether the ampersand (&) in tab text is treated as an access key indicator. Default is false.
27+
28+
## TabPages – Border settings
29+
Configure TabPage border rendering with BorderStyle. When using FixedSingle, you can specify a custom border color via FixedSingleBorderColor.
30+
31+
Supported border styles:
32+
- FixedSingle
33+
- Fixed3D
34+
- None
35+
36+
## Image settings on TabPages (GIF supported)
37+
Assign an image to a TabPage and control its size. Animated GIFs are supported. Note: If ImageIndex is not -1 and an ImageList is attached, the ImageIndex image will be shown instead of the Image property.
38+
39+
## Prevent moving a specific tab
40+
You can keep certain tabs fixed even when UserMoveTabs is enabled. Use the TabMoving event (or related property, if available in your version) to cancel movement for specific tabs.
41+
42+
## Notes
43+
- LabelEdit allows users to enter edit mode by double-clicking a tab or via context actions; press Enter to accept.
44+
- When using ImageList with TabControlAdv, prefer ImageIndex for consistency across tabs.
45+
- API names may vary slightly across versions; refer to your installed Syncfusion WinForms documentation for exact signatures.
46+
47+
## About the Sample
48+
This sample provides a focused starting point for customizing Syncfusion WinForms TabControlAdv. It demonstrates runtime tab renaming, drag-and-drop reordering, header padding adjustments, mnemonic processing, TabPage border styles and custom FixedSingle border color, adding static or animated GIF images with configurable size, and preventing movement of specific tabs. Extend it by adding your own theming, context menus, and command handlers to align with your application’s workflow and branding.

0 commit comments

Comments
 (0)