Skip to content

Commit 57f4db8

Browse files
authored
Merge branch 'main' into patch-1
2 parents c88bd0d + c0fba73 commit 57f4db8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

docs/concepts/reactiveui/view-activation.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,10 @@ public class View : ReactiveWindow<ViewModel>
6262

6363
### Code-Behind ReactiveUI Bindings
6464

65-
The Avalonia XAML engine doesn't generate strongly typed `x:Name` references to controls. The only way to use [code-behind ReactiveUI bindings](https://reactiveui.net/docs/handbook/data-binding/) for now is to use the `FindControl` method that will find a control by the name specified in XAML, or to use `{Binding Path}` syntax.
66-
67-
The `FindControl` method shouldn't be used inside an expression. Instead, create a custom property which calls the `FindControl` method, or store the control in a variable. See the example below illustrating how to use ReactiveUI code-behind bindings with Avalonia.
68-
6965
```csharp
7066
public class View : ReactiveWindow<ViewModel>
7167
{
7268
// Assume the Button control has the Name="ExampleButton" attribute defined in XAML.
73-
public Button ExampleButton => this.FindControl<Button>("ExampleButton");
74-
7569
public View()
7670
{
7771
this.WhenActivated(disposables =>

docs/tutorials/music-store-app/opening-a-dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ At this point, the code for the interaction is still incomplete. If you attempt
127127
Your next step is to make sure that the main window view knows how to start the interaction. This is implemented in the code-behind file for the main window view, and uses some features of the _ReactiveUI_ framework. Follow this procedure:
128128

129129
- Locate and open the code-behind **MainWindow.axaml.cs** file. (You may need to expand the **MainWindow.axaml** file to find it.)
130-
- Alter the class wo that it inherits from `ReactiveWindow<MainWindowViewModel>`.
130+
- Alter the class so that it inherits from `ReactiveWindow<MainWindowViewModel>`.
131131
- Add the `DoShowDialogAsync` method as follows:
132132

133133
```csharp

0 commit comments

Comments
 (0)