// tslint:disable
import { AtomXFControl } from "web-atoms-core/dist/xf/controls/AtomXFControl";
import { AtomBridge } from "web-atoms-core/dist/core/AtomBridge";
declare var UMD: any;
const __moduleName = this.filename;
export default class Root extends AtomXFControl {
public static readonly _$_url = __moduleName ;
constructor(app: any, e?: any) {
super(app, e || AtomBridge.instance.create("Xamarin.Forms.ContentPage"));
}
protected create(): void {
super.create();
this.loadXaml(`
`);
const e1 = this.find("e1");
this.setLocalValue(e1, "ItemTemplate", () => new (Root_e1_Creator(this))(this.app));
this.bind(e1, "ItemsSource", [["viewModel","menuService","menus"]], false , null );
}
}
function Root_e1_Creator(__creator: any): any {
return class Root_e1 extends AtomXFControl {
constructor(app: any, e?: any) {
super(app, e || AtomBridge.instance.create("Xamarin.Forms.Label"));
}
protected create(): void {
super.create();
this.loadXaml(` `);
const e1 = this.find("e1");
this.runAfterInit( () => this.setLocalValue(e1, "Text", ((this.data) ? this.data.label : undefined)) );
this.setPrimitiveValue(e1, "eventTapGesture", () => this.data.click() );
}
}
;
}