CodeWF.Avalonia.Controls 12.2.52

dotnet add package CodeWF.Avalonia.Controls --version 12.2.52
                    
NuGet\Install-Package CodeWF.Avalonia.Controls -Version 12.2.52
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeWF.Avalonia.Controls" Version="12.2.52" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Avalonia.Controls" Version="12.2.52" />
                    
Directory.Packages.props
<PackageReference Include="CodeWF.Avalonia.Controls" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeWF.Avalonia.Controls --version 12.2.52
                    
#r "nuget: CodeWF.Avalonia.Controls, 12.2.52"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeWF.Avalonia.Controls@12.2.52
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeWF.Avalonia.Controls&version=12.2.52
                    
Install as a Cake Addin
#tool nuget:?package=CodeWF.Avalonia.Controls&version=12.2.52
                    
Install as a Cake Tool

CodeWF.Avalonia.Controls

基础自定义控件库:控件 API、状态模型、绘制逻辑、标记扩展与转换器,内置 Semi 主题资源(引导、传输列表、状态徽标、标题栏等)。Core custom control library for Avalonia with built-in Semi theme resources.

NuGet License

安装

dotnet add package CodeWF.Avalonia.Controls

nuget.org 上并存现行 12.1.6.x 与已废弃的历史 12.2.x 两条版本线(后者版本号更大),浮动解析会命中旧线;请逐包精确钉版到 12.1.6.*。

依赖 Avalonia 与 Semi.Avalonia(随包自动安装);CodeWF.Avalonia.Lang 经传递引用带入,无需单独安装。目标框架 net11.0,XAML 命名空间统一 https://codewf.com。

主题接入

需先引入 Semi.Avalonia 基础主题,再加载本包样式入口:

<Application.Styles>
  <semi:SemiTheme Locale="zh-CN" />
  <codewf:ACSemiTheme />
</Application.Styles>

窗口类控件另有聚合主题入口 CodeWFTheme。主题资源按 Light / Dark / HighContrast 变体组织,跟随应用主题切换。

控件一览

控件 说明
Guide / GuideOverlay / GuideStep 新手引导:多步骤高亮遮罩、指示器与箭头,支持缺省目标行为
Transfer / SearchListBox 穿梭框与可搜索列表,左右栏自定义渲染
StatusBadge / StatusCard 状态徽标与状态卡片,内置多主题配色(StatusLabelKind)
CodeWFWindow / CodeWFTitleBar 统一标题栏窗口:DWM 圆角、图标与按钮定制(Windows 增强,其余平台自动降级)
WindowedStackPanel 窗口化虚拟化堆叠面板,长列表降低可视化树规模
TrapezoidShapedTabItem / TabStrip 梯形页签
EqualHeightWrapPanel 固定列数、同行等高布局
WatermarkOverlay 输入透明的文字水印(字体/颜色/强度/角度/间距可配)
ColumnDisplayEditor 表格列显示配置编辑器
EntranceMotion(附加属性) 入场动效:淡入/位移/缩放,支持取消与离树清理

另含标记扩展 {codewf:If} / {codewf:Switch} 与配套转换器(EnumToBooleanConverter 等),可独立使用。

用法示例

<Window xmlns="https://github.com/avaloniaui"
        xmlns:codewf="https://codewf.com">
  <codewf:StatusBadge Classes="Info" LeftText="状态" RightText="运行中" />
</Window>

文档

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CodeWF.Avalonia.Controls:

Package Downloads
CodeWF.Avalonia.Markdown

Markdown 完整包:在 Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、行内样式(span style 字号/前景色/背景色,含选区浮动条与可读性回退)、PNG/PDF/Word/公众号 HTML 导出,以及源码编辑器与单栏实时编辑(所见即所得)控件,并内置能力控件主题。Full Markdown package: images, math, mermaid, highlighting, inline span styles (font size / foreground / background with selection bar and readability fallback), export and editors on top of the Lite engine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.2.52 52 11/21/2026
12.1.6.9 71 11/21/2026
12.1.6.8 43 11/20/2026
12.1.6.5 166 11/16/2026
12.1.6.4 102 11/12/2026
12.1.6.3 115 11/11/2026
12.1.6.2 106 11/10/2026
12.1.6.1 104 11/10/2026
12.1.5.11 94 11/10/2026
12.1.5.10 108 11/10/2026
12.1.5.9 103 11/10/2026
12.1.5.8 102 11/9/2026
12.1.5.7 106 11/9/2026
12.1.5.6 98 11/9/2026
12.1.5.4 105 11/8/2026
12.1.5.3 90 11/8/2026
12.1.5.2 150 11/8/2026
12.1.5.1 98 11/8/2026
Loading failed