Skip to content

Commit 534fc62

Browse files
committed
Update wpf.md
1 parent 3d8ee21 commit 534fc62

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

content/quickstart/wpf.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ WpfPlot1.Refresh();
3030

3131
![](/images/quickstart/scottplot-quickstart-wpf.png)
3232

33-
### Startup in .NET Framework Apps
33+
### .NET Framework Apps
3434

35-
Projects targeting .NET Framework should setup their plot inside the `Loaded` event.
35+
Projects targeting .NET Framework should setup their plot inside the `Loaded` event instead of directly in the constructor.
3636

3737
```cs
3838
public MainWindow()
@@ -49,16 +49,13 @@ public MainWindow()
4949
}
5050
```
5151

52-
53-
5452
# Plot using MVVM
5553

5654
WPF applications may be created using MVVM ([Model–view–viewmodel](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel)) pattern to improve separation between the GUI layer and business logic.
5755

5856
* All code accessing the `WpfPlot` object can be kept in the view model - the class set as the `DataContext`
5957

60-
* Your concrete implementation can be adapted to the framework, like using attributes when defining the `PlotControl` property, and the use-case
61-
58+
* Adapt the concrete implementation to the framework (e.g., use attributes to define the `PlotControl`)
6259

6360
### MVVM Example
6461

0 commit comments

Comments
 (0)