void UpdateCurrentPagePreferredStatusBarUpdateAnimation() { // Not using the extension method syntax here because for some reason it confuses the mono compiler // and throws a CS0121 error PageUIStatusBarAnimation animation = PlatformConfiguration.iOSSpecific.Page.PreferredStatusBarUpdateAnimation(((Page)Element).OnThisPlatform()); PlatformConfiguration.iOSSpecific.Page.SetPreferredStatusBarUpdateAnimation(Current.OnThisPlatform(), animation); }
void UpdateCurrentPagePreferredStatusBarUpdateAnimation() { PageUIStatusBarAnimation animation = ((Page)Element).OnThisPlatform().PreferredStatusBarUpdateAnimation(); Current.OnThisPlatform().SetPreferredStatusBarUpdateAnimation(animation); }