Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-tabbedwindow同步融合 wpf 选项卡式窗口

Agent Skill

syncfusion-wpf-tabbedwindow 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,175

周安装

48

GitHub Stars

2

下载量

380
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-wpf-tabbedwindow(同步融合 wpf 选项卡式窗口)
来源仓库:https://github.com/syncfusion/wpf-ui-components-skills
仓库路径:skills/syncfusion-wpf-tabbedwindow
安装命令:
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-tabbedwindow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-tabbedwindow

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行信息整理。
  • 可结合来源仓库和 README 进一步核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 注意避免在不具备相应权限时执行写回或批量操作。syncfusion-wpf-tabbedwindow 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF Tabbed Windows

A comprehensive guide for implementing the Syncfusion WPF Tabbed Window control, which combines SfChromelessWindow with SfTabControl to create professional document-based applications with advanced tab management, tear-off windows, and cross-window tab merging capabilities.

When to Use This Skill

Use this skill for document-based applications with multiple tabs, browser-style interfaces, tear-off windows, tab merging, and MVVM binding. Covers setup, window modes, tab management, data binding, floating windows, and customization.

Component Overview

The Tabbed Window is a powerful combination of SfChromelessWindow and SfTabControl that enables professional document-based applications with:

  • Drag-and-Drop Reordering - Intuitive tab reordering within the tab bar or between windows
  • Tear-Off Windows - Create floating windows by dragging tabs outside window boundaries
  • Tab Merging - Move tabs between multiple TabbedWindow instances with validation
  • Flexible Tab Management - Dynamic add, remove, and select operations with close/new tab buttons
  • MVVM Support - Full data binding through ItemsSource for data-driven scenarios
  • Window Type Modes - Tabbed mode (chrome-integrated) or Normal mode (content-based)
  • Content Customization - Templates for headers, icons, and content
  • Event-Driven Architecture - Comprehensive events for all tab operations

Key Assemblies Required:

  • Syncfusion.SfChromelessWindow.WPF
  • Syncfusion.Shared.WPF

Namespace:

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

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When you need to:

  • Install and reference required assemblies
  • Create your first tabbed window in XAML or code-behind
  • Understand Window Type Modes (Tabbed vs Normal)
  • Choose the right mode for your application
  • Create basic tab items
  • Configure essential properties

Key Topics: Installation, basic window setup, WindowType property, Tabbed vs Normal mode comparison, assembly references, namespace imports


Tab Management

📄 Read: references/tab-management.md

When you need to:

  • Add close buttons to tabs
  • Enable the new tab (+) button
  • Handle NewTabRequested event for dynamic tab creation
  • Customize the new tab button appearance
  • Implement keyboard shortcuts (Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+T)
  • Support middle-click to close tabs
  • Programmatically add, remove, or select tabs

Key Topics: CloseButtonVisibility, EnableNewTabButton, NewTabRequested event, NewTabButtonStyle, keyboard shortcuts, tab selection


Data Binding (MVVM)

📄 Read: references/data-binding.md

When you need to:

  • Bind tabs to a ViewModel collection
  • Implement MVVM pattern with tabbed windows
  • Use ItemsSource for data-driven tab scenarios
  • Create tab models and ViewModels
  • Customize tab headers and content through templates
  • Configure ItemTemplate and ContentTemplate
  • Use ItemContainerStyle for tab styling
  • Handle dynamic collection updates with ObservableCollection

Key Topics: MVVM pattern, ItemsSource binding, ItemTemplate, ContentTemplate, ItemContainerStyle, ObservableCollection, tab models


Tab Merging and Floating Windows

📄 Read: references/merge-tabs.md

When you need to:

  • Enable tear-off functionality to create floating windows
  • Understand how tabs become independent windows
  • Reattach floating tabs back to main window
  • Merge tabs between multiple windows
  • Validate merge operations with PreviewTabMerge event
  • Control which tabs can be moved
  • Transform items during merge operations
  • Handle multi-window workspace scenarios

Key Topics: Tear-off windows, drag-outside behavior, floating window lifecycle, PreviewTabMerge event, TabMergePreviewEventArgs, cross-window merging, merge validation


Customization and Styling

📄 Read: references/customization.md

When you need to:

  • Apply Syncfusion themes
  • Customize window chrome appearance
  • Style tab headers and content areas
  • Create custom header and content templates
  • Customize close button appearance
  • Configure drag-drop visual feedback
  • Set colors, fonts, and spacing
  • Implement responsive design
  • Follow best practices for professional appearance

