Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-text-input-layoutsyncfusion wpf 文本输入布局

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,045

周安装

44

GitHub Stars

2

下载量

366
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助界面设计、视觉规范和交互体验优化。syncfusion-wpf-text-input-layout 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合品牌规范、设计系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时应通过截图或浏览器预览检查表现效果。
  • 安装前建议核对仓库维护状态及是否会触发联网或文件读写操作。

SKILL.md

Implementing WPF TextInputLayout

The TextInputLayout control for WPF adds decorative elements and enhanced user experience to input controls by providing floating labels, icons, assistive labels, and various container styles on top of TextBox and other input views.

When to Use This Skill

Use this skill when user need to:

  • Add floating labels to TextBox or other input controls in WPF
  • Implement input validation UI with error messages and visual feedback
  • Customize input containers with outlined, filled, or minimal styles
  • Add helper text and character counters to input fields
  • Include icons (leading/trailing) in input layouts
  • Configure hint positioning and float behaviors
  • Support multiple input types (TextBox, PasswordBox, ComboBox, etc.)
  • Implement Material Design-style input fields in WPF
  • Add assistive labels for accessibility and usability
  • Customize colors and styling for focused/unfocused/error states

Component Overview

The SfTextInputLayout control enhances standard WPF input controls by wrapping them with decorative elements:

Key Features

  • Floating Labels: Animated hint labels that float above input when focused
  • Container Types: Outlined (default), Filled, and None styles
  • Assistive Labels: Helper text, error messages, and character counters
  • Custom Icons: Leading and trailing views with inside/outside positioning
  • Multiple Input Views: TextBox, PasswordBox, ComboBox, ComboBoxAdv, SfTextBoxExt
  • State-Based Styling: Different colors for focused, unfocused, and error states
  • RTL Support: Right-to-left text flow for internationalization
  • Extensive Customization: Border thickness, corner radius, padding, and more

Typical Use Cases

  • Form input fields with validation
  • Material Design-style interfaces
  • User registration and login forms
  • Data entry applications
  • Search boxes with icons
  • Password fields with visibility toggles
  • Dropdown inputs with decorative containers

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly references
  • Namespace imports and initialization
  • Basic TextInputLayout setup
  • Adding hint labels
  • HintVisibility configuration
  • Theme support with SfSkinManager

Container Types and Layout

📄 Read: references/container-types.md

  • ContainerType property overview
  • Outlined container (default with rounded border)
  • Filled container (with background and base line)
  • None container (minimal styling)
  • ContainerBackground customization
  • OutlineCornerRadius configuration

Assistive Labels and Validation

📄 Read: references/assistive-labels.md

  • Helper text with HelperText property
  • HelperTextVisibility configuration
  • Error messages with ErrorText property
  • HasError property for validation state
  • Character counter with CharMaxLength
  • CharCountVisibility configuration
  • Validation patterns and best practices

Customization and Styling

📄 Read: references/customization.md

  • FocusedForeground for focused state colors
  • Foreground for unfocused state colors
  • ErrorForeground for error state colors
  • ActiveForeground property
  • ContainerBackground customization
  • FocusedBorderBrush for independent border colors
  • StrokeThickness and FocusedStrokeThickness
  • InputViewPadding configuration
  • Color patterns and styling approaches

Icons and Input Views

📄 Read: references/icons-and-views.md

  • LeadingView and LeadingViewPosition configuration
  • TrailingView and TrailingViewPosition configuration
  • Icon implementation with font icons
  • Supported input views: TextBox, PasswordBox, ComboBox
  • ComboBoxAdv integration
  • SfTextBoxExt (Autocomplete) support
  • DropDownBorder customization
  • InputView property usage

Hint Configuration

📄 Read: references/hint-configuration.md

  • HintFloatMode property options
  • Float mode (default behavior)
  • AlwaysFloat mode (always at top)
  • None mode (hidden when focused)
  • Hint animation and positioning
  • Best practices for hint labels

Advanced Features

📄 Read: references/advanced-features.md

  • RTL support with FlowDirection property
  • Right-to-left text flow configuration
  • Dropdown border customization
  • Complete API reference summary
  • Performance considerations
  • Best practices and patterns
  • Troubleshooting common issues

Quick Start Example

Basic TextInputLayout with Hint

XAML:

<Window xmlns:inputLayout="clr-namespace:Syncfusion.UI.Xaml.TextInputLayout;assembly=Syncfusion.SfTextInputLayout.WPF">

    <inputLayout:SfTextInputLayout
        Hint="Name"
        HelperText="Enter your full name">
        <TextBox />
    </inputLayout:SfTextInputLayout>

</Window>

C#:

using Syncfusion.UI.Xaml.TextInputLayout;

var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.HelperText = "Enter your full name";
inputLayout.InputView = new TextBox();

With Validation and Error State

XAML:

<inputLayout:SfTextInputLayout
    Hint="Email"
    HelperText="Enter a valid email address"
    ErrorText="Invalid email format"
    HasError="True"
    ErrorForeground="Red">
    <TextBox Text="invalid@"/>
</inputLayout:SfTextInputLayout>

Outlined Container with Icon

XAML:

<inputLayout:SfTextInputLayout
    Hint="Search"
    ContainerType="Outlined"
    FocusedForeground="Blue">
    <TextBox />
    <inputLayout:SfTextInputLayout.LeadingView>
        <Label Content="🔍" FontSize="16"/>
    </inputLayout:SfTextInputLayout.LeadingView>
</inputLayout:SfTextInputLayout>

Common Patterns

Form Field with Validation Pattern

Use this pattern for validated form inputs:

<StackPanel>
    <!-- Text Input with Helper -->
    <inputLayout:SfTextInputLayout
        Hint="Username"
        HelperText="At least 5 characters"
        CharMaxLength="20"
        CharCountVisibility="Visible">
        <TextBox TextChanged="ValidateUsername"/>
    </inputLayout:SfTextInputLayout>

    <!-- Password Input -->
    <inputLayout:SfTextInputLayout
        Hint="Password"
        HelperText="Must contain letters and numbers">
        <PasswordBox PasswordChanged="ValidatePassword"/>
    </inputLayout:SfTextInputLayout>
</StackPanel>
private void ValidateUsername(object sender, TextChangedEventArgs e)
{
    var textBox = sender as TextBox;
    var layout = FindParent<SfTextInputLayout>(textBox);

    if (textBox.Text.Length < 5)
    {
        layout.HasError = true;
        layout.ErrorText = "Username too short";
    }
    else
    {
        layout.HasError = false;
    }
}

Material Design Style Pattern

Create Material Design-style inputs:

<inputLayout:SfTextInputLayout
    Hint="Email Address"
    ContainerType="Filled"
    FocusedForeground="#6200EE"
    ContainerBackground="#F5F5F5"
    HelperText="We'll never share your email">
    <TextBox />
</inputLayout:SfTextInputLayout>

Search Box with Icons Pattern

Implement search inputs with leading/trailing icons:

<inputLayout:SfTextInputLayout
    Hint="Search..."
    ContainerType="Outlined"
    OutlineCornerRadius="20">
    <TextBox TextChanged="OnSearchTextChanged"/>

    <inputLayout:SfTextInputLayout.LeadingView>
        <Label Content="🔍" FontSize="18"/>
    </inputLayout:SfTextInputLayout.LeadingView>

    <inputLayout:SfTextInputLayout.TrailingView>
        <Button Content="✕" Click="ClearSearch"
                Background="Transparent" BorderThickness="0"/>
    </inputLayout:SfTextInputLayout.TrailingView>
</inputLayout:SfTextInputLayout>

Dropdown with Outlined Container Pattern

Enhance ComboBox with TextInputLayout:

<inputLayout:SfTextInputLayout
    Hint="Country"
    ContainerType="Outlined"
    FocusedBorderBrush="Blue">
    <ComboBox ItemsSource="{Binding Countries}"
              SelectedItem="{Binding SelectedCountry}"/>
</inputLayout:SfTextInputLayout>

Key Properties

Core Configuration

  • InputView: The input control (TextBox, PasswordBox, etc.)
  • Hint: Floating label text
  • HintVisibility: Control hint label visibility
  • HintFloatMode: Float, AlwaysFloat, or None
  • ContainerType: Outlined, Filled, or None

Assistive Labels

  • HelperText: Additional guidance text
  • ErrorText: Error message text
  • HasError: Boolean to show error state
  • CharMaxLength: Maximum character limit
  • CharCountVisibility: Show/hide character counter

Styling Properties

  • FocusedForeground: Color when focused
  • Foreground: Color when unfocused
  • ErrorForeground: Color in error state
  • ContainerBackground: Background color
  • FocusedBorderBrush: Border color when focused

Border and Stroke

  • StrokeThickness: Unfocused border thickness (default: 1)
  • FocusedStrokeThickness: Focused border thickness (default: 2)
  • OutlineCornerRadius: Corner radius for outlined borders

Icons and Views

  • LeadingView: Icon/view on the left
  • LeadingViewPosition: Inside or Outside
  • TrailingView: Icon/view on the right
  • TrailingViewPosition: Inside or Outside

Common Use Cases

User Registration Form

Combine multiple TextInputLayout controls with validation for username, email, password, and other fields with real-time validation feedback.

Login Screen

Create clean, Material Design-style login forms with email/username and password inputs with floating labels and error states.

Search Interfaces

Implement search boxes with icons, placeholder hints, and clear buttons using leading/trailing views.

Data Entry Forms

Build comprehensive forms with helper text, character limits, and validation messages for improved user experience.

Settings Panels

Use TextInputLayout with various input types (TextBox, ComboBox, PasswordBox) for consistent styling in settings interfaces.

Profile Editing

Create profile edit forms with validation, character counters for bio fields, and proper error handling.

Related Components

  • TextBox: Primary input view for text
  • PasswordBox: For password inputs
  • ComboBox/ComboBoxAdv: For dropdown selections
  • SfTextBoxExt: For autocomplete functionality

Notes

  • The hint label automatically animates based on focus state
  • Error validation logic must be implemented at application level
  • Character counter shows error color when limit exceeded
  • FocusedBorderBrush overrides FocusedForeground for borders
  • DropDownBorder only applies to ComboBox/ComboBoxAdv
  • OutlineCornerRadius only applies to Outlined container type

Next Steps: Navigate to the reference documentation above based on your implementation needs. Start with getting-started.md for initial setup, then explore specific features as needed.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.38%
按下载量换算129

Claude

28.86%
按下载量换算106

Cursor

17.13%
按下载量换算63

Gemini CLI

8.85%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills