public async Task PushAsync <TPage>(TPage page, bool animated = true) where TPage : Page { if (_navigation == null) { throw new Exception("Not initialized."); } if (page == null) { throw new Exception("Page may not be null."); } #if DEBUG System.Diagnostics.Debug.WriteLine($"]]] PushAsync {typeof(TPage).Name}"); #endif await DeviceEx.BeginInvokeOnMainThreadAsync(_navigation.PushAsync(page, animated)); }