diff --git a/Toolkit.Foundation/Cancel.cs b/Toolkit.Foundation/Cancel.cs new file mode 100644 index 0000000..d9cdcf2 --- /dev/null +++ b/Toolkit.Foundation/Cancel.cs @@ -0,0 +1,10 @@ +namespace Toolkit.Foundation; + +public record Cancel +{ + public static CancelEventArgs As(TValue value) => + new(value); + + public static CancelEventArgs As() where TValue : new() => + new(new TValue()); +} diff --git a/Toolkit.Foundation/CancelEventArgs.cs b/Toolkit.Foundation/CancelEventArgs.cs new file mode 100644 index 0000000..5792b3a --- /dev/null +++ b/Toolkit.Foundation/CancelEventArgs.cs @@ -0,0 +1,3 @@ +namespace Toolkit.Foundation; + +public record CancelEventArgs(TValue Value); diff --git a/Toolkit.Foundation/EditEventArgs.cs b/Toolkit.Foundation/EditEventArgs.cs index 9d1ff77..2e3b649 100644 --- a/Toolkit.Foundation/EditEventArgs.cs +++ b/Toolkit.Foundation/EditEventArgs.cs @@ -1,3 +1,3 @@ namespace Toolkit.Foundation; -public record EditEventArgs(TValue Value); +public record EditEventArgs(TValue Value); \ No newline at end of file diff --git a/Toolkit.UI.Controls.Avalonia/Class1.cs b/Toolkit.UI.Controls.Avalonia/Class1.cs deleted file mode 100644 index cef80b6..0000000 --- a/Toolkit.UI.Controls.Avalonia/Class1.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Avalonia.Controls; -using Avalonia.Controls.Primitives; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Toolkit.UI.Controls; - -public class AttachedFlyout : PopupFlyoutBase -{ - protected override Control CreatePresenter() - { - throw new NotImplementedException(); - } -} diff --git a/Toolkit.UI.Controls.Avalonia/Fonts/FluentSystemIcons-Regular.ttf b/Toolkit.UI.Controls.Avalonia/Fonts/FluentSystemIcons-Regular.ttf new file mode 100644 index 0000000..b7dfdc2 Binary files /dev/null and b/Toolkit.UI.Controls.Avalonia/Fonts/FluentSystemIcons-Regular.ttf differ diff --git a/Toolkit.UI.Controls.Avalonia/Themes/ControlResources.axaml b/Toolkit.UI.Controls.Avalonia/Themes/ControlResources.axaml index 4955d66..35898a6 100644 --- a/Toolkit.UI.Controls.Avalonia/Themes/ControlResources.axaml +++ b/Toolkit.UI.Controls.Avalonia/Themes/ControlResources.axaml @@ -1,6 +1,7 @@ + /Fonts/#FluentSystemIcons-Regular diff --git a/Toolkit.UI.Controls.Avalonia/Toolkit.UI.Controls.Avalonia.csproj b/Toolkit.UI.Controls.Avalonia/Toolkit.UI.Controls.Avalonia.csproj index 1363073..70538bb 100644 --- a/Toolkit.UI.Controls.Avalonia/Toolkit.UI.Controls.Avalonia.csproj +++ b/Toolkit.UI.Controls.Avalonia/Toolkit.UI.Controls.Avalonia.csproj @@ -5,6 +5,12 @@ enable true + + + + + +