GitBook: [master] one page and one asset modified

This commit is contained in:
Dan Walmsley 2021-05-13 20:13:19 +00:00 коммит произвёл gitbook-bot
Родитель a6aa951614
Коммит 22872274c1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 07D2180C7B12D0FF
2 изменённых файлов: 2 добавлений и 2 удалений

Двоичные данные
.gitbook/assets/click-me.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.1 KiB

Просмотреть файл

@ -27,7 +27,7 @@ The following images show the user interface that is defined by the XAML in the
Since XAML is XML-based, the UI that you compose with it is assembled in a hierarchy of nested elements known as an [element tree](http://avaloniaui.net/docs/advanced/trees). The element tree provides a logical and intuitive way to create and manage UIs.
![Application window](http://avaloniaui.net/docs/quickstart/images/click-me.png)
![](../../../.gitbook/assets/click-me.png)
### Code-behind
@ -82,5 +82,5 @@ namespace AvaloniaApplication1
{% endtab %}
{% endtabs %}
In this example, the code-behind implements a class that derives from the [`Window`](http://avaloniaui.net/docs/quickstart/window) class. The `x:Class` attribute is used to associate the markup with the code-behind class. `InitializeComponent` is called from the code-behind class's constructor to merge the UI that is defined in markup with the code-behind class. The combination of `x:Class` and `InitializeComponent` ensure that your implementation is correctly initialized whenever it is created. The code-behind class also implements an event handler for the button's `Click` event. When the button is clicked, the event handler changes the text of the button by setting a property on the `Button` control.
In this example, the code-behind implements a class that derives from the [`Window`](http://avaloniaui.net/docs/quickstart/window) class. The `x:Class` attribute is used to associate the markup with the code-behind class. `InitializeComponent` is called from the code-behind class's constructor to merge the UI that is defined in markup with the code-behind class. The combination of `x:Class` and `InitializeComponent` ensure that your implementation is correctly initialised whenever it is created. The code-behind class also implements an event handler for the button's `Click` event. When the button is clicked, the event handler changes the text of the button by setting a property on the `Button` control.