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

Update Test Drive section for consistency between VS, CLI, and Rider #538

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 5 additions & 12 deletions docs/get-started/test-drive/create-a-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,15 @@ The template will create a new solution and project.
<TabItem value="vs" label="Visual Studio">

- In **Visual Studio**, click **Create a new project**.
- Type `Avalonia` in the search box.
- Click **Avalonia Application** then click **Next**.
- Type `Avalonia MVVM` in the search box.
- Click **Avalonia .NET MVVM App** then click **Next**.

<img className="center" src={VsFindAvaloniaTemplateScreenshot} />

- Name the project `GetStartedApp`, and click **Create**.

- The next screen allows selecting the platforms you wish to target: click **Desktop** then click **Next**.

- The next screen allows selecting a design pattern: click **ReactiveUI** then click **Create**.

The template will create a new solution and two new projects. `GetStartedApp` is the main project that is shared between each platform. `GetStartedApp.Desktop` is the platform-specific project for the desktop platform.
- Name the project `GetStartedApp`, and click **Next**.

- The next screen allows selecting a design pattern: select **ReactiveUI** as the MVVM Toolkit then click **Create**.
- The template will create a new solution and project.
<img className="center" src={VsNewAvaloniaProjectScreenshot} />

</TabItem>
Expand All @@ -91,9 +87,6 @@ Press the **Run** button in the Rider toolbar:

</TabItem>
<TabItem value="vs" label="Visual Studio">

Right-click on the `GetStartedApp.Desktop` project and select **Set as Startup Project**.

Hit `F5` to run the project.

</TabItem>
Expand Down
6 changes: 4 additions & 2 deletions docs/get-started/test-drive/main-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ There may be a red exclamation icon (top left) and the message **The designer is
:::

- Build the project.
- Scroll the preview pane to the left to view the preview outline and the text displayed in the top left corner.
- You will see a preview of the greeting message in the center of the designer section.

<img className="center" src={VsPreviewPaneScreenshot} alt="" />

- Remove the binding `{Binding Greeting}` and change the text `<TextBlock Text="`my text`" ...`
- Remove the binding `{Binding Greeting}` and change the value of the text attribute, e.g.

`<TextBlock Text="Hello world!" .../>`

You will see the new text in the preview pane change as you type. This is an example of the Avalonia **design-time preview behaviour** that will help you develop user interface presentation accurately and quickly.

Expand Down
4 changes: 2 additions & 2 deletions docs/get-started/test-drive/response-to-an-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The partial class `MainWindow` corresponds to the window object that is created
```xml
<Window
...
x:Class="GetStartedApp.MainWindow" >
x:Class="GetStartedApp.Views.MainWindow" >
</Window>
```

Expand Down Expand Up @@ -83,7 +83,7 @@ If you're using an IDE you will see the Avalonia UI Intellisense as you type.
<img className="center" src={ButtonIntellisenseClickScreenshot} alt="" />
:::

- Run the app and click the button.
- Run the app (in debug mode) and click the button.

You should see the result on the Output window for Debug, like this:

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/test-drive/the-design-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Examine the XAML for the `<Window>` tag. It will look like this:
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="550"
x:Class="GetStartedApp.MainWindow"
x:Class="GetStartedApp.Views.MainWindow"
Title="GetStartedApp">
```

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/get-started/test-drive/vs-preview-pane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/get-started/test-drive/vs-previewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.