Creating Wpf Flowdocument
БесплатноБез исполняемых скриптовНе проверенCreates WPF FlowDocument for rich text display with Paragraph, Table, List elements. Use when building document viewers, rich text editors, or printable…
от christian289★ 42 звезды на GitHubОб этом скилле
WPF FlowDocument Patterns
Creating rich, paginated documents with flowing text content.
Advanced Patterns: See ADVANCED.md for programmatic creation, printing, and file I/O.
1. FlowDocument Overview
FlowDocument
├── Block Elements (Paragraph, Section, List, Table, BlockUIContainer)
│ └── Inline Elements (Run, Bold, Italic, Hyperlink, InlineUIContainer)
├── Viewers
│ ├── FlowDocumentScrollViewer (continuous scroll)
│ ├── FlowDocumentPageViewer (page by page)
│ └── FlowDocumentReader (multiple viewing modes)
└── Features
├── Automatic pagination
├── Column layout
├── Figure/Floater positioning
└── Print support
2. Basic FlowDocument
2.1 Simple Document
<FlowDocumentScrollViewer>
<FlowDocument FontFamily="Segoe UI" FontSize="14">
<Paragraph FontSize="24" FontWeight="Bold">
Document Title
</Paragraph>
<Paragraph>
This is a paragraph with <Bold>bold</Bold>,
<Italic>italic</Italic>, and
<Underline>underlined</Underline> text.
</Paragraph>
<Paragraph TextAlignment="Justify">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</Paragraph>
</FlowDocument>
</FlowDocumentScrollViewer>
2.2 Document Properties
<FlowDocument
FontFamily="Georgia"
FontSize="14"
PageWidth="800"
PageHeight="1100"
PagePadding="50"
ColumnWidth="350"
ColumnGap="20"
IsColumnWidthFlexible="True"
IsOptimalParagraphEnabled="True"
IsHyphenationEnabled="True">
<!-- Content -->
</FlowDocument>
3. Block Elements
3.1 Paragraph
<Paragraph TextAlignment="Left"
TextIndent="20"
LineHeight="24"
Margin="0,10,0,10">
Regular paragraph text with indentation.
</Paragraph>
<Paragraph Background="#F0F0F0" Padding="10">
Highlighted paragraph with background.
</Paragraph>
3.2 Section (Grouping)
<Section FontSize="12" Foreground="DarkGray">
<Paragraph>First paragraph in section.</Paragraph>
<Paragraph>Second paragraph in section.</Paragraph>
<Paragraph>All paragraphs inherit section styling.</Paragraph>
</Section>
3.3 List
<!-- Bulleted list -->
<List MarkerStyle="Disc">
<ListItem>
<Paragraph>First item</Paragraph>
</ListItem>
<ListItem>
<Paragraph>Second item</Paragraph>
<List MarkerStyle="Circle">
<ListItem><Paragraph>Nested item 1</Paragraph></ListItem>
<ListItem><Paragraph>Nested item 2</Paragraph></ListItem>
</List>
</ListItem>
</List>
<!-- Numbered list -->
<List MarkerStyle="Decimal" StartIndex="1">
<ListItem><Paragraph>Step one</Paragraph></ListItem>
<ListItem><Paragraph>Step two</Paragraph></ListItem>
</List>
MarkerStyle Options: None, Disc, Circle, Square, Box, LowerRoman, UpperRoman, LowerLatin, UpperLatin, Decimal
3.4 Table
<Table CellSpacing="0">
<Table.Columns>
<TableColumn Width="100"/>
<TableColumn Width="200"/>
<TableColumn Width="100"/>
</Table.Columns>
<!-- Header row -->
<TableRowGroup Background="#E0E0E0">
<TableRow>
<TableCell><Paragraph FontWeight="Bold">Name</Paragraph></TableCell>
<TableCell><Paragraph FontWeight="Bold">Description</Paragraph></TableCell>
<TableCell><Paragraph FontWeight="Bold">Price</Paragraph></TableCell>
</TableRow>
</TableRowGroup>
<!-- Data rows -->
<TableRowGroup>
<TableRow>
<TableCell><Paragraph>Item 1</Paragraph></TableCell>
<TableCell><Paragraph>Description of item 1</Paragraph></TableCell>
<TableCell><Paragraph>$10.00</Paragraph></TableCell>
</TableRow>
</TableRowGroup>
</Table>
3.5 BlockUIContainer (Embedding UI)
<BlockUIContainer>
<Image Source="/Images/diagram.png" Width="400" Stretch="Uniform"/>
</BlockUIContainer>
<BlockUIContainer>
<Button Content="Click Me" Width="100" Height="30"/>
</BlockUIContainer>
4. Inline Elements
4.1 Text Formatting
<Paragraph>
<Run>Normal text</Run>
<Bold>Bold text</Bold>
<Italic>Italic text</Italic>
<Underline>Underlined text</Underline>
<Run FontFamily="Consolas" Background="#F0F0F0">Code text</Run>
<Run Foreground="Red">Colored text</Run>
<Span BaselineAlignment="Superscript" FontSize="10">superscript</Span>
</Paragraph>
4.2 Hyperlink
<Paragraph>
Visit <Hyperlink NavigateUri="https://example.com"
RequestNavigate="Hyperlink_RequestNavigate">
Example.com
</Hyperlink> for more info.
</Paragraph>
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
System.Diagnostics.Process.Start(new ProcessStartInfo
{
FileName = e.Uri.AbsoluteUri,
UseShellExecute = tru
Установить Creating Wpf Flowdocument в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Creating Wpf Flowdocument?
Creates WPF FlowDocument for rich text display with Paragraph, Table, List elements. Use when building document viewers, rich text editors, or printable reports.
Как установить скилл Creating Wpf Flowdocument?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Creating Wpf Flowdocument запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic