开发者

Monotouch.Dialog - Setting Back Button

I use the MonoTouch.Dialog DialogViewController to create a nice view.

private RootElement _createRoot(){
    return new RootElement ("Buy a Property Report"){

            new Section (""){
                new StringElement ("View Sampl开发者_高级运维e", ()=>{ }),
                new StringElement ("Enter Address", ()=>{ }),
                new StringElement ("Locate This House", () => { }),
                new StringElement ("My Reports", () => { })
            } 
        };
}

On the following screens I need to have a back button that is different then what I specified in the previous "Buy a Property Report" to "Home"

I do this.

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

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


I am not sure I understand you question well but try to use this on the dialog controller:

this.NavigationItem.BackBarButtonItem.Title = "Home";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