converting-html-css-to-wpf-xaml
๐ฏSkillfrom christian289/dotnet-with-claudecode
converting-html-css-to-wpf-xaml skill from christian289/dotnet-with-claudecode
Installation
npx skills add https://github.com/christian289/dotnet-with-claudecode --skill converting-html-css-to-wpf-xamlSkill Details
Converts HTML/CSS to WPF CustomControl XAML with correct patterns and common pitfall solutions. Use when transforming web designs to WPF, converting CSS animations to Storyboards, implementing CSS border-radius clipping, CSS pseudo-elements (::before/::after), or CSS transforms in XAML.
Overview
# HTML/CSS โ WPF XAML ๋ณํ ๊ฐ์ด๋
CSS โ WPF ํต์ฌ ๋งคํ ํ ์ด๋ธ
| CSS | WPF ๊ตฌํ ๋ฐฉ๋ฒ | ์ฐธ์กฐ |
| ------------------------------------ | -------------------------------------------------------------- | --------------------------------------- |
| overflow: hidden + border-radius | Border.Clip + RectangleGeometry (RadiusX/Y + MultiBinding) | [clipping.md](references/clipping.md) |
| position: absolute (ํ์ ์์) | Canvas + Canvas.Left/Top | [layout.md](references/layout.md) |
| animation-duration: 3s | Duration="0:0:3" ์ธ๋ผ์ธ | [animation.md](references/animation.md) |
| height: 130% (ํ์ ์์) | Converter๋ก ๋์ ๊ณ์ฐ (๋ฐฐ์จ 2.0) | [transform.md](references/transform.md) |
| ::before, ::after | Canvas ๋ด ์์, ์ ์ธ ์์๋ก z-order | [layout.md](references/layout.md) |
| z-index | ์ ์ธ ์์ ๋๋ Panel.ZIndex | [layout.md](references/layout.md) |
| ์ค์ ์ ๋ ฌ ์ฝํ ์ธ | Canvas ๋ฐ Grid์์ Alignment ์ ์ฉ | [layout.md](references/layout.md) |
| spacing | Maring ์์ฑ์ผ๋ก ๋์ฒด | - |
ํต์ฌ ๊ท์น ์์ฝ
1. Duration์ ํญ์ ์ธ๋ผ์ธ
```xml
```
2. ๋ฅ๊ทผ ๋ชจ์๋ฆฌ ํด๋ฆฌํ์ Border.Clip + RectangleGeometry
```xml
```
3. ํ์ ์์๋ Canvas ๋ด ๋ฐฐ์น
```xml
```
4. ContentPresenter๋ Canvas ๋ฐ Grid์ ๋ฐฐ์น
```xml
```
์ฐธ์กฐ ๋ฌธ์
| ํ์ผ | ๋ด์ฉ |
| ---------------------------------------------------------- | ------------------------------------------------------- |
| [references/index.md](references/index.md) | ์ ์ฒด ์ผ์ด์ค ๋ชฉ๋ก (๋น ๋ฅธ ๊ฒ์์ฉ) |
| [references/clipping.md](references/clipping.md) | ํด๋ฆฌํ ๊ด๋ จ ์ค์ (Grid.Clip, OpacityMask, ClipToBounds) |
| [references/animation.md](references/animation.md) | ์ ๋๋ฉ์ด์ /Duration ๊ด๋ จ |
| [references/layout.md](references/layout.md) | Canvas/Grid/์ ๋ ฌ, pseudo-element ๊ด๋ จ |
| [references/transform.md](references/transform.md) | ํ์ /๋์ด ๊ณ์ฐ ๊ด๋ จ |
| [references/converters.md](references/converters.md) | ํ์ Converter ํจํด |
| [references/case-template.md](references/case-template.md) | ์ ์ผ์ด์ค ์ถ๊ฐ์ฉ ํ ํ๋ฆฟ |
More from this repository7
.NET development plugins for Claude Code - WPF, AvaloniaUI, and more
Enhances WPF development by providing a comprehensive Claude Code extension with 57 skills, 11 specialized agents, and 5 commands for MVVM patterns, custom control design, and performance optimizat...
Configures dependency injection and GenericHost setup for AvaloniaUI applications, enabling service registration and IoC patterns.
Structures AvaloniaUI solutions with clear project naming conventions, layer separation, and dependency management for scalable .NET applications.
Resolves AvaloniaUI RadialGradientBrush compatibility by ensuring GradientOrigin and Center values are identical during WPF to AvaloniaUI conversion.
Enables advanced collection management in AvaloniaUI by providing filtering, sorting, and grouping capabilities using DataGridCollectionView and ReactiveUI.
Guides developers in designing robust, modular, and reusable custom control architectures for AvaloniaUI applications with best practices and architectural patterns.