Skip to content

Commit 5901c94

Browse files
authored
Fix: Prematurely referring to "Greetings.xaml.cs"
The file is still called "MainWindow.xaml.cs" at this point as we haven't renamed it yet.
1 parent d95245f commit 5901c94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/get-started/csharp/tutorial-wpf.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ The final UI element that you'll add is a [Button](/dotnet/framework/wpf/control
334334

335335
::: moniker range="<=vs-2019"
336336

337-
When this application runs, a message box appears after a user chooses a radio button and then chooses the **Display** button. One message box will appear for Hello, and another will appear for Goodbye. To create this behavior, you'll add code to the `Button_Click` event in *Greetings.xaml.cs*.
337+
When this application runs, a message box appears after a user chooses a radio button and then chooses the **Display** button. One message box will appear for Hello, and another will appear for Goodbye. To create this behavior, you'll add code to the `Button_Click` event in *MainWindow.xaml.cs*.
338338

339339
1. On the design surface, double-click the **Display** button.
340340

341-
*Greetings.xaml.cs* opens, with the cursor in the `Button_Click` event.
341+
*MainWindow.xaml.cs* opens, with the cursor in the `Button_Click` event.
342342

343343
```csharp
344344
private void Button_Click(object sender, RoutedEventArgs e)
@@ -366,11 +366,11 @@ When this application runs, a message box appears after a user chooses a radio b
366366

367367
::: moniker range=">=vs-2022"
368368

369-
When this application runs, a message box appears after a user chooses a radio button and then chooses the **Display** button. One message box will appear for Hello, and another will appear for Goodbye. To create this behavior, you'll add code to the `Button_Click` event in *Greetings.xaml.cs*.
369+
When this application runs, a message box appears after a user chooses a radio button and then chooses the **Display** button. One message box will appear for Hello, and another will appear for Goodbye. To create this behavior, you'll add code to the `Button_Click` event in *MainWindow.xaml.cs*.
370370

371371
1. On the design surface, double-click the **Display** button.
372372

373-
*Greetings.xaml.cs* opens, with the cursor in the `Button_Click` event.
373+
*MainWindow.xaml.cs* opens, with the cursor in the `Button_Click` event.
374374

375375
```csharp
376376
private void Button_Click(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)