public MainPage() { this.InitializeComponent(); SfDataGridRenderer.Init(); SfListViewRenderer.Init(); SfDataFormRenderer.Init(); SfChartRenderer.Init(); LoadApplication(new ExpenseAnalysis.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(); SfAutoCompleteRenderer.Init(); SfChartRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public MainWindow() { InitializeComponent(); Forms.Init(); SfChartRenderer.Init(); SfListViewRenderer.Init(); SampleBrowser.Core.WPF.CoreSampleBrowser.Init(); LoadApplication(new SampleBrowser.SfChart.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) { Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { Forms.Init(); SfRangeNavigatorRenderer.Init(); SfChartRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { Forms.SetFlags("Brush_Experimental"); Forms.Init(); SfChartRenderer.Init(); SfDataGridRenderer.Init(); SfPopupLayoutRenderer.Init(); LoadApplication(new App(UIScreen.MainScreen.TraitCollection.GetColorTheme())); return(base.FinishedLaunching(app, options)); }
// // 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(); LoadApplication(new App()); //To set localization at the application level //Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR"); SfChartRenderer.Init(); return(base.FinishedLaunching(app, options)); }
public override void DidFinishLaunching(NSNotification notification) { Forms.Init(); SfListViewRenderer.Init(); SfChartRenderer.Init(); SfDataGridRenderer.Init(); LoadApplication(new App()); base.DidFinishLaunching(notification); }
// // 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(); SfListViewRenderer.Init(); SfChartRenderer.Init(); SfTabViewRenderer.Init(); SfMapsRenderer.Init(); SfGaugeRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfBadgeViewRenderer.Init(); SfPickerRenderer.Init(); SfDataGridRenderer.Init(); SfChartRenderer.Init(); SfCardViewRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { Forms.SetFlags("CollectionView_Experimental"); Forms.Init(); FormsMaterial.Init(); _ = new AppBootstrapper(); SfChartRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfSegmentedControlRenderer.Init(); SfExpanderRenderer.Init(); SfChartRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfLinearProgressBarRenderer.Init(); SfCardViewRenderer.Init(); SfPopupLayoutRenderer.Init(); SfButtonRenderer.Init(); SfChartRenderer.Init(); SfListViewRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfChartRenderer.Init(); SfNumericUpDownRenderer.Init(); SfRadioButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfButtonRenderer.Init(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
// // 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) { //await CrossMedia.Current.Initialize(); global::Xamarin.Forms.Forms.Init(); SfCardViewRenderer.Init(); SfListViewRenderer.Init(); SfGradientViewRenderer.Init(); SfChartRenderer.Init(); SfAvatarViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfScheduleRenderer.Init(); SfDatePickerRenderer.Init(); SfComboBoxRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfMapsRenderer.Init(); SfTabViewRenderer.Init(); SfCarouselRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfTreeViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfTimePickerRenderer.Init(); InitializeNLog(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfDataGridRenderer.Init(); SfCardViewRenderer.Init(); SfGradientViewRenderer.Init(); SfChartRenderer.Init(); SfExpanderRenderer.Init(); SfListViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
// 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) { Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfEffectsViewRenderer.Init(); this.LoadApplication(new App()); SfButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfDatePickerRenderer.Init(); SfBorderRenderer.Init(); SfGradientViewRenderer.Init(); SfListViewRenderer.Init(); SfRatingRenderer.Init(); SfRotatorRenderer.Init(); SfComboBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfPopupLayoutRenderer.Init(); SfExpanderRenderer.Init(); SfCardViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfSegmentedControlRenderer.Init(); Core.Init(); SfMapsRenderer.Init(); SfTabViewRenderer.Init(); SfCalendarRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfChartRenderer.Init(); SfGaugeRenderer.Init(); ////UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; ////if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) ////{ //// statusBar.BackgroundColor = Color.FromHex("#e83f94").ToUIColor(); //// statusBar.TintColor = UIColor.White; ////} var result = base.FinishedLaunching(app, options); var safeAreInset = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets; if (safeAreInset.Top > 0) { AppSettings.Instance.IsSafeAreaEnabled = true; AppSettings.Instance.SafeAreaHeight = safeAreInset.Top; } return(result); }
// // 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(); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfChartRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfBorderRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfComboBoxRenderer.Init(); SfMaskedEditRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); SfGradientViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfPickerRenderer.Init(); SfRangeNavigatorRenderer.Init(); SfTreeViewRenderer.Init(); SfChartRenderer.Init(); SfTreeMapRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); SfChartRenderer.Init(); SfDataGridRenderer.Init(); SfListViewRenderer.Init(); new HtmlFormattedLabelRenderer(); new SfChartRenderer(); new SfAutoCompleteRenderer(); new SfPdfDocumentViewRenderer(); new SfBusyIndicatorRenderer(); return(base.FinishedLaunching(app, options)); }
// 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(); ImageCircleRenderer.Init(); SfChartRenderer.Init(); LoadApplication(new App()); // Newer version of Visual Studio for Mac and Visual Studio provide the // ENABLE_TEST_CLOUD compiler directive in the Debug configuration, // but not the Release configuration. #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif return(base.FinishedLaunching(app, options)); }
// // 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(); SfChartRenderer.Init(); XamForms.Controls.iOS.Calendar.Init(); PullToRefreshLayoutRenderer.Init(); GifImageViewRenderer.Init(); SlideOverKit.iOS.MenuContainerPageiOSRenderer renderer = new SlideOverKit.iOS.MenuContainerPageiOSRenderer(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfChartRenderer.Init(); SfRatingRenderer.Init(); Core.Init(); SfRotatorRenderer.Init(); SfGradientViewRenderer.Init(); SfCardViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfBorderRenderer.Init(); SfListViewRenderer.Init(); SfButtonRenderer.Init(); // Need to call this to initialise busy indicator, otherwise it won't work on iOS // https://help.syncfusion.com/xamarin/busy-indicator/getting-started new SfBusyIndicatorRenderer(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
/// <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) { 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; List <Assembly> assembliesToInclude = new List <Assembly> { typeof(SfChartRenderer).GetTypeInfo().Assembly }; Xamarin.Forms.Forms.Init(e, assembliesToInclude); SfChartRenderer.Init(); 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) { if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { // Ask the user for permission to get notifications on iOS 10.0+ UNUserNotificationCenter.Current.RequestAuthorization( UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (approved, error) => { }); // Watch for notifications while app is active UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate(); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { // Ask the user for permission to get notifications on iOS 8.0+ var settings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(settings); } global::Xamarin.Forms.Forms.Init(); AnimationViewRenderer.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); SfChartRenderer.Init(); SfListViewRenderer.Init(); SfButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfNumericUpDownRenderer.Init(); SfTabViewRenderer.Init(); SfPickerRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); CachedImageRenderer.Init(); SfDataFormRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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(); SfDataGridRenderer.Init(); SfListViewRenderer.Init(); SfChartRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfDataFormRenderer.Init(); UITabBarItem.Appearance.TitlePositionAdjustment = new UIOffset(0, -10); UITabBarItem.Appearance.SetTitleTextAttributes(new UITextAttributes() { TextColor = UIColor.White, Font = UIFont.BoldSystemFontOfSize(16) }, UIControlState.Normal); UITabBarItem.Appearance.SetTitleTextAttributes(new UITextAttributes() { TextColor = UIColor.Green, Font = UIFont.BoldSystemFontOfSize(16) }, UIControlState.Selected); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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.FormsMaps.Init(); global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); SfRotatorRenderer.Init(); SfCardLayoutRenderer.Init(); SfCalendarRenderer.Init(); SfCardViewRenderer.Init(); Core.Init(); SfGradientViewRenderer.Init(); SfListViewRenderer.Init(); SfRatingRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfComboBoxRenderer.Init(); SfDatePickerRenderer.Init(); Syncfusion.XForms.iOS.PopupLayout.SfPopupLayoutRenderer.Init(); global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init(); //LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public void ExportAsPDF(string filename, Stream chartStream, SfChart chart) { try { //Create a new PDF document. var document = new PdfDocument(); var page = document.Pages.Add(); var graphics = page.Graphics; graphics.DrawImage(PdfImage.FromStream(chartStream), 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); MemoryStream stream = new MemoryStream(); document.Save(stream); document.Close(true); SavePDF(filename, stream); } finally { chartStream.Flush(); chartStream.Close(); var nativeChart = SfChartRenderer.GetNativeObject(typeof(SfChart), chart); ((Com.Syncfusion.Charts.SfChart)nativeChart).DrawingCacheEnabled = false; } }
// // 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.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfRatingRenderer.Init(); SfComboBoxRenderer.Init(); SfCardViewRenderer.Init(); SfListViewRenderer.Init(); SfGradientViewRenderer.Init(); SfSegmentedControlRenderer.Init(); SfExpanderRenderer.Init(); SfChartRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfListViewRenderer.Init(); SfEffectsViewRenderer.Init(); Syncfusion.XForms.iOS.Cards.SfCardViewRenderer.Init(); new Syncfusion.SfNavigationDrawer.XForms.iOS.SfNavigationDrawerRenderer(); LoadApplication(new App()); Syncfusion.XForms.iOS.Buttons.SfCheckBoxRenderer.Init(); return(base.FinishedLaunching(app, options)); }
public async void ExportAsPDF(string filename, Stream chartStream, SfChart chart) { NativeChart.SfChart nativeChart = SfChartRenderer.GetNativeObject(typeof(SfChart), chart) as NativeChart.SfChart; StorageFolder localFolder = ApplicationData.Current.LocalFolder; StorageFile file = await localFolder.CreateFileAsync("filename", CreationCollisionOption.ReplaceExisting); if (file != null) { IRandomAccessStream stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite); await Save_UWP(nativeChart, stream); } using (var fileStream = await file.OpenAsync(FileAccessMode.Read)) { var reader = new DataReader(fileStream.GetInputStreamAt(0)); var bytes = new byte[fileStream.Size]; await reader.LoadAsync((uint)fileStream.Size); reader.ReadBytes(bytes); MemoryStream imageStream = new MemoryStream(bytes); if (file != null) { var document = new PdfDocument(); var page = document.Pages.Add(); var graphics = page.Graphics; PdfBitmap image = new PdfBitmap(imageStream); graphics.DrawImage(image, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); chartStream = new MemoryStream(); document.Save(chartStream); document.Close(true); Save(chartStream, filename, ".pdf"); } } }