Monotouch.Dialog - setting the back button

I use MonoTouch.Dialog DialogViewController to create a beautiful view.

private RootElement _createRoot(){ return new RootElement ("Buy a Property Report"){ new Section (""){ new StringElement ("View Sample", ()=>{ }), new StringElement ("Enter Address", ()=>{ }), new StringElement ("Locate This House", () => { }), new StringElement ("My Reports", () => { }) } }; } 

On the following screens, I need to have a "Back" button, which is different from what I indicated in the previous "Buy Property Report" on "Home"

I'm doing it.

 public override void ViewDidLoad () { base.ViewDidLoad (); this.NavigationController.NavigationBar.TopItem.Title = "Home"; } 

Is there a way to do this in Monotouch.Dialog instead?

+4
source share
1 answer

I'm not sure I understand your question well, but try using it in a dialog controller:

 this.NavigationItem.BackBarButtonItem.Title = "Home"; 
+2
source

Source: https://habr.com/ru/post/1343721/


All Articles