Key Topics: Theme application, style customization, template customization, visual appearance, AllowDragDrop, responsive design, professional styling


Quick Start Example

Basic Tabbed Window with Close Buttons

XAML:

<Window x:Class="TabbedWindowApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf">

    <syncfusion:SfChromelessWindow
        Title="Document Manager"
        WindowType="Tabbed"
        Height="600"
        Width="900">

        <syncfusion:SfTabControl
            AllowDragDrop="True"
            EnableNewTabButton="True"
            NewTabRequested="OnNewTabRequested">

            <syncfusion:SfTabItem
                Header="Document 1"
                CloseButtonVisibility="Visible">
                <TextBlock Text="Welcome to Document 1"
                          Margin="20"/>
            </syncfusion:SfTabItem>

            <syncfusion:SfTabItem
                Header="Document 2"
                CloseButtonVisibility="Visible">
                <TextBlock Text="Welcome to Document 2"
                          Margin="20"/>
            </syncfusion:SfTabItem>

        </syncfusion:SfTabControl>

    </syncfusion:SfChromelessWindow>

</Window>

Code-Behind:

using Syncfusion.Windows.Controls;

public partial class MainWindow : SfChromelessWindow
{
    public MainWindow()
    {
        InitializeComponent();
    }

    private void OnNewTabRequested(object sender, NewTabRequestedEventArgs e)
    {
        var tabCount = ((SfTabControl)sender).Items.Count;
        var newTab = new SfTabItem
        {
            Header = $"Document {tabCount + 1}",
            Content = new TextBlock
            {
                Text = $"New Document {tabCount + 1}",
                Margin = new Thickness(20)
            },
            CloseButtonVisibility = Visibility.Visible
        };

        e.Item = newTab;
    }
}

Common Patterns

Pattern 1: Document Editor with Drag-Drop and New Tab

<syncfusion:SfChromelessWindow WindowType="Tabbed">
    <syncfusion:SfTabControl
        AllowDragDrop="True"
        EnableNewTabButton="True"
        NewTabRequested="OnNewTabRequested">
        <!-- Tabs here -->
    </syncfusion:SfTabControl>
</syncfusion:SfChromelessWindow>

Pattern 2: MVVM Data-Bound Tabs

<syncfusion:SfTabControl ItemsSource="{Binding OpenDocuments}">
    <syncfusion:SfTabControl.ItemContainerStyle>
        <Style TargetType="syncfusion:SfTabItem">
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Text="{Binding Title}" />
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </syncfusion:SfTabControl.ItemContainerStyle>

    <syncfusion:SfTabControl.ContentTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Content}" />
        </DataTemplate>
    </syncfusion:SfTabControl.ContentTemplate>
</syncfusion:SfTabControl>

Key Properties and Events

Core Properties

PropertyTypeDescription
WindowTypeWindowTypeTabbed (chrome-integrated) or Normal (content-based)
AllowDragDropboolEnable drag-drop reordering and tear-off
EnableNewTabButtonboolShow/hide the new tab (+) button
SelectedItemobjectCurrently active tab
SelectedIndexintIndex of active tab
ItemsSourceIEnumerableBind tabs to a collection (MVVM)
CloseButtonVisibilityVisibilityShow/hide close button per tab

Important Events

EventDescription
NewTabRequestedFired when user clicks the + button; set e.Item to create tab
PreviewTabMergeFired before tab moves between windows; set e.Allow to validate
SelectionChangedFired when active tab changes

Styling Properties

PropertyDescription
NewTabButtonStyleStyle for the new tab button
ItemTemplateDataTemplate for tab headers
ContentTemplateDataTemplate for tab content
ItemContainerStyleStyle for SfTabItem containers

Best Practices

  1. Choose the Right Mode: Use Tabbed mode for document-centric apps, Normal mode when tabs are secondary navigation
  2. Enable Drag-Drop: Set AllowDragDrop="True" for intuitive reordering and tear-off functionality
  3. Handle NewTabRequested: Always implement this event handler when EnableNewTabButton="True"
  4. MVVM Pattern: Use ItemsSource binding for data-driven scenarios with clean separation of concerns
  5. Validate Merges: Use PreviewTabMerge to control which tabs can be moved between windows
  6. Keyboard Support: Document keyboard shortcuts for users (Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+T)
  7. Visual Feedback: Ensure drag-drop operations have clear visual indicators for user guidance

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.19%
按下载量换算126

Claude

32.93%
按下载量换算125

Cursor

21.47%
按下载量换算82

Gemini CLI

9.14%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills