syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-card-view
syncfusion-wpf-card-view
VerifiedImplement Syncfusion WPF CardView for card-based data display with grouping, sorting, filtering, and editing. Use this when implementing card panels, binding data with ItemsSource, or customizing card layouts in WPF. Covers CardViewItem population, GroupCards, CanSort, CanEdit, EditItemTemplate, HeaderTemplate, ItemTemplate, and SfSkinManager theming.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.0 KB |
| references/data-binding-and-templates.md | markdown | 9.3 KB |
| references/editing.md | markdown | 11.9 KB |
| references/getting-started.md | markdown | 5.7 KB |
| references/grouping.md | markdown | 5.5 KB |
| references/localization.md | markdown | 2.6 KB |
| references/sorting-and-filtering.md | markdown | 9.3 KB |
references/localization.md
View on GitHub# Localization — CardView (WPF)
Translate CardView UI strings (e.g., "Clear Filter" button label) into other languages using .NET resource files.
---
## How It Works
CardView reads localized strings from a `.resx` resource file named `Syncfusion.Tools.Wpf.{culture}.resx`. When `CurrentUICulture` matches a culture that has a resource file, CardView automatically uses the translated strings.
---
## Step 1: Set the Application Culture
Set `CurrentUICulture` **before** `InitializeComponent()`:
```csharp
public MainWindow()
{
// Change to French
System.Threading.Thread.CurrentThread.CurrentUICulture =
new System.Globalization.CultureInfo("fr-FR");
InitializeComponent();
}
```
> Set the culture **before** `InitializeComponent()` for it to take effect.
---
## Step 2: Create the Resources Folder
Add a folder named `Resources` to your WPF project root.
---
## Step 3: Add the Resource File
1. Right-click the `Resources` folder → **Add** → **New Item**
2. Select **Resource File**
3. Name it: `Syncfusion.Tools.Wpf.{culture-code}.resx`
| Culture | File Name |
|---|---|
| French | `Syncfusion.Tools.Wpf.fr-FR.resx` |
| German | `Syncfusion.Tools.Wpf.de-DE.resx` |
| Spanish | `Syncfusion.Tools.Wpf.es-ES.resx` |
| Japanese | `Syncfusion.Tools.Wpf.ja-JP.resx` |
| Arabic | `Syncfusion.Tools.Wpf.ar-SA.resx` |
---
## Step 4: Add Name/Value Pairs
Open the `.resx` file in the Resource Designer and add translations:
| Name | Value (French example) |
|---|---|
| `CardView_ClearFilter` | `Effacer le filtre` |
> Check the Syncfusion documentation for the full list of localizable string keys for the CardView control.
---
## Complete Example (French)
```csharp
// MainWindow.xaml.cs
public MainWindow()
{
System.Threading.Thread.CurrentThread.CurrentUICulture =
new System.Globalization.CultureInfo("fr-FR");
InitializeComponent();
}
```
Resource file: `Resources/Syncfusion.Tools.Wpf.fr-FR.resx`
| Name | Value |
|---|---|
| `CardView_ClearFilter` | `Effacer le filtre` |
---
## Gotchas
| Issue | Cause | Fix |
|---|---|---|
| Strings still in English | Culture set after CardView renders | Set `CurrentUICulture` before `InitializeComponent()` or restart |
| Resource file not found | Wrong file name | Must match exactly: `Syncfusion.Tools.Wpf.{culture}.resx` |
| Resource not applied | File not in `Resources` folder or not included in build | Set **Build Action = Embedded Resource** on the `.resx` file |
| RTL layout for Arabic | Language only sets strings, not layout direction | Also set `FlowDirection="RightToLeft"` on the `CardView` |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |