SimTabBar 0.3.0
dotnet add package SimTabBar --version 0.3.0
NuGet\Install-Package SimTabBar -Version 0.3.0
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="SimTabBar" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimTabBar" Version="0.3.0" />
<PackageReference Include="SimTabBar" />
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 SimTabBar --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimTabBar, 0.3.0"
#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 SimTabBar@0.3.0
#: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=SimTabBar&version=0.3.0
#tool nuget:?package=SimTabBar&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimTabBar
类似 VS Code 的标签页 Avalonia 控件库。
功能特性
- 宽度模式 — Equal / SizeToContent / Compact / Fixed 四种标签页宽度策略
- 标签头模板 —
HeaderTemplate让标签头渲染任意多元素(如状态圆点 + 标题),模板上下文为数据项,可对局部元素单独着色;TabBar.HeaderTemplate在 ItemsSource 模式下生效 - 关闭按钮模式 — Auto / OnPointerOver / Always 三种显示方式
- 右键菜单 — 关闭 / 关闭其他 / 关闭全部
- 扩展区域 — TabStrip Header / Footer 可插入自定义内容
- 键盘导航 — Ctrl+Tab / Ctrl+Shift+Tab、Ctrl+F4(关闭)
- 固定标签页 — 支持不可关闭的固定标签
- 拖动排序 —
CanReorderTabs开启后按住标签拖动换位(实时让位空隙);TabDragStarting可取消,TabReorderCompleted报告结果 - 主题支持 — 适配深色 / 浅色主题
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Avalonia (>= 12.1.0 && < 13.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.