Skip to content

Commit ee1b89b

Browse files
Merge pull request #831 from AvaloniaUI/custom-controls-library-edits
Custom controls library edits
2 parents 784ac3f + 4d56392 commit ee1b89b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/guides/custom-controls/how-to-create-a-custom-controls-library.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
id: how-to-create-a-custom-controls-library
3-
title: How To Create a Custom Controls Library
3+
title: How To Reference a Custom Controls Library
44
---
55

66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import CustomControlSolutionScreenshot from '/img/guides/custom-controls/custom-control-solution.png';
99
import CustomControlNuGetScreenshot from '/img/guides/custom-controls/custom-control-nuget.png';
1010

11-
# How To Create a Custom Controls Library
11+
# How To Reference a Custom Controls Library
1212

13-
This guide shows you how to create a custom controls library and reference it for use in an _Avalonia UI_ app.
13+
This guide shows you how to reference an existing custom controls library for use in an _Avalonia UI_ app.
1414

1515
<img src={CustomControlSolutionScreenshot} alt=""/>
1616

i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/custom-controls/how-to-create-a-custom-controls-library.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
id: how-to-create-a-custom-controls-library
3-
title: 如何创建自定义控件库
3+
title: 如何引用自定义控件库
44
---
55

66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import CustomControlSolutionScreenshot from '/img/guides/custom-controls/custom-control-solution.png';
99
import CustomControlNuGetScreenshot from '/img/guides/custom-controls/custom-control-nuget.png';
1010

11-
# 如何创建自定义控件库
11+
# 如何引用自定义控件库
1212

13-
本指南将向您展示如何创建自定义控件库并在_Avalonia UI_应用程序中引用它
13+
本指南将向您展示如何创建自定义控件库并在 _Avalonia UI_ 应用程序中引用它
1414

1515
<img src={CustomControlSolutionScreenshot} alt=""/>
1616

17-
在此示例中,将一个自定义控件文件添加到一个.NET类库中。该库已安装了_Avalonia UI_ _NuGet_包
17+
在此示例中,将一个自定义控件文件添加到一个.NET类库中。该库已安装了 _Avalonia UI_ _NuGet_
1818

1919
<img src={CustomControlNuGetScreenshot} alt=""/>
2020

@@ -91,7 +91,7 @@ namespace CCLibrary
9191

9292
## XML命名空间定义
9393

94-
当您在_Avalonia UI_的XAML文件中添加对控件库的引用时,您可能希望使用URL标识格式。例如:
94+
当您在 _Avalonia UI_ 的XAML文件中添加对控件库的引用时,您可能希望使用URL标识格式。例如:
9595

9696
```xml
9797
xmlns:cc="https://my.controls.url"
@@ -104,7 +104,7 @@ xmlns:cc="https://my.controls.url"
104104
```
105105

106106
:::info
107-
您可以在_Avalonia UI_内置控件的源代码中查看此内容[此处](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/Properties/AssemblyInfo.cs)
107+
您可以在 _Avalonia UI_ 内置控件的源代码中查看此内容[此处](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/Properties/AssemblyInfo.cs)
108108
:::
109109

110110
### 常见的命名空间定义

0 commit comments

Comments
 (0)