diff --git a/README.md b/README.md index 2f5c7b1..bd6d2be 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,127 @@ -# Getting Started with WPF Tabcontrol (TabControlExt) +# Getting Started with WPF TabControl (TabControlExt) + +This sample demonstrates the basic steps to integrate and use the **Syncfusion WPF TabControlExt** control in a WPF application. It shows how to add the control via XAML and C#, configure its size, and create multiple tab items with custom headers and content. + +--- + +## Prerequisites +- **Visual Studio** (latest version recommended) +- **.NET Framework / .NET Core** +- Syncfusion WPF assemblies: + - `Syncfusion.Tools.WPF` + - `Syncfusion.Shared.WPF` + +--- + +## Steps to Add TabControlExt + +### 1. Create a WPF Project +Open Visual Studio and create a new WPF application. + +### 2. Add Required Assemblies +Add references to: +- `Syncfusion.Tools.WPF` +- `Syncfusion.Shared.WPF` + +### 3. Import Syncfusion Namespace +Add the following namespace in your XAML file: +```xml +xmlns:syncfusion="http://schemas.syncfusion.com/wpf" +``` + +--- + +## Adding TabControl via XAML + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +--- + +## Adding TabControl via C# + +```csharp +using Syncfusion.Windows.Tools.Controls; + +public partial class MainWindow : Window { + public MainWindow() { + InitializeComponent(); + + // Create TabControlExt instance + TabControlExt tabControlExt = new TabControlExt { + Height = 100, + Width = 280 + }; + + // Add TabControl to window + this.Content = tabControlExt; + } +} +``` +--- + +## Key Features Demonstrated +- Adding **TabControlExt** via XAML and C# +- Adding multiple **TabItemExt** with custom headers and content +- Enabling **context menus** for individual tabs +- Configuring **close button visibility** +- Adding **New Tab button** with event handling +- Supporting **tab scrolling and placement** + +--- + +## Run the Sample +- **Option 1:** Open the solution in Visual Studio and run. +- **Option 2:** From the project folder (PowerShell): + - **Build:** `dotnet build` + - **Run:** `dotnet run` + +--- + +## Documentation +- [Syncfusion WPF Documentation](https://help.syncfusion.com/wpf/tabcontrol/getting-started) +- [TabControlExt API Reference](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Tools.Controls.TabControlExt.html) -This repository contains the sample to get started with the Syncfusion's Tabcontrol for WPF.