TestElements() public static method

public static TestElements ( ) : RootElement
return MonoMobile.Dialog.RootElement
示例#1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // TODO: traversing RootElement tree with DialogViewController
            // Single Inheritance - Elements cannot inherit from both
            //		Element
            // and
            //		Windows Phone controls
            // Suggested API:
            //		RootElement.Children
            // during traversal children add themselves to parent?!?!

            RootElement re = UserInterface.TestElements();
        }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            UserInterface.a1 = this;

            RootElement root =
                //DialogSampleApp.UserInterface.UIDefine()
                //UserInterface.UICities()
                UserInterface.TestElements()
            ;

            var da = new DialogAdapter(this, root);

            var lv = new ListView(this)
            {
                Adapter = da
            };

            SetContentView(lv);
        }