Ensure containers show up in the menu when they are created

This commit is contained in:
TheXamlGuy
2024-05-12 17:09:59 +01:00
parent 4171a31f85
commit 5292896e13
6 changed files with 33 additions and 8 deletions
+8 -1
View File
@@ -1,3 +1,10 @@
namespace Toolkit.Foundation;
public record Activated;
public record Activated<TValue>(TValue? Value = default);
public record Activated
{
public static Activated<TValue> As<TValue>(TValue value) => new(value);
public static Activated<TValue> As<TValue>() where TValue : new() => new(new TValue());
}