You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
36
36
37
37
```cs
38
38
publicMainWindow()
@@ -49,16 +49,13 @@ public MainWindow()
49
49
}
50
50
```
51
51
52
-
53
-
54
52
# Plot using MVVM
55
53
56
54
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.
57
55
58
56
* All code accessing the `WpfPlot` object can be kept in the view model - the class set as the `DataContext`
59
57
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`)
0 commit comments