Skip to main content

syncfusion-wpf-tab-navigation

Implement Syncfusion WPF TabNavigationControl for animated content switching with slide, fade, zoom, and blur transitions. Use this when building tab navigation with transition effects, ad-rotator style content displays, or animated item switching in WPF. Covers all seven TransitionEffect values, ItemsSource data binding, and appearance customization (HeaderVisibility, NavigationButtonVisibility, TabStripVisibility).

来源信息

仓库
syncfusion/wpf-ui-components-skills
最近来源活动
2026年7月6日 07:21
检测到的 SKILL.md 语言
英语
星标
5
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
syncfusion-wpf-tab-navigation
description
Implement Syncfusion WPF TabNavigationControl for animated content switching with slide, fade, zoom, and blur transitions. Use this when building tab navigation with transition effects, ad-rotator style content displays, or animated item switching in WPF. Covers all seven TransitionEffect values, ItemsSource data binding, and appearance customization (HeaderVisibility, NavigationButtonVisibility, TabStripVisibility).
metadata
{"author":"Syncfusion Inc","version":"34.1.29"}
# 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](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](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](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](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 ```xaml 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> ``` ```csharp 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 | Scenario | Approach | |---|---| | Static page set | Declarative `TabNavigationItem` in XAML | | Dynamic data-driven tabs | `ItemsSource` + `ObservableCollection<TabNavigationItem>` | | Smooth slide transition | `TransitionEffect="Slide"` | | Fade between content | `TransitionEffect="Fade"` | | Hide all chrome (full-screen content) | `HeaderVisibility="Collapsed"` + `TabStripVisibility="Collapsed"` + `NavigationButtonVisibility="Collapsed"` | | Auto-rotating banner | Bind `ItemsSource` + control `SelectedIndex` via timer | --- ## Key Properties | Property | Type | Description | |---|---|---| | `TransitionEffect` | `TransitionEffect` enum | Animation when switching items | | `ItemsSource` | `IEnumerable` | Data collection for data-bound population | | `HeaderVisibility` | `Visibility` | Show/hide the header tab strip | | `NavigationButtonVisibility` | `Visibility` | Show/hide prev/next arrow buttons | | `TabStripVisibility` | `Visibility` | Show/hide the tab strip panel | **TabNavigationItem properties:** | Property | Description | |---|---| | `Header` | Tab label text | | `Content` | Page content (string or UIElement) |
在 GitHub 查看