I want to bring the application to the top of all other apps, but i have tried all the below codes, but none of them working as expected.
code snippet
UIWindow window = UIApplication.SharedApplication.Windows[0];
if (window != null)
{
window.MakeKeyAndVisible();
}
Another code snippet
UIWindow window = UIApplication.SharedApplication.KeyWindow;
if (window != null)
{
window.MakeKeyAndVisible();
}
Application should brought to the top as expected