MonoMobile.Forms.FormDialogViewController.NavigateTo C# (CSharp) Method

NavigateTo() public method

public NavigateTo ( string file ) : void
file string
return void
		public void NavigateTo(string file){
			var dialog = this;
			UrlConnection.KillAllConnections();
			InvokeOnMainThread(()=>{
				var controller = (FormDialogViewController)Activator.CreateInstance(this.GetType(), file, true);
				dialog.NavigationController.PushViewController(controller, true);
			});
		}
		

Same methods

FormDialogViewController::NavigateTo ( string file, string>.IDictionary hiddenfields ) : void

Usage Example

        public static Action asAction(this JsonObject json, FormDialogViewController dvc)
        {
            if (json.ContainsKey(Constants.Action))
            {
                string actionName = json[Constants.Action];
                return(() => {
                    ControllerAction act;
                    if (json.ContainsKey(Constants.NavigateTo))
                    {
                        act = new ControllerAction(actionName, json[Constants.NavigateTo]);
                    }
                    else
                    {
                        act = new ControllerAction(actionName);
                    }
                    dvc.Execute(act, null, () => {});
                });
            }

            if (json.ContainsKey(Constants.NavigateTo))
            {
                string file = json[Constants.NavigateTo];
                return(() => {
                    dvc.NavigateTo(file);
                });
            }

            return(null);
        }
All Usage Examples Of MonoMobile.Forms.FormDialogViewController::NavigateTo