Skip to main content
net8.0

Avalonia UI controls for documentation and demo scenarios (DemoSectionView, PageMetadataView, AnchorScrollViewer).

Published
Sep 15, 2026
1mo ago
Total Downloads
280
280

Install

dotnet add package Irihi.Dogma.Controls --version 0.5.0
ProductVersions
.NET
net8.0

README

Irihi.Dogma

NuGet License: MIT

A set of Avalonia UI controls designed for documentation and demo scenarios.

⚠️ Support & Scope

This repository exists to serve IRIHI's own product demos — it is not a general-purpose, publicly supported library. Before using it, please understand that:

  • No support — external support requests, issues, and feature suggestions are not processed.
  • No compatibility guarantees — APIs may change or break at any time, without notice or semantic-versioning discipline.
  • Demo-first — code targets our internal demo scenarios; use cases outside those scenarios are out of scope.

Use at your own risk.

Features

  • CodeBlock — syntax-highlighted, selectable, copyable code display control with zero external dependencies
    • Supports AXAML and C# syntax highlighting
    • Built-in light/dark theme support
    • Line numbers and copy button
  • DocSite — documentation site scaffolding with DocPage and DocCategory attributes, plus a source-generator that wires them up automatically

Installation

dotnet add package Irihi.Dogma

Usage

CodeBlock

<dogma:CodeBlock Language="CSharp"
                 Code="{Binding MySourceCode}"
                 ShowLineNumbers="True"
                 ShowCopyButton="True" />

DocSite

Annotate your demo view-models with [DocPage] / [DocCategory] attributes. The included source generator automatically registers them into IDocRegistry at compile time.

[DocPage("My Page", Category = "Getting Started")]
public partial class MyPageViewModel : IViewModelProvider { ... }

Building

dotnet build Irihi.Dogma.slnx
dotnet test Irihi.Dogma.slnx

License

MIT © Irihi Technology

Changes from Previous Version

No structural changes between v0.4.0 and v0.5.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.