ignore possible exceptions on closing flyout (thank you telerik...)

This commit is contained in:
Pilzinsel64
2025-04-08 12:29:10 +02:00
parent 3844099acf
commit baca77f701

View File

@@ -116,8 +116,20 @@ partial class RadFlyoutBase
throw new NullReferenceException(nameof(ParentContext));
if (ParentContext is null)
RadFlyoutManager.Close();
TryCloseFlyout();
else
ParentContext.BeginInvoke(RadFlyoutManager.Close);
ParentContext.BeginInvoke(TryCloseFlyout);
}
private static void TryCloseFlyout()
{
try
{
RadFlyoutManager.Close();
}
catch (Exception)
{
// Ignore
}
}
}