Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the road issue in add-a-control.md #626

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ButtonIntellisenseScreenshot from '/img/get-started/test-drive/button-int
Avalonia包含一个内置控件,用于创建按钮。按照以下步骤,将当前在窗口的内容区域中的文本字符串替换为按钮控件。

- 如果应用程序正在运行,请停止它。
- 在 `MainView.axaml` 文件中找到
- 在 `MainWindow.axaml` 文件中找到
`<TextBlock Text="text" HorizontalAlignment="Center" VerticalAlignment="Center"/>`。
- 删除整行。
- 插入一个`Button`标签,如下所示:
Expand Down Expand Up @@ -53,4 +53,4 @@ Avalonia控件的XAML代码使用属性来指定呈现和行为。这些属性
有关Avalonia UI内置控件及其属性的完整信息,请参考[此处](../../reference/controls)。
:::

在下一页中,您将学习如何创建更复杂的布局。
在下一页中,您将学习如何创建更复杂的布局。