Skip to content

Commit 0178418

Browse files
Add callouts to Zh docs
Created callouts in the equivalent docs under i18n/zh-Hans. Mostly machine translations with some light edits by me.
1 parent d28f80e commit 0178418

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/development-guides/improving-performance.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@ title: 提高性能
1616

1717
如果不需要编辑功能,请避免使用`DataGrid`控件,因为它通常被认为对性能不太优化。
1818

19+
:::warning
20+
[`TreeDataGrid`](/accelerate/welcome) 自 2025 年 10 月起作为 Avalonia Accelerate 的一部分进行维护。目前它仍然是大型数据集的推荐选项。
21+
:::
22+
1923
## 虚拟化
2024

2125
在处理大量数据时,启用虚拟化可以提高Avalonia应用程序的性能。虚拟化意味着只有可见控件中的项目才会被渲染,这在需要显示大量项目时显著提高了性能。
2226

2327
### TreeDataGrid
2428
`TreeDataGrid`支持虚拟化,并且可以有效地处理成千上万行复杂的单元格。
2529

30+
:::warning
31+
[`TreeDataGrid`](/accelerate/welcome) 自 2025 年 10 月起作为 Avalonia Accelerate 的一部分进行维护。目前它仍然是大型数据集的推荐选项。
32+
:::
33+
2634
## 优化可视树结构
2735

2836
性能通常会受到深层嵌套和复杂的布局的影响。努力保持XAML标记尽可能简单和扁平化,因为在屏幕上渲染UI元素会触发“布局传递”(一次测量传递,然后是排列传递)。

i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/treedatagrid/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import TreeDataGridNuGetScreenshot from '/img/reference/controls/treedatagrid/tr
1010

1111
`TreeDataGrid` 在单个视图中同时显示分层数据和表格数据。它是树视图和数据网格的组合。
1212

13-
:::info
14-
有关树视图控件的完整信息,请参见[此处](../treeview-1.md)的参考
13+
:::warning
14+
自 2025 年 10 月起,`TreeDataGrid` 已作为 Avalonia Accelerate 的一部分进行维护。请参阅[Accelerate 中关于 `TreeDataGrid` 的文档](/accelerate/components/treedatagrid/quickstart)
1515
:::
1616

17-
:::info
18-
有关数据网格控件的完整信息,请参见[此处](../datagrid/)的参考。
19-
:::
17+
有关 [树视图控件](../treeview-1.md)[数据网格控件](../datagrid/) 的更多信息,请参阅参考页面。
2018

2119
该控件有两种操作模式:
2220

i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/treedatagrid/creating-a-flat-treedatagrid.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import FlatTreeDataGridSourceScreenshot from '/img/reference/controls/treedatagr
66

77
# 扁平树数据表格
88

9+
:::warning
10+
自 2025 年 10 月起,`TreeDataGrid` 作为 Avalonia Accelerate 的一部分进行维护。请参阅[Accelerate 文档中关于扁平化 `TreeDataGrid` 的说明](/accelerate/components/treedatagrid/quickstart-flat)
11+
:::
12+
913
## 示例
1014

1115
在此示例中,视图模型包含一个可观察集合,该集合填充了数据,然后用于创建一个 `FlatTreeDataGridSource` 属性以绑定到树数据网格的源。网格的项是 `Person` 类。

i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/treedatagrid/creating-a-hierarchical-treedatagrid.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import HierarchicalTreeDataGridSourceScreenshot from '/img/reference/controls/tr
66

77
# 分层树数据表格
88

9+
:::warning
10+
自 2025 年 10 月起,`TreeDataGrid` 作为 Avalonia Accelerate 的一部分进行维护。请参阅[Accelerate 文档中关于分层 `TreeDataGrid` 的信息](/accelerate/components/treedatagrid/quickstart-hierarchical)
11+
:::
12+
913
## 示例
1014

1115
在此示例中,视图模型包含一个可观察集合,该集合填充了数据,然后用于创建一个 `HierarchicalTreeDataGridSource` 属性,以绑定到树数据网格的源。网格的项目是类 `Person`

i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/treedatagrid/treedatagrid-column-types.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ description: REFERENCE - Built-in Controls
44

55
# 树形数据表格列类型
66

7+
:::warning
8+
自 2025 年 10 月起,`TreeDataGrid` 已作为 Avalonia Accelerate 的一部分进行维护。请参阅[Accelerate 文档中关于 `TreeDataGrid` 列类型的说明](/accelerate/components/treedatagrid/column-types)
9+
:::
10+
711
树形数据网格支持三种不同的列类型:
812

913
* 文本列

0 commit comments

Comments
 (0)