protected override void OnCreate(Bundle bundle) { ToolbarResource = Resource.Layout.toolbar; TabLayoutResource = Resource.Layout.tabs; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); SvgImageRenderer.Init(); UserDialogs.Init(this); Forms.Init(this, bundle); if (((int)Android.OS.Build.VERSION.SdkInt) >= 23) { CheckPermissions(); } var formsApp = new BleMvxFormsApp(); LoadApplication(formsApp); var presenter = (MvxFormsDroidPagePresenter)Mvx.Resolve <IMvxViewPresenter>(); presenter.MvxFormsApp = formsApp; Mvx.Resolve <IMvxAppStart>().Start(); }
// // 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(); ExtendedTextCellRenderer.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)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); FormsMaps.Init(this, bundle); SvgImageRenderer.Init(); ExtendedTextCellRenderer.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()); }
// // 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(); SvgImageRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); SvgImageRenderer.Init(); LoadApplication(new App()); }
// // 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) { CachedImageRenderer.Init(); SvgImageRenderer.InitializeForms(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new XamJam.Demo.App()); MR.Gestures.iOS.Settings.LicenseKey = "ALZ9-BPVU-XQ35-CEBG-5ZRR-URJQ-ED5U-TSY8-6THP-3GVU-JW8Z-RZGE-CQW6"; return(base.FinishedLaunching(app, options)); }
public MainPage() { InitializeComponent(); SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape; global::Xamarin.Forms.Forms.Init(); SvgImageRenderer.Init(); LoadApplication(new SampleApp.App()); }
public void QuickTest() { var svgFilePath = Path.Combine(Utils.TestFolder, "Test", "Test.svg"); Debug.WriteLine($"Testing QuickTest: {Path.GetFileName(svgFilePath)} in {Path.GetDirectoryName(svgFilePath)}"); using (Image <Rgba32> svgImg = SvgImageRenderer.RenderFromString <Rgba32>(File.ReadAllText(svgFilePath))) { svgImg.Save(Path.Combine(Path.GetDirectoryName(svgFilePath), Path.GetFileNameWithoutExtension(svgFilePath) + ".png")); } }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); UserDialogs.Init(this); SvgImageRenderer.Init(); LoadApplication(new App()); }
public void SvgTest12(string svgFilePath, string pngFilePath, string resultFilePath) { Debug.WriteLine($"Testing SVG12: {Path.GetFileName(svgFilePath)} in {Path.GetDirectoryName(svgFilePath)}"); using (Image <Rgba32> svgImg = SvgImageRenderer.RenderFromString <Rgba32>(File.ReadAllText(svgFilePath))) using (var pngImg = Image.Load(pngFilePath)) using (var result = new Image <Rgba32>(pngImg.Width * 2, pngImg.Height)) { result.Mutate(x => x.DrawImage(pngImg, new Point(0, 0), 1.0f)); result.Mutate(x => x.DrawImage(svgImg, new Point(pngImg.Width, 0), 1.0f)); result.Save(resultFilePath); } }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { //To be registered by Xamarin Forms, assemblies containing xamarin forms plugins have to be loaded before Forms.Init() SvgImageRenderer.InitializeForms(); PlatformGestureEffect.Init(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); HandleNotifications(options); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); SvgImageRenderer.Init(); LoadApplication(new App()); }
// Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar Forms.Init(); SvgImageRenderer.Init(); Core.App.Init(); Thread.Sleep(2000); Content = Core.App.GetMainPage().ConvertPageToUIElement(this); //BuildLocalizedApplicationBar(); }
public MainPage() { InitializeComponent(); SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape; Xamarin.Forms.Forms.Init(); FormsMaps.Init(); SvgImageRenderer.Init(); ExtendedTextCellRenderer.Init(); ExtendedMapRenderer.Init(); LoadApplication(new SampleApp.App()); }
// Constructor public MainPage() { InitializeComponent(); Xamarin.Forms.Forms.Init(); FormsMaps.Init(); SvgImageRenderer.Init(); ExtendedTextCellRenderer.Init(); ExtendedMapRenderer.Init(); RoundedBoxViewRenderer.Init(); LoadApplication(new PluginSampleApp.App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); string dbPath = Path.Combine(folderPath, "wineot.sqlite3"); SQLiteService.SetupDatabase(dbPath, new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid()); Console.WriteLine(dbPath); SvgImageRenderer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState); SvgImageRenderer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SvgImageRenderer.InitializeForms(); global::Xamarin.Forms.Forms.Init(this, bundle); // This is the default/free sample license that only works for "GestureSample" //https://github.com/MichaelRumpler/GestureSample/blob/master/GestureSample/GestureSample.Droid/MainActivity.cs MR.Gestures.Android.Settings.LicenseKey = "ALZ9-BPVU-XQ35-CEBG-5ZRR-URJQ-ED5U-TSY8-6THP-3GVU-JW8Z-RZGE-CQW6"; LoadApplication(new App()); }
/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; CachedImageRenderer.Init(); SvgImageRenderer.InitializeForms(); Xamarin.Forms.Forms.Init(e); MR.Gestures.UWP.Settings.LicenseKey = "ALZ9-BPVU-XQ35-CEBG-5ZRR-URJQ-ED5U-TSY8-6THP-3GVU-JW8Z-RZGE-CQW6"; if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (rootFrame.Content == null) { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter rootFrame.Navigate(typeof(MainPage), e.Arguments); } // Ensure the current window is active Window.Current.Activate(); }
// // 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) { Xamarin.Calabash.Start(); global::Xamarin.Forms.Forms.Init(); SvgImageRenderer.Init(); new SfNumericTextBoxRenderer(); LoadApplication(new App()); SfButtonRenderer.Init(); Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init(); Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init(); SfCalendarRenderer.Init(); SfListViewRenderer.Init(); SfDataFormRenderer.Init(); SfPickerRenderer.Init(); SfTextInputLayoutRenderer.Init(); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // I think we need to do this.. global::Xamarin.Forms.Forms.Init(); SvgImageRenderer.Init(); _window = new UIWindow(UIScreen.MainScreen.Bounds); var setup = new Setup(this, _window); setup.Initialize(); var startup = Mvx.Resolve <IMvxAppStart>(); startup.Start(); _window.MakeKeyAndVisible(); return(true); }
// // 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) { #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif global::Xamarin.Forms.Forms.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); SentrySdk.Init("https://[email protected]/5320492"); //Image Plugin Support CachedImageRenderer.Init(); SvgImageRenderer.Init(); var host = App.BuildHost(typeof(KernelModule).Assembly).Build(); _application = host.Services.GetRequiredService <App>(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
/// <summary> /// Called when [create]. /// </summary> /// <param name="bundle">The bundle.</param> protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironmentOnUnhandledExceptionRaiser; if (!Resolver.IsSet) { SetIoc(); } else { var app = Resolver.Resolve <IXFormsApp>() as IXFormsApp <XFormsApplicationDroid>; app.AppContext = this; } Forms.Init(this, bundle); SvgImageRenderer.Init(); App.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); JavaSystem.LoadLibrary("c++_shared"); JavaSystem.LoadLibrary("indy"); //Telemetry SentrySdk.Init("sentryKit"); //User Dialogs UserDialogs.Init(this); //Xamarin Plugin Support CachedImageRenderer.Init(false); SvgImageRenderer.Init(); Xamarin.Essentials.Platform.Init(Application); ZXing.Net.Mobile.Forms.Android.Platform.Init(); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); ZXing.Mobile.MobileBarcodeScanner.Initialize(Application); CheckAndRequestRequiredPermissions(); // Initializing User Dialogs // Android requires that we set content root. var host = App .BuildHost(typeof(PlatformModule).Assembly) .UseContentRoot(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)).Build(); LoadApplication(host.Services.GetRequiredService <App>()); CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity); }
public async void OnSave(StorageFile file) { SvgImageRendererFileFormat format; switch (file.FileType) { case ".bmp": format = SvgImageRendererFileFormat.Bitmap; break; case ".png": format = SvgImageRendererFileFormat.Png; break; case ".jpg": case ".jpe": case ".jpeg": format = SvgImageRendererFileFormat.Jpeg; break; case ".gif": format = SvgImageRendererFileFormat.Gif; break; default: return; } var content = this.SvgImageControl.Content; await SvgImageRenderer.RendererImageAsync(file, new SvgImageRendererSettings() { Document = content, Format = format, Scaling = 2.0F, }); }
private void PrepareSVGImageRenderer() { SvgImageRenderer.Init(); }
public MainPage() { this.InitializeComponent(); SvgImageRenderer.Init(); LoadApplication(new SampleApp.App()); }