MCPInstall

syncfusion-wpf-text-input-layout

Implements the Syncfusion WPF SfTextInputLayout control to provide floating labels, assistive labels, and input validation UI for WPF text inputs. Use when adding floating labels, customizing input container styles, or showing validation/helper text.

Installs
155
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

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

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-wpf-text-input-layout automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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, DatePicker, SfDatePicker, SfTimePicker, UpDown, SfMaskedEdit, IntegerTextBox, DoubleTextBox, PercentTextBox, CurrencyTextBox
  • 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, SfTextBoxExt, DatePicker, SfDatePicker, SfTimePicker, UpDown, SfMaskedEdit, IntegerTextBox, DoubleTextBox, PercentTextBox, CurrencyTextBox
  • 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
  • DatePicker/SfDatePicker: For date selection
  • SfTimePicker: For time selection
  • UpDown: For numeric stepper input
  • SfMaskedEdit: For masked text input
  • IntegerTextBox/DoubleTextBox/PercentTextBox/CurrencyTextBox: For numeric inputs

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.

FAQ

What does the syncfusion-wpf-text-input-layout skill do?

Implements the Syncfusion WPF SfTextInputLayout control to provide floating labels, assistive labels, and input validation UI for WPF text inputs. Use when adding floating labels, customizing input container styles, or showing validation/helper text.

How do I install syncfusion-wpf-text-input-layout?

Run npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-text-input-layout in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-wpf-text-input-layout/ (personal) or .claude/skills/syncfusion-wpf-text-input-layout/ (project).

Which AI agents can use syncfusion-wpf-text-input-layout?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-wpf-text-input-layout safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-wpf-text-input-layout?

It is published by syncfusion in syncfusion/wpf-ui-components-skills. It has 155 recorded installs.

More from syncfusion/wpf-ui-components-skills

View all →

syncfusion-wpf-theming

syncfusion/wpf-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design184 installs

syncfusion-wpf-datagrid

syncfusion/wpf-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design176 installs

syncfusion-wpf-carousel

syncfusion/wpf-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design164 installs

syncfusion-wpf-button

syncfusion/wpf-ui-components-skills

Implement Syncfusion WPF ButtonAdv controls for configurable button UIs. Use this when adding, configuring, or customizing a Syncfusion WPF ButtonAdv — including labels, icons, size modes, toggle/checkable behavior, MVVM command binding, multiline text, corner radius, IsDefault/IsCancel modes, icon templates, and themes.

Frontend & Design163 installs

syncfusion-wpf-combobox

syncfusion/wpf-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design163 installs

syncfusion-wpf-licensing

syncfusion/wpf-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design162 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs