/// <summary> /// Show the modal loading dialog once the view is loaded. /// </summary> /// <param name="animated"></param> public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); _busyView = new BusyView(); _busyView.Show("Exporting..."); Thread thread = new Thread(ThreadEntry); thread.Start(); }
private Task ShowBusy() { var contentView = (Layout <View>)Content; Device.BeginInvokeOnMainThread(() => { var busyView = new BusyView(); busyView.WidthRequest = this.Width; busyView.HeightRequest = this.Height; contentView.Children.Add(busyView); }); return(Task.FromResult(Unit.Default)); }
private void ImportClick(object sender, EventArgs e) { if (string.IsNullOrEmpty(_textFieldImport.Text)) { // AlertView here UIAlertView alertView = new UIAlertView(); alertView.Title = "Please enter some questions to import"; alertView.Show(); return; } _busyView = null; // Show a loading view if we there's a lot of text if (_textFieldImport.Text.Length > 500) { _busyView = new BusyView(); _busyView.Show("Importing..."); } Thread thread = new Thread(Import); thread.Start(); }