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

syncfusion-winforms-status-bar同步融合 winforms 状态栏

Agent Skill

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

总安装

605

周安装

26

GitHub Stars

公开资料未说明

下载量

212
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-status-bar

简介

Syncfusion WinForms 状态栏控件,用于显示应用运行状态、进度信息或版权声明。

  • 常见于主界面底部,提供简洁的非干扰式信息反馈通道。
  • 支持多区域分区、图标、动态文本更新及点击事件响应。
  • 需验证 Syncfusion 版本是否原生支持此控件,部分样式需手动适配主题。
  • 在多语言应用中应预留足够宽度防止文字溢出,并考虑 RTL 布局兼容性。

SKILL.md

Implementing Status Bars (StatusBarAdv)

This skill guides the implementation of the Syncfusion StatusBarAdv control in Windows Forms applications. StatusBarAdv is an advanced status bar that displays panels with enhanced backgrounds, appearances, and supports Office2016 themes.

When to Use This Skill

Use this skill when you need to:

  • Display application status information at the bottom of forms
  • Implement enhanced status bars with gradient backgrounds and styled panels
  • Show date/time, culture information, or key states in status panels
  • Create professional-looking status bars with Office2016 or Metro themes
  • Add custom controls or panels to status bars
  • Configure panel alignment and spacing in status displays
  • Apply advanced border and background styling to status bars
  • Handle status bar property change events

Component Overview

StatusBarAdv is an advanced status bar control that extends the standard Windows Forms StatusBar with:

  • StatusBarAdvPanel Collection: Add multiple panels with custom content and styling
  • Enhanced Backgrounds: Gradient, pattern, and solid color options using BrushInfo
  • Office2016 Themes: Colorful, White, Black, and DarkGray theme support
  • Border Customization: 2D and 3D border styles with custom colors
  • Panel Alignment: Center, Near, Far, and custom positioning options
  • Auto-Sizing: Automatic height adjustment for panels
  • Metro Style: Modern flat design option
  • Sizing Grip: Resizable form indicator
  • Child Controls: Add any WinForms control to the status bar

Assembly: Syncfusion.Tools.Windows Dependencies: Syncfusion.Shared.Base, Syncfusion.Tools.Windows Namespace: Syncfusion.Windows.Forms.Tools

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: First time implementing StatusBarAdv, setting up assemblies, or creating basic status bars.

  • Assembly requirements and installation
  • NuGet package installation
  • Designer-based setup with toolbox
  • Programmatic creation and initialization
  • Adding StatusBarAdvPanel controls
  • Basic configuration and docking
  • Troubleshooting common setup issues

Panels and Layout

📄 Read: references/panels-and-layout.md

When to read: Managing multiple panels, configuring spacing, customizing panel alignment, or positioning controls.

  • StatusBarAdvPanel collection management
  • Panel spacing configuration
  • CustomLayoutBounds for panel sizing
  • Alignment options (Center, Near, Far, ChildConstraints)
  • SetHAlign method for horizontal alignment
  • Panel positioning and sizing
  • Adding child controls to StatusBarAdv
  • Layout customization patterns

Appearance and Styling

📄 Read: references/appearance-styling.md

When to read: Customizing status bar appearance, applying gradients, setting colors, or adding sizing grip.

  • BackgroundColor property with BrushInfo
  • Gradient backgrounds (6 gradient styles)
  • Pattern styles and solid colors
  • GradientColors array configuration
  • MetroColor and UseMetroColorAsBorder
  • ForeColor customization
  • SizingGrip display
  • Complete styling examples

Borders and Themes

📄 Read: references/borders-and-themes.md

When to read: Applying borders, using Office2016 themes, enabling Metro style, or configuring themed backgrounds.

  • BorderStyle property (None, FixedSingle, Fixed3D)
  • Border3DStyle options (10 styles)
  • 2D border configuration (BorderColor, BorderSingle, BorderSides)
  • Office2016 themes (Colorful, White, Black, DarkGray)
  • Metro style application
  • ThemesEnabled and IgnoreThemeBackground
  • Complete themed examples

Events and Behavior

📄 Read: references/events-and-behavior.md

When to read: Implementing auto-sizing, handling property change events, or responding to border/gradient changes.

  • AutoSize and AutoSizeMode configuration
  • AutoHeightControls for panel height
  • GetPreferredSize and SetPreferredSize methods
  • 9 property change events
  • BorderSidesChanged, BorderColorChanged events
  • GradientBackgroundChanged event
  • ThemeChanged event
  • Event handling patterns

Quick Start Example

Basic StatusBarAdv with Panels

C#:

using Syncfusion.Windows.Forms.Tools;
using System.Drawing;
using System.Windows.Forms;

public partial class MainForm : Form
{
    private StatusBarAdv statusBarAdv1;
    private StatusBarAdvPanel culturePanel;
    private StatusBarAdvPanel datePanel;
    private StatusBarAdvPanel timePanel;

    public MainForm()
    {
        InitializeComponent();
        SetupStatusBar();
    }

    private void SetupStatusBar()
    {
        // Create StatusBarAdv
        statusBarAdv1 = new StatusBarAdv
        {
            Dock = DockStyle.Bottom,
            BackColor = Color.LightSteelBlue,
            BorderColor = Color.DarkSlateGray,
            BorderStyle = BorderStyle.FixedSingle,
            SizingGrip = true
        };

        // Create panels
        culturePanel = new StatusBarAdvPanel
        {
            PanelType = StatusBarAdvPanelType.CurrentCulture,
            Size = new Size(120, 27)
        };

        datePanel = new StatusBarAdvPanel
        {
            PanelType = StatusBarAdvPanelType.ShortDate,
            Size = new Size(100, 27)
        };

        timePanel = new StatusBarAdvPanel
        {
            PanelType = StatusBarAdvPanelType.ShortTime,
            Size = new Size(100, 27)
        };

        // Add panels to StatusBarAdv
        statusBarAdv1.Controls.Add(culturePanel);
        statusBarAdv1.Controls.Add(datePanel);
        statusBarAdv1.Controls.Add(timePanel);

        // Add to form
        this.Controls.Add(statusBarAdv1);
    }
}

VB.NET:

Imports Syncfusion.Windows.Forms.Tools
Imports System.Drawing
Imports System.Windows.Forms

Public Partial Class MainForm
    Inherits Form

    Private statusBarAdv1 As StatusBarAdv
    Private culturePanel As StatusBarAdvPanel
    Private datePanel As StatusBarAdvPanel
    Private timePanel As StatusBarAdvPanel

    Public Sub New()
        InitializeComponent()
        SetupStatusBar()
    End Sub

    Private Sub SetupStatusBar()
        ' Create StatusBarAdv
        statusBarAdv1 = New StatusBarAdv With {
            .Dock = DockStyle.Bottom,
            .BackColor = Color.LightSteelBlue,
            .BorderColor = Color.DarkSlateGray,
            .BorderStyle = BorderStyle.FixedSingle,
            .SizingGrip = True
        }

        ' Create panels
        culturePanel = New StatusBarAdvPanel With {
            .PanelType = StatusBarAdvPanelType.CurrentCulture,
            .Size = New Size(120, 27)
        }

        datePanel = New StatusBarAdvPanel With {
            .PanelType = StatusBarAdvPanelType.ShortDate,
            .Size = New Size(100, 27)
        }

        timePanel = New StatusBarAdvPanel With {
            .PanelType = StatusBarAdvPanelType.ShortTime,
            .Size = New Size(100, 27)
        }

        ' Add panels to StatusBarAdv
        statusBarAdv1.Controls.Add(culturePanel)
        statusBarAdv1.Controls.Add(datePanel)
        statusBarAdv1.Controls.Add(timePanel)

        ' Add to form
        Me.Controls.Add(statusBarAdv1)
    End Sub
End Class

Common Patterns

1. Gradient Background with Metro Theme

Apply a modern gradient background with Metro styling:

// Set gradient background (will be overridden if Metro style is applied)
statusBarAdv1.BackgroundColor = new BrushInfo(
    GradientStyle.Horizontal,
    Color.AliceBlue,
    Color.LightSteelBlue
);

// Apply Metro style (this overrides BackgroundColor)
statusBarAdv1.Style = StatusbarStyle.Metro;

// Set metro accent color
statusBarAdv1.MetroColor = ColorTranslator.FromHtml("#16a5dc");
statusBarAdv1.UseMetroColorAsBorder = true;
Note: When Style = StatusbarStyle.Metro is set, any custom BackgroundColor gradients are ignored. Use MetroColor and UseMetroColorAsBorder for Metro styling instead.

2. Custom Panel Alignment

Align panels with custom positioning using ChildConstraints:

// Enable custom alignment
statusBarAdv1.Alignment = FlowAlignment.ChildConstraints;

// Left-align first panel
statusBarAdv1.SetHAlign(panel1, HorzFlowAlign.Left);

// Right-align second panel
statusBarAdv1.SetHAlign(panel2, HorzFlowAlign.Right);

// Justify third panel to fill space
statusBarAdv1.SetHAlign(panel3, HorzFlowAlign.Justify);

3. Office2016 Theme with Auto-Sizing

Apply Office2016 theme with automatic height adjustment:

// Apply Office2016 Colorful theme
statusBarAdv1.Style = StatusbarStyle.Office2016Colorful;

// Enable auto-sizing
statusBarAdv1.AutoSize = true;
statusBarAdv1.AutoSizeMode = AutoSizeMode.GrowAndShrink;

// Auto-adjust panel heights
statusBarAdv1.AutoHeightControls = true;

Key Properties

StatusBarAdv Properties

PropertyTypeDescription
BackgroundColorBrushInfoBackground gradient, pattern, or solid color configuration
BorderStyleBorderStyleBorder type: None, FixedSingle, or Fixed3D
Border3DStyleBorder3DStyle3D border style (10 options: Raised, Sunken, etc.)
BorderColorColor2D border color (requires BorderStyle.FixedSingle)
BorderSingleButtonBorderStyle2D border style: Solid, Dashed, Dotted, etc.
BorderSidesBorder3DSideBorder sides to display: Left, Top, Right, Bottom, All
StyleStatusbarStyleTheme: Default, Metro, Office2016Colorful, Office2016White, Office2016Black, Office2016DarkGray
PanelsCollectionStatusBarAdvPanel controls in the StatusBarAdv
AlignmentFlowAlignmentPanel alignment: Center, Near, Far, ChildConstraints
SpacingSizeSpace between panels
CustomLayoutBoundsRectangleCustom rectangle for panel layout
SizingGripboolDisplay sizing grip for resizable forms
AutoSizeboolAutomatically resize to fit contents
AutoSizeModeAutoSizeModeResize mode: GrowAndShrink or GrowOnly
AutoHeightControlsboolAuto-adjust panel heights to StatusBarAdv height
MetroColorColorMetro theme accent color
UseMetroColorAsBorderboolUse MetroColor as border color
ThemesEnabledboolEnable themed background drawing
IgnoreThemeBackgroundboolIgnore theme background and use BackColor instead

StatusBarAdvPanel Properties

PropertyTypeDescription
PanelTypeStatusBarAdvPanelTypePanel content type. Values include: None (no content), Text (custom text), CurrentCulture (culture info), ShortDate (date), ShortTime (time), Owner (owner‑drawn content).
SizeSizePanel dimensions
TextstringCustom text to display in panel

StatusBarAdv Extender Methods

MethodDescription
SetHAlign(StatusBarAdvPanel, HorzFlowAlign)Sets horizontal alignment for a specific panel (Left, Center, Right, Justify).
GetHAlign(StatusBarAdvPanel)Gets the current horizontal alignment of a specific panel.

Common Use Cases

  1. Application Status Display: Show ready state, connection status, or operation progress
  2. Date/Time Information: Display current date and time using built-in panel types
  3. Culture and Localization: Show current culture information with CurrentCulture panel
  4. Progress Indicators: Add ProgressBar controls to status bar for long operations
  5. Document Information: Display file name, line/column position, or word count
  6. Network Status: Show connectivity state or server status with custom panels
  7. User Session Info: Display logged-in user name or session details
  8. Themed Applications: Apply Office2016 or Metro themes for consistent UI

Additional Resources

  • Syncfusion Documentation: StatusBarAdv Official Docs
  • Panel Reference: See StatusBarAdvPanel documentation for panel-specific properties
  • Theme Support: StatusBarAdv supports VisualStyleManager for application-wide theming

Next Steps

After implementing basic StatusBarAdv:

  1. Add Multiple Panels → Read: references/panels-and-layout.md
  2. Customize Appearance → Read: references/appearance-styling.md
  3. Apply Themes → Read: references/borders-and-themes.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.52%
按下载量换算73

Claude

31.39%
按下载量换算67

Cursor

18.24%
按下载量换算39

Gemini CLI

9.31%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills