add Avalonia Dialogs
This commit is contained in:
33
Pilz.UI.AvaloniaUI/Dialogs/AvaloniaFlyoutBase.Statics.cs
Normal file
33
Pilz.UI.AvaloniaUI/Dialogs/AvaloniaFlyoutBase.Statics.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Pilz.UI.AvaloniaUI.Dialogs;
|
||||
|
||||
public partial class AvaloniaFlyoutBase
|
||||
{
|
||||
// public static void Show<T>(Control controlToAssociate, object? tag = null)
|
||||
// {
|
||||
// Show<T>(controlToAssociate, null, null, tag: tag);
|
||||
// }
|
||||
//
|
||||
// public static void Show<T>(Control controlToAssociate, string? title, RadSvgImage? icon, object? tag = null)
|
||||
// {
|
||||
// Show(controlToAssociate, typeof(T), title, icon, tag: tag);
|
||||
// }
|
||||
//
|
||||
// public static void Show(Control controlToAssociate, Type flyoutContentType, string? title, RadSvgImage? icon, object? tag = null)
|
||||
// {
|
||||
// tagToAssign = tag;
|
||||
// titleToAssing = title;
|
||||
// iconToAssign = icon;
|
||||
// ParentContext = controlToAssociate;
|
||||
// CloseFlyout(); // Ensure it's closed!
|
||||
// RadFlyoutManager.Show(controlToAssociate, flyoutContentType);
|
||||
// }
|
||||
//
|
||||
// protected static void CloseFlyout()
|
||||
// {
|
||||
// if (typeof(RadFlyoutManager).GetField("flyoutInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static).GetValue(null) is FlyoutScreen instance
|
||||
// && instance.IsActive)
|
||||
// RadFlyoutManager.Close();
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user