GitBook: [master] 23 pages modified
This commit is contained in:
Родитель
fd7c6250c6
Коммит
35b8349668
|
@ -3401,7 +3401,7 @@ We bind the SavedTextBlock's Text property to `SavedValue`:
|
||||||
Text="{Binding Path=SavedValue}"/>
|
Text="{Binding Path=SavedValue}"/>
|
||||||
```
|
```
|
||||||
|
|
||||||
And we bind the buttons' Commands to the `Save()` and `Cancel()` methods while also bind the buttons' `IsEnabled` property to `CanSave` Boolean property of the `ViewModel`:
|
And we bind the buttons' Commands to the `Save()` and `Cancel()` methods while also binding the buttons' `IsEnabled` property to `CanSave` Boolean property of the `ViewModel`:
|
||||||
|
|
||||||
```markup
|
```markup
|
||||||
<Button x:Name="CancelButton"
|
<Button x:Name="CancelButton"
|
||||||
|
@ -3418,6 +3418,10 @@ And we bind the buttons' Commands to the `Save()` and `Cancel()` methods while a
|
||||||
|
|
||||||
Of course we can pull the DataTemplate into a different file and even into a different project and re-use it in many places.
|
Of course we can pull the DataTemplate into a different file and even into a different project and re-use it in many places.
|
||||||
|
|
||||||
|
### `ItemsPresenter` Sample
|
||||||
|
|
||||||
|
This sample describes how to use `ItemsPresenter` to display a collection of non-visual objects. The sample's code is located in [NP.Demos.ItemsPresenterSample](https://github.com/npolyak/NP.Avalonia.Demos/tree/main/NP.Demos.AvaloniaBasicConcepts/NP.Demos.ItemsPresenterSample) solution.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Styles
|
## Styles
|
||||||
|
|
Загрузка…
Ссылка в новой задаче