Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-carousel同步融合 wpf 轮播

Agent Skill

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

总安装

1,117

周安装

48

GitHub Stars

2

下载量

392
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 WPF 轮播组件,支持图片或内容循环展示的滑动切换控件。

  • 适用于产品图片浏览、广告轮播等需要动态内容轮换的 WPF 界面设计。
  • 通过 GitHub 安装技能模块,使用 npx skills add 命令完成本地注册与使用。
  • 需验证宿主是否具备图像渲染能力及相关依赖库的正确版本匹配。
  • 推荐查看原始 README 中关于动画效果、自动播放间隔等可配置项说明。

SKILL.md

Implementing Carousels

The Syncfusion WPF Carousel control provides a 3D circular interface for displaying and rotating through items with interactive navigation, data binding, custom paths, scaling, skewing, and opacity effects. It supports both standard circular paths and custom geometric paths for unique visual experiences.

When to Use This Skill

Use this skill when you need to:

  • Display items in a rotating circular 3D interface
  • Create image galleries with carousel navigation
  • Build rotating product viewers or portfolios
  • Implement item browsing with keyboard/mouse navigation
  • Create custom path animations for item display
  • Apply visual effects (scaling, opacity, skewing) to carousel items
  • Display data collections in an interactive rotating format
  • Implement page-based item display with custom paths
  • Create visual navigation experiences in WPF applications

Component Overview

The Carousel control provides:

  • Standard Path Mode: Circular 3D rotation with configurable radius
  • Custom Path Mode: Define any geometric path for item positioning
  • Data Binding: Bind to collections with full template support
  • Navigation: Keyboard, mouse, scroll bar, and command-based navigation
  • Visual Effects: Scaling, opacity, skewing, and rotation animations
  • Item Selection: Single selection with programmatic control
  • Virtualization: Efficient loading for large item collections
  • Customization: Full template and style customization support

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet packages
  • Adding Carousel via designer, XAML, or C#
  • Basic configuration and setup
  • First working example
  • Required namespaces and assemblies

Populating Items

📄 Read: references/populating-items.md

  • Adding items using CarouselItem
  • Binding to collections with ItemsSource
  • Customizing item appearance with ItemTemplate
  • Using ItemContainerStyle and StyleSelector
  • Virtualization for large datasets
  • Item selection and selection events
  • Flow direction (RTL support)

Navigation Features

📄 Read: references/navigation.md

  • Keyboard navigation (arrow keys, Home, End, Page Up/Down)
  • Mouse wheel navigation
  • Scroll bar navigation
  • Navigation commands (SelectFirstItem, SelectNextItem, etc.)
  • Programmatic navigation methods
  • Looping items in custom path mode
  • Navigation patterns and best practices

Standard Path Mode

📄 Read: references/standard-path.md

  • Circular 3D path display (default mode)
  • Configuring radius (RadiusX, RadiusY)
  • Rotation speed and animation
  • Scaling items (ScaleFraction, ScalingEnabled)
  • Opacity effects (OpacityFraction, OpacityEnabled)
  • Skewing items (SkewAngleX/Y, enabled properties)
  • Standard path best practices

Custom Path Mode

📄 Read: references/custom-path.md

  • Defining custom geometric paths
  • Items per page configuration
  • Global scaling with ScaleFraction
  • Individual item scaling with ScaleFractions
  • Global opacity with OpacityFraction
  • Individual item opacity with OpacityFractions
  • Global skewing effects
  • Individual item skewing with fractions
  • Complex path examples

Advanced Features

📄 Read: references/advanced-features.md

  • TopItemPosition for selected item placement
  • Rotation angle configuration
  • Path geometry patterns and examples
  • Performance optimization techniques
  • Common pitfalls and solutions
  • Troubleshooting guide

Quick Start Example

Basic Carousel with Data Binding

<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>

    <syncfusion:Carousel Name="carousel"
                         Height="400"
                         Width="600"
                         ItemsSource="{Binding Items}">
        <syncfusion:Carousel.ItemTemplate>
            <DataTemplate>
                <Border Height="100"
                        Width="150"
                        BorderBrush="Purple"
                        BorderThickness="3"
                        Background="LightBlue"
                        CornerRadius="5">
                    <StackPanel HorizontalAlignment="Center"
                                VerticalAlignment="Center">
                        <Image Source="{Binding ImageSource}"
                               Height="60"
                               Width="80"/>
                        <TextBlock Text="{Binding Name}"
                                   FontWeight="Bold"
                                   Margin="0,5,0,0"/>
                    </StackPanel>
                </Border>
            </DataTemplate>
        </syncfusion:Carousel.ItemTemplate>
    </syncfusion:Carousel>
</Window>
using Syncfusion.Windows.Shared;
using System.Collections.ObjectModel;

// ViewModel
public class ViewModel
{
    public ObservableCollection<CarouselItem> Items { get; set; }

    public ViewModel()
    {
        Items = new ObservableCollection<CarouselItem>
        {
            new CarouselItem { Name = "Item 1", ImageSource = "/Images/img1.png" },
            new CarouselItem { Name = "Item 2", ImageSource = "/Images/img2.png" },
            new CarouselItem { Name = "Item 3", ImageSource = "/Images/img3.png" }
        };
    }
}

// Model
public class CarouselItem
{
    public string Name { get; set; }
    public string ImageSource { get; set; }
}

Common Patterns

Pattern 1: Carousel with Scaling and Opacity Effects

<syncfusion:Carousel ItemsSource="{Binding Products}"
                     ScaleFraction="0.7"
                     ScalingEnabled="True"
                     OpacityFraction="0.5"
                     OpacityEnabled="True"
                     RotationSpeed="300">
    <syncfusion:Carousel.ItemTemplate>
        <DataTemplate>
            <Border Height="120" Width="150"
                    Background="White"
                    BorderBrush="Gray"
                    BorderThickness="2">
                <Grid>
                    <Image Source="{Binding ProductImage}" Stretch="Uniform"/>
                    <TextBlock Text="{Binding ProductName}"
                               VerticalAlignment="Bottom"
                               Background="#CC000000"
                               Foreground="White"
                               Padding="5"/>
                </Grid>
            </Border>
        </DataTemplate>
    </syncfusion:Carousel.ItemTemplate>
</syncfusion:Carousel>

Pattern 2: Custom Linear Path with Paging

<syncfusion:Carousel VisualMode="CustomPath"
                     ItemsPerPage="5"
                     ItemsSource="{Binding Gallery}"
                     ScaleFraction="0.8"
                     OpacityFraction="0.3">
    <syncfusion:Carousel.Path>
        <Path Data="M0,100 L500,100"
              Stroke="Blue"
              StrokeThickness="2"/>
    </syncfusion:Carousel.Path>

    <syncfusion:Carousel.ItemTemplate>
        <DataTemplate>
            <Image Source="{Binding}"
                   Height="100"
                   Width="100"
                   Stretch="UniformToFill"/>
        </DataTemplate>
    </syncfusion:Carousel.ItemTemplate>
</syncfusion:Carousel>

Pattern 3: Programmatic Navigation

// Navigate to specific items
carousel.SelectFirstItem();
carousel.SelectLastItem();
carousel.SelectNextItem();
carousel.SelectPreviousItem();

// Navigate by pages
carousel.SelectNextPage();
carousel.SelectPreviousPage();

// Set selected item programmatically
carousel.SelectedIndex = 2;

// Using commands in XAML
<Button Content="Next"
        Command="{Binding ElementName=carousel, Path=SelectNextItemCommand}"/>
<Button Content="Previous"
        Command="{Binding ElementName=carousel, Path=SelectPreviousItemCommand}"/>

Pattern 4: Selection Changed Event

carousel.SelectionChanged += Carousel_SelectionChanged;

private void Carousel_SelectionChanged(DependencyObject d,
                                       DependencyPropertyChangedEventArgs e)
{
    var oldItem = e.OldValue;
    var newItem = e.NewValue;

    // Get selected item details
    var selectedIndex = carousel.SelectedIndex;
    var selectedItem = carousel.SelectedItem;
    var selectedValue = carousel.SelectedValue;

    // Perform actions based on selection
    Debug.WriteLine($"Selected: {selectedItem}");
}

Pattern 5: Custom Path with Individual Item Effects

<syncfusion:Carousel VisualMode="CustomPath"
                     ScalingEnabled="True"
                     OpacityEnabled="True"
                     ItemsSource="{Binding Items}">
    <syncfusion:Carousel.Path>
        <Path Data="M0,0 Q250,200 500,0"
              Stroke="Red"
              StrokeThickness="1"/>
    </syncfusion:Carousel.Path>

    <!-- Individual scaling per position -->
    <syncfusion:Carousel.ScaleFractions>
        <syncfusion:PathFractionCollection>
            <syncfusion:FractionValue Fraction="0" Value="0.5"/>
            <syncfusion:FractionValue Fraction="0.5" Value="1.0"/>
            <syncfusion:FractionValue Fraction="1" Value="0.5"/>
        </syncfusion:PathFractionCollection>
    </syncfusion:Carousel.ScaleFractions>

    <!-- Individual opacity per position -->
    <syncfusion:Carousel.OpacityFractions>
        <syncfusion:PathFractionCollection>
            <syncfusion:FractionValue Fraction="0" Value="0.3"/>
            <syncfusion:FractionValue Fraction="0.5" Value="1.0"/>
            <syncfusion:FractionValue Fraction="1" Value="0.3"/>
        </syncfusion:PathFractionCollection>
    </syncfusion:Carousel.OpacityFractions>
</syncfusion:Carousel>

Key Properties

PropertyDescriptionDefault
VisualModeDisplay mode: Standard (circular) or CustomPathStandard
ItemsSourceCollection to bind carousel itemsnull
SelectedIndexIndex of selected item-1
SelectedItemCurrently selected item objectnull
RadiusXHorizontal radius (Standard mode)250
RadiusYVertical radius (Standard mode)150
RotationSpeedAnimation speed in milliseconds200
ScaleFractionScale factor for non-selected items (0-1)0
ScalingEnabledEnable/disable scaling effectstrue
OpacityFractionOpacity for non-selected items (0-1)0
OpacityEnabledEnable/disable opacity effectstrue
ItemsPerPageItems visible per page (CustomPath only)-1 (all)
EnableLoopingLoop items in CustomPath modefalse
EnableVirtualizationEnable UI virtualization for performancefalse
PathCustom path geometry for CustomPath modenull

Common Use Cases

  1. Image Gallery Viewer: Display photos in rotating carousel with thumbnails
  2. Product Showcase: E-commerce product browsing with 3D rotation
  3. Media Player: Album art or video thumbnail carousel
  4. Dashboard Navigation: Navigate through different dashboard views
  5. Portfolio Display: Showcase work samples in artistic layouts
  6. Document Viewer: Browse through document pages or previews
  7. Team Member Gallery: Display team photos with biographical info
  8. Settings Panels: Rotate through configuration options
  9. Tutorial Steps: Navigate through step-by-step instructions
  10. Timeline Display: Show chronological events in circular format

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.57%
按下载量换算139

Claude

33%
按下载量换算129

Cursor

18.31%
按下载量换算72

Gemini CLI

10.54%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills