This commit is contained in:
Pilzinsel64
2025-11-11 14:50:32 +01:00
parent 40b753062a
commit 593cdfb92c
3 changed files with 84 additions and 29 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.ComponentModel;
using Avalonia;
using Avalonia.Controls;
@@ -168,10 +169,15 @@ public partial class AvaloniaFlyoutBase : UserControl
{
}
protected void Close()
{
OnClose?.Invoke(this, EventArgs.Empty);
}
protected void Close(object? result)
{
Result = result;
OnClose?.Invoke(this, EventArgs.Empty);
Close();
}
protected virtual bool ValidateOK()