// 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(); }
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); }