// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); FormsMaps.Init(); SvgImageRenderer.Init(); TwoColumnCellRenderer.Init(); RoundedBoxViewRenderer.Init(); global::Xamarin.Forms.Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) => { // http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/ if (null != e.View.StyleId) { e.NativeView.AccessibilityIdentifier = e.View.StyleId; Console.WriteLine("Set AccessibilityIdentifier: " + e.View.StyleId); } }; #if DEBUG // requires Xamarin Test Cloud Agent component Calabash.Start(); #endif LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// Constructor public MainPage() { InitializeComponent(); Xamarin.Forms.Forms.Init(); FormsMaps.Init(); SvgImageRenderer.Init(); TwoColumnCellRenderer.Init(); ExtendedMapRenderer.Init(); RoundedBoxViewRenderer.Init(); LoadApplication(new PluginSampleApp.App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); FormsMaps.Init(this, bundle); SvgImageRenderer.Init(); TwoColumnCellRenderer.Init(); ExtendedMapRenderer.Init(); RoundedBoxViewRenderer.Init(); // http://forums.xamarin.com/discussion/21148/calabash-and-xamarin-forms-what-am-i-missing global::Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { if (e.NativeView != null) { e.NativeView.ContentDescription = e.View.StyleId; } } }; LoadApplication(new App()); }