mcpField
S
syncfusion-wpf-tab-navigation

syncfusion-wpf-tab-navigation

github.com/syncfusionDesign & UI5156 installsUpdated 1w ago
Repository

About syncfusion-wpf-tab-navigation

A guide to Syncfusion’s WPF TabNavigationControl for switching between pages or items with animated transitions. It covers data-bound tabs, transition effects, and visibility controls for navigation elements.

Key features

  1. 01Seven animated transition effects
  2. 02Data-bound item collections
  3. 03Configurable tab and header visibility
  4. 04Show or hide navigation buttons
  5. 05Programmatic item switching

Use cases

  1. 01Add animated transitions between pages
  2. 02Build a rotating banner from bound items
  3. 03Create tab-based content navigation
  4. 04Hide navigation controls for full-screen content

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-tab-navigation

After installing, type/syncfusion-wpf-tab-navigationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
appearance.md
data-binding.md
getting-started.md
transition-effects.md

Details

From the project README

Implementing TabNavigationControl (WPF)

When to Use This Skill

Use this skill when the user needs to:

  • Display pages or items with animated transition effects (slide, fade, zoom, blur, etc.)
  • Build an ad-rotator or banner-style content switcher in WPF
  • Create tab-based navigation with visual transition between content areas
  • Bind a collection of items to an animated tab navigator
  • Control visibility of the header strip, navigation buttons, or tab strip
  • Switch between pages programmatically with transition animations

Component Overview

TabNavigationControl                    (root container)
└── TabNavigationItem  (×N)            (each page/item)
    ├── Header                          — tab label text
    └── Content                         — page content (any UIElement)

Assemblies: Syncfusion.Tools.WPF + Syncfusion.Shared.WPF
Namespace: Syncfusion.Windows.Tools.Controls
XAML schema: http://schemas.syncfusion.com/wpf


Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly references and NuGet package
  • XAML namespace (syncfusion schema)
  • Declarative control setup
  • Adding TabNavigationItem in XAML and C#
  • Themes with SfSkinManager
Data Binding

📄 Read: references/data-binding.md

  • Binding ObservableCollection via ItemsSource
  • Binding from XML data source
  • Model + ViewModel + MainWindow wiring
  • XAML ItemsSource binding pattern
Transition Effects

📄 Read: references/transition-effects.md

  • All 7 TransitionEffect values: Slide, Fade, Zoom, Blur, Push, PushIn, Wipe
  • XAML example per effect
  • When to choose each effect
  • Decision guide
Appearance

📄 Read: references/appearance.md

  • HeaderVisibility — show/hide the header tab strip
  • NavigationButtonVisibility — show/hide prev/next arrows
  • TabStripVisibility — show/hide the tab strip panel
  • XAML and C# examples

Quick Start

xmlns:syncfusion="http://schemas.syncfusion.com/wpf"

<syncfusion:TabNavigationControl x:Name="tabNavigation"
                                  TransitionEffect="Slide"
                                  Width="400" Height="300">
    <syncfusion:TabNavigationItem Header="Page 1">
        <syncfusion:TabNavigationItem.Content>
            <TextBlock Text="Welcome to Page 1" FontSize="18" HorizontalAlignment="Center"/>
        </syncfusion:TabNavigationItem.Content>
    </syncfusion:TabNavigationItem>
    <syncfusion:TabNavigationItem Header="Page 2">
        <syncfusion:TabNavigationItem.Content>
            <TextBlock Text="Welcome to Page 2" FontSize="18" HorizontalAlignment="Center"/>
        </syncfusion:TabNavigationItem.Content>
    </syncfusion:TabNavigationItem>
    <syncfusion:TabNavigationItem Header="Page 3">
        <syncfusion:TabNavigationItem.Content>
            <TextBlock Text="Welcome to Page 3" FontSize="18" HorizontalAlignment="Center"/>
        </syncfusion:TabNavigationItem.Content>
    </syncfusion:TabNavigationItem>
</syncfusion:TabNavigationControl>
using Syncfusion.Windows.Tools.Controls;

TabNavigationControl tabNavigation = new TabNavigationControl();
tabNavigation.TransitionEffect = TransitionEffect.Slide;

TabNavigationItem item1 = new TabNavigationItem { Header = "Page 1", Content = "Content 1" };
TabNavigationItem item2 = new TabNavigationItem { Header = "Page 2", Content = "Content 2" };
tabNavigation.Items.Add(item1);
tabNavigation.Items.Add(item2);
this.Content = tabNavigation;

Common Patterns

ScenarioApproach
Static page setDeclarative TabNavigationItem in XAML
Dynamic data-driven tabsItemsSource + ObservableCollection<TabNavigationItem>
Smooth slide transitionTransitionEffect="Slide"
Fade between contentTransitionEffect="Fade"
Hide all chrome (full-screen content)HeaderVisibility="Collapsed" + TabStripVisibility="Collapsed" + NavigationButtonVisibility="Collapsed"
Auto-rotating bannerBind ItemsSource + control SelectedIndex via timer

Key Properties

PropertyTypeDescription
TransitionEffectTransitionEffect enumAnimation when switching items
ItemsSourceIEnumerableData collection for data-bound population
HeaderVisibilityVisibilityShow/hide the header tab strip
NavigationButtonVisibilityVisibilityShow/hide prev/next arrow buttons
TabStripVisibilityVisibilityShow/hide the tab strip panel

TabNavigationItem properties:

PropertyDescription
HeaderTab label text
ContentPage content (string or UIElement)

Comments

Markdown supported