More selection edge cases fixed

This commit is contained in:
TheXamlGuy
2024-05-21 22:38:11 +01:00
parent fda5e7db6c
commit 4c2bc8e628
5 changed files with 32 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Selection
{
public static SelectionEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static SelectionEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}