View model disposal is now done via a lambda method with captured variables rather than by tagging the view
This commit is contained in:
parent
07be49c952
commit
f6457b1909
3 changed files with 39 additions and 39 deletions
|
@ -21,6 +21,10 @@ using System;
|
|||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
using System.Runtime.Versioning;
|
||||
#endif
|
||||
|
||||
using Nuclex.Support;
|
||||
|
||||
namespace Nuclex.Windows.Forms.Views {
|
||||
|
@ -28,6 +32,9 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
/// <summary>
|
||||
/// Base class for MVVM user controls that act as views connected to a view model
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
[SupportedOSPlatform("windows")]
|
||||
#endif
|
||||
public class ViewControl : UserControl, IView {
|
||||
|
||||
/// <summary>Initializes a new view control</summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue