and now a more safe way via refleciton
This commit is contained in:
@@ -123,13 +123,8 @@ partial class RadFlyoutBase
|
||||
|
||||
private static void TryCloseFlyout()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (typeof(RadFlyoutManager).GetField("flyoutInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static).GetValue(null) is FlyoutScreen instance
|
||||
&& instance.IsActive)
|
||||
RadFlyoutManager.Close();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user