From a1078bf14b983a02955c45766dbdfa6e40c20748 Mon Sep 17 00:00:00 2001 From: Abinaya Balakrishnan Date: Mon, 27 Apr 2026 23:06:59 +0530 Subject: [PATCH 1/3] README.md Updated --- README.md | 95 ------------------------------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 012da3e..0000000 --- a/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# How-to-create-fully-customizable-tab-headers-in-.NET-MAUI-TabView - -A sample application that demonstrates how to create fully customizable tab headers in .NET MAUI TabView. You can customize header text, images, border, alignment, fonts, colors or completely custom header layouts for a polished and professional UI. - -In the example below, we demonstrate: - - 1. Visual state customization: Using `VisualStateManager` to dynamically change the header text color of each `SfTabItem` based on selection state. - 2. Icon color binding: Applying FontImageSource to each ImageSource property in `SfTabItem and binding its color to the tab’s TextColor for consistent styling. - 3. Border styling: Customizing the tab header area’s border using properties such as `TabBarBorderColor`, `TabBarBorderThickness`, and `TabBarCornerRadius`. - 4. Indicator and layout settings: Adjusting `IndicatorPlacement`, `IndicatorBackground`, and `TabBarHeight` for a modern look. - -## Prerequisites - -* Visual Studio 2026 with .NET MAUI workload - -## How to run this sample - -1. Clone the repository. -2. Open the solution file `TabViewHeaderCustomization.sln` in Visual Studio 2026. -3. Build and run the project. - -## Code Snippet - -To achieve fully customizable tab headers, use the following XAML: - -```xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` - -## Further references - -* [TabBar Customization ](https://help.syncfusion.com/maui/tabview/tab-bar-customization) - From f1f6fd4f9aae6df20479a0b0d9b30bf807faaa63 Mon Sep 17 00:00:00 2001 From: Abinaya Balakrishnan Date: Mon, 27 Apr 2026 23:09:12 +0530 Subject: [PATCH 2/3] Empty README.md --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 From 55a7d90cd526cb72ea8832718e411d0bbdfe1b0f Mon Sep 17 00:00:00 2001 From: Abinaya Balakrishnan Date: Mon, 27 Apr 2026 23:09:55 +0530 Subject: [PATCH 3/3] Updated README.md --- README.md | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/README.md b/README.md index e69de29..049bce7 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,136 @@ +# How-to-create-fully-customizable-tab-headers-in-.NET-MAUI-TabView + +**Repository Description** +This repository contains a .NET MAUI sample application that demonstrates how to create fully customizable tab headers using the Syncfusion MAUI TabView component. + +This sample showcases how to customize header text, images, borders, alignment, fonts, colors, and entirely custom header layouts to achieve a polished and professional user interface. + +## Project Overview +The purpose of this project is to help developers understand how to build highly customized tab headers in .NET MAUI applications using the Syncfusion TabView component. It demonstrates various customization techniques that enhance visual consistency and improve user experience across mobile and desktop platforms. + +## Features +- Customizable tab header text, images, and layouts +- Visual state customization using `VisualStateManager` +- Dynamic header text color changes based on tab selection +- Icon color binding using `FontImageSource` +- Header border styling with configurable color, thickness, and corner radius +- Indicator and layout customization (placement, background, and height) + +### Customization Demonstrated +This sample includes the following customization techniques: +1. **Visual state customization** + Uses `VisualStateManager` to dynamically change the header text color of each `SfTabItem` based on selection state. +2. **Icon color binding** + Applies `FontImageSource` to each `ImageSource` property in `SfTabItem`, binding its color to the tab’s text color for consistent styling. +3. **Border styling** + Customizes the tab header area’s border using `TabBarBorderColor`, `TabBarBorderThickness`, and `TabBarCornerRadius`. +4. **Indicator and layout settings** + Adjusts `IndicatorPlacement`, `IndicatorBackground`, and `TabBarHeight` to achieve a modern UI. + +## Prerequisites +Ensure that the following requirements are met before running this project: +- Visual Studio 2026 +- .NET MAUI workload installed + +## Installation and Running the Application +1. Clone this repository to your local machine. +2. Open the solution file `TabViewHeaderCustomization.sln` in Visual Studio 2026. +3. Restore NuGet packages if prompted. +4. Build and run the project on an Android, iOS, Windows, or MacCatalyst target. + +## Code Snippet + +To achieve fully customizable tab headers, use the following XAML: + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +## Usage +Run the application and interact with the TabView to observe: +- Dynamic styling changes when switching tabs +- Custom icons and text alignment +- Header border and indicator behavior + +You can modify the XAML definitions to experiment with layout and visual customization options. + +## Documentation +- **General Syncfusion documentation:** + https://help.syncfusion.com/ +- **.NET MAUI Introduction:** + https://help.syncfusion.com/maui/introduction/overview + +## Additional Resources +- **TabBar Customization Guide:** + https://help.syncfusion.com/maui/tabview/tab-bar-customization + +## Troubleshooting +- Ensure the .NET MAUI workload is properly installed. +- Clean and rebuild the solution if build errors occur. +- Verify the target platform is correctly configured. +- Check the Output and Device Log windows for runtime issues. + +## Support +For detailed API references, advanced configuration options, and further guidance, refer to the Syncfusion .NET MAUI documentation and customization guides listed above. \ No newline at end of file