33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
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();
|
|
// }
|
|
} |