Monday, May 27, 2013

Monotouch Dialog Simple pattern.

public class PrintDialog : DialogViewController
    {
        string path;
        public PrintDialog (string Path) : base (new RootElement(""))
        {
            path = Path;
            this.Pushing = true;
            this.Root = GetUI ();
            this.RefreshRequested += delegate {
                this.Root = GetUI();
                this.ReloadComplete();
            };
        }
        public RootElement GetUI()
        {
           // Generate Your Root Element
        }
    }


I like having my Monotouch Dialogs refresh on drag.

I also like my navigation controller.  Decided I'd post a small bit of code without implementation details that makes me very happy.

1 comment:

  1. Best NJ casino 2021 - JSH Hub
    If you enjoy 목포 출장샵 slots, slot machines, and table 속초 출장안마 games, 정읍 출장샵 then why not try the best NJ 광양 출장샵 casino. Read more here. Slot Machines for 강릉 출장안마 Online Gamblers in NJ.

    ReplyDelete