Skip to content

Commit adfbe40

Browse files
committed
fix docs
1 parent 83acbb2 commit adfbe40

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

docs/get-started/test-drive/add-a-control.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Avalonia contains a built-in control that creates a button. Follow this procedur
1616
- Stop the app if it is running.
1717
- Locate the
1818
`<TextBlock Text="text" HorizontalAlignment="Center" VerticalAlignment="Center"/>`
19-
in the `MainView.axaml` file..
19+
in the `MainWindow.axaml` file..
2020
- Delete the entire line.
2121
- Insert a 'Button' tag as shown:
2222
```xml

docs/get-started/test-drive/main-window.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ In the **MainWindow.axaml** XAML file, the `<Window>...</Window>` XAML tag repre
2121

2222
<img src={LayoutZonesDiagram} alt="" />
2323

24-
In the current application, the content zone of the window references another view: **<views:MainView />**. This is a reference to the **MainView.axaml** file, which is a user control that will be displayed in the content zone of the window.
2524

26-
## The MainView User Control
25+
## The MainWindow control
2726

28-
Inside this user control, you will see a `<TextBlock>...</TextBlock>` XAML tag. This represents a text block control. The `Text` property of the text block is bound to the **Greeting** property of the **MainViewModel** class. This is a property that will be set in the constructor of the view model class.
27+
Inside **MainWindow.axaml**, you will see a `<TextBlock>...</TextBlock>` XAML tag. This represents a text block control. The `Text` property of the text block is bound to the **Greeting** property of the **MainWindowViewModel** class. This is a property that will be set in the constructor of the view model class.
2928
```
3029
<TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
3130
```
3231

33-
You can change the text in the file **MainViewModel.cs** to see the change reflected in the user interface.
32+
You can change the text in the file **MainWindowViewModel.cs** to see the change reflected in the user interface.
3433

3534
<img className="center" src={ViewModelScreenshot} alt="" />
3635
<img className="center" src={AppRunningScreenshot} alt="" />
@@ -42,7 +41,7 @@ For more information about the concept of control layout zones, see [here](../..
4241
## The Visual Studio Designer
4342

4443
If you're using Visual Studio you should see the XAML code and preview pane.
45-
Navigate to the **MainView.axaml** file and click the **Split View** button at the top of the editor window.
44+
Navigate to the **MainWindow.axaml** file and click the **Split View** button at the top of the editor window.
4645

4746
<img className="center" src={VsPreviewerScreenshot} alt="" />
4847

Loading
Loading

0 commit comments

Comments
 (0)