ignore possible exceptions on closing flyout (thank you telerik...)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user