/syncfusion-winui:syncfusion-winui-masked-textboxfrom Syncfusion WinUI Controls
Guide for implementing Syncfusion WinUI MaskedTextBox (SfMaskedTextBox) for validated text input with customizable mask patterns. Use this when implementing masked input fields, formatted data entry (phone numbers, dates, SSN, IP addresses), or restricting text input to specific patterns in WinUI applications. This skill covers mask configuration, prompt characters, and error indication.
Ships in Syncfusion WinUI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for implementing Syncfusion® WinUI MaskedTextBox (SfMaskedTextBox) — an advanced input control that restricts and formats user input using customizable mask patterns, supporting both simple and regex-based masks with error indication and validation.
Use this skill when you need to:
This skill covers complete MaskedTextBox implementation including mask types, validation, error handling, and customization.
Control: SfMaskedTextBox
Namespace: Syncfusion.UI.Xaml.Editors
NuGet Package: Syncfusion.Editors.WinUI
Platform: WinUI 3 Desktop (.NET 5+)
The SfMaskedTextBox control provides:
SfMaskedTextBox
├── Header (optional) - Label above the control
├── Input Area - Masked text entry with prompt characters
├── Error Icon (optional) - Validation feedback indicator
└── Description (optional) - Help text below the control
📄 Read: references/getting-started.md
📄 Read: references/mask-types.md
📄 Read: references/value-formatting.md
📄 Read: references/error-indication.md
📄 Read: references/error-indication-validation.md
📄 Read: references/customization.md
📄 Read: references/events.md
📄 Read: references/events-valuechanged.md
<syncfusion:SfMaskedTextBox Width="200"
Header="Phone Number"
MaskType="Simple"
Mask="(000) 000-0000"
PromptChar="#"
ErrorType="Warning"
Description="Enter your 10-digit phone number"
ValueChanging="OnPhoneNumberChanging" />
private void OnPhoneNumberChanging(object sender, MaskedTextBoxValueChangingEventArgs e)
{
// Show success icon for valid input, warning otherwise
var maskedTextBox = sender as SfMaskedTextBox;
maskedTextBox.ErrorType = e.IsValid ? ErrorType.Success : ErrorType.Warning;
}
<syncfusion:SfMaskedTextBox Width="200"
Header="Date of Birth"
MaskType="Simple"
Mask="00/00/0000"
Value="12/31/1990" />
Use when: Fixed-format date entry (MM/DD/YYYY)
<syncfusion:SfMaskedTextBox Width="300"
Header="Email Address"
MaskType="RegEx"
Mask="[A-Za-z0-9._%-]+@[A-Za-z0-9]+\.[A-Za-z]{2,3}"
ErrorType="Information"
ValueChanging="OnEmailValidation" />
Use when: Variable-length input with pattern validation
<syncfusion:SfMaskedTextBox Width="300"
Header="Product Key"
MaskType="Simple"
Mask=">AAAAA-AAAAA-AAAAA-AAAAA"
Description="Format: XXXXX-XXXXX-XXXXX-XXXXX" />
Use when: Formatted serial numbers or license keys (> converts to uppercase)
<syncfusion:SfMaskedTextBox Width="250"
MaskType="Simple"
Mask="000-00-0000"
ErrorType="Custom"
CustomErrorIcon="ms-appx:///Assets/ErrorIcon.png"
CustomErrorBorderBrush="Red"
ErrorContent="Invalid SSN format" />
Use when: Need custom branding for error states
<syncfusion:SfMaskedTextBox Width="200"
Header="Credit Card"
MaskType="Simple"
Mask="0000 0000 0000 0000"
ValueMaskFormat="ExcludePromptAndLiterals" />
Use when: Display formatted input but return raw values
| Property | Type | Description |
|---|---|---|
| Mask | string | The pattern used to restrict input (e.g., "00/00/0000") |
| MaskType | MaskedTextBoxMaskType | Simple or RegEx mask type |
| Value | string | Current input value |
| PromptChar | char | Character shown for empty mask positions (default '_') |
| ValueMaskFormat | MaskedTextBoxValueMaskFormat | How value is formatted (literals, prompts) |
| ErrorType | ErrorType | Validation feedback type (None, Warning, Success, etc.) |
| CustomErrorIcon | ImageSource | Custom error icon for Custom error type |
| CustomErrorBorderBrush | Brush | Custom border brush for errors |
| ErrorContent | object | Tooltip content shown on error icon hover |
| Header | object | Label displayed above the control |
| HeaderTemplate | DataTemplate | Custom template for header |
| Description | object | Help text displayed below the control |
Create a registration form with phone, email, and SSN fields, each with appropriate masks and validation icons.
Use RegEx masks to support various international phone number formats with country codes.
Implement credit card input with formatted display (groups of 4 digits) and raw value for processing.
Use simple mask "000.000.000.000" with validation to ensure each octet is between 0-255.
Create time input fields with "00:00 >LL" mask supporting 24-hour format with AM/PM indicator.
Implement barcode-compatible input with uppercase conversion and segment validation.
Show contextual error messages based on specific validation rules using ErrorContent.
Use regex patterns that adapt to different locale requirements for phone numbers and postal codes.
Issue: Mask not accepting input
Issue: Value property not updating
Value="{x:Bind Property, Mode=TwoWay}"Issue: Error icon not appearing
Issue: RegEx mask not validating correctly
\\. for literal dot)Issue: Prompt character visible in value
Issue: Header or Description not showing
references/customization.md (opens in a new tab)references/error-indication-validation.md (opens in a new tab)references/error-indication.md (opens in a new tab)references/events-valuechanged.md (opens in a new tab)references/events.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/mask-types.md (opens in a new tab)references/value-formatting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winui39 skills in this plugin
/syncfusion-winui-ai-assistviewGuide for implementing the Syncfusion WinUI AI AssistView control for creating AI chat interfaces and conversational UI. Use this skill when implementing AI chat interfaces, AI assistants, conversational UI, or chatbots in WinUI applications. Essential for creating AI-powered chat experiences, integrating AI services, displaying AI responses, showing typing indicators, providing AI suggestions, managing conversation history with a navigation view, customizing empty states with EmptyView/EmptyViewTemplate, or setting input placeholder text in conversational interfaces with AI services in WinUI./syncfusion-winui-autocompleteGuide implementation of the Syncfusion WinUI AutoComplete control (SfAutoComplete) for creating searchable dropdowns with single or multiple selection, filtering suggestions, and customizable token display. Use this skill when implementing search-as-you-type functionality, autocomplete dropdowns with multi-select, tagging systems with token/chip display, or filtered suggestion boxes in WinUI applications./syncfusion-winui-avatar-viewGuide for implementing the Syncfusion WinUI AvatarView control to display user avatars and profile pictures. Use this when implementing user profiles, contact lists, or chat interfaces requiring visual user representation in WinUI applications. This skill covers initials display, image avatars, group avatars, and pre-defined avatar characters.Other plugins' skills for the same job