public App() { InitializeComponent(); FlowListView.Init(); Iconize .With(new Plugin.Iconize.Fonts.FontAwesomeRegularModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()); if (string.IsNullOrEmpty(Settings.Token)) { this.MainPage = new NavigationPage(new LoginPage()); } else { var mainViewModel = MainViewModel.GetInstance(); mainViewModel.Token = Settings.Token; mainViewModel.User = Settings.Username; //mainViewModel.Travel = new TravelViewModel(); mainViewModel.Home = new HomeViewModel(); this.MainPage = new MasterPage(); } }
protected override async void OnInitialized() { InitializeComponent(); Iconize .With(new Plugin.Iconize.Fonts.MaterialModule()); await NavigationService.NavigateAsync("MainPage"); }
public MyPage() { Label l = new Label() { Text = "Press the icon", VerticalOptions = LayoutOptions.Center, FontSize = 40 }; IconImage iconImage = new IconImage() { IconColor = Color.White, IconSize = 40, VerticalOptions = LayoutOptions.Center }; iconImage.Icon = Iconize.FindIconForKey("ion-information").Key; var circle = new ShapeView { ShapeType = ShapeType.Circle, HeightRequest = 50, WidthRequest = 50, Color = Color.Green, VerticalOptions = LayoutOptions.Center, CornerRadius = 5, BorderColor = Color.Red, BorderWidth = 1f, Content = iconImage }; StackLayout sl = new StackLayout() { VerticalOptions = LayoutOptions.Center, Orientation = StackOrientation.Horizontal, Children = { l, circle }, Margin = new Thickness(0, 20, 0, 0) }; Content = sl; }
/// <summary> /// Updates the menu item icons. /// </summary> private void UpdateTabbedIcons() { var relativeLayout = (Android.Widget.RelativeLayout)GetChildAt(0); var bottomNav = (BottomNavigationView)relativeLayout.GetChildAt(1); if (bottomNav == null || bottomNav.ChildCount == 0) { return; } for (var i = 0; i < bottomNav.Menu.Size(); i++) { var menuItemId = bottomNav.Menu.GetItem(i).ItemId; var menuItem = bottomNav.Menu.FindItem(menuItemId); if (_icons != null && i < _icons.Count) { var iconKey = _icons[i]; var icon = Iconize.FindIconForKey(iconKey); if (icon == null) { continue; } var drawable = new IconDrawable(Context, icon).Color(Color.White.ToAndroid()).SizeDp(20); menuItem.SetIcon(drawable); } } }
public App() { InitializeComponent(); Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()); MainPage = CreateNavigationPage(new LaunchPage()); }
public App() { InitializeComponent(); MainPage = new RootPage(); Iconize.With(new Plugin.Iconize.Fonts.MaterialModule()); service = new MulticastService(); }
// // 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 uiApplication, NSDictionary launchOptions) { iOSPlatform.Initialize(); // Iconize Iconize.With(new IoniconsModule()); FormsPlugin.Iconize.iOS.IconControls.Init(); // ZXing Platform.Init(); // Xamarin bootstrap Xamarin.Forms.Forms.Init(); _app = new iOSApp(); LoadApplication(_app); var manager = BITHockeyManager.SharedHockeyManager; manager.Configure("315c78e1363a425f8a44823e3dfca712"); manager.StartManager(); manager.Authenticator.AuthenticateInstallation(); #if DEBUG manager.DisableCrashManager = true; manager.DisableInstallTracking = true; manager.DisableFeedbackManager = true; manager.DisableMetricsManager = true; manager.DisableUpdateManager = true; #endif return(base.FinishedLaunching(uiApplication, launchOptions)); }
public App(IPlatformInitializer initializer = null) : base(initializer) { Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()) .With(new Plugin.Iconize.Fonts.IoniconsModule()) .With(new Plugin.Iconize.Fonts.SimpleLineIconsModule()); }
protected override void Initialize() { base.Initialize(); Iconize .With(new Plugin.Iconize.Fonts.FontAwesomeRegularModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule()); }
// // 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) { //Calabash.Start(); Forms.Init(); LoadApplication(new App()); IconControls.Init(); Iconize.With(new FontAwesomeModule()); return(base.FinishedLaunching(app, options)); }
/// <summary> /// Create an <see cref="IconDrawable" />. /// </summary> /// <param name="context">Your activity or application context.</param> /// <param name="iconKey">The icon key you want this drawable to display.</param> /// <exception cref="ArgumentException">If the key doesn't match any icon.</exception> public IconDrawable(Context context, String iconKey) { var icon = Iconize.FindIconForKey(iconKey); if (icon == null) { throw new ArgumentException("No icon with that key \"" + iconKey + "\"."); } Init(context, icon); }
// // 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(); Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); FormsPlugin.Iconize.iOS.IconControls.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public App() { InitializeComponent(); Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeRegularModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()); DependencyService.Register <AzureDataStore>(); MainPage = new RootPage(); }
/// <summary> /// Updates the text. /// </summary> private void UpdateText() { var icon = Iconize.FindIconForKey(Element.Text); if (icon != null) { Control.Text = $"{icon.Character}"; Control.FontFamily = Iconize.FindModuleOf(icon).ToFontFamily(); } }
public static void RegisterFonts() { Iconize.With(new EntypoPlusModule()) .With(new FontAwesomeModule()) .With(new IoniconsModule()) .With(new MaterialModule()) .With(new MeteoconsModule()) .With(new SimpleLineIconsModule()) .With(new TypiconsModule()) .With(new WeatherIconsModule()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); Rg.Plugins.Popup.Popup.Init(this, bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Forms.Init(this, bundle); Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); LoadApplication(new App(ConfigDI)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
public App() { InitializeComponent(); Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeRegularModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule()) .With(new Plugin.Iconize.Fonts.MaterialModule()) .With(new Plugin.Iconize.Fonts.MaterialDesignIconsModule()) .With(new Plugin.Iconize.Fonts.TypiconsModule()); MainPage = new MainPage(); }
public App() { InitializeComponent(); Instance = this; SetupIoc(); Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(Constants.SyncfusionLicenseKey); Iconize.With(new FontAwesomeRegularModule()).With(new FontAwesomeSolidModule()).With(new FontAwesomeBrandsModule()); SetStartPage(); }
public App(Action <ContainerBuilder> configDI) { _configDI = configDI ?? throw new ArgumentNullException(nameof(configDI)); InitializeComponent(); // Adds entropy to the random utility used by NBitcoin RandomUtils.AddEntropy($"{DateTime.Now.Ticks}-{Device.RuntimePlatform}"); Iconize.With(new MaterialModule()); Init(); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); LoadApplication(new App()); Window.SetStatusBarColor(Android.Graphics.Color.Rgb(139, 0, 0)); }
public void AppenIconForMenu(IMenu menu) { for (int i = 0; i < menu.Size(); i++) { var item = menu.GetItem(i); var iconized = Iconize.FindIconForKey("fa-envelope"); if (iconized != null) { var drawable = new IconDrawable(this, iconized).Color(Android.Graphics.Color.ParseColor("#7fadf7")).SizeDp(30); item.SetIcon(drawable); } } }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); ImageCircleRenderer.Init(); CachedImageRenderer.Init(true); Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); LoadApplication(new App()); }
public App() { InitializeComponent(); Iconize.With(new FontAwesomeModule()); MainPage = new MasterDetailPage() { Master = new MasterPage(), Detail = new NavigationPage(new MainPage()) }; InitializeDependencies(MainPage as MasterDetailPage); }
// // 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) { SQLitePCL.Batteries.Init(); Forms.Init(); IconControls.Init(); Iconize.With(new FontAwesomeModule()); ImageCircleRenderer.Init(); LoadApplication(new App(new ToDoInitializer())); return(base.FinishedLaunching(app, options)); }
protected override void OnStart() { base.OnStart(); SetContentView(Resource.Layout.SplashActivity); //ImageView ut = new ImageView(this); //var dr = SvgFactory.GetDrawable(this, "upward_star_white", CancellationToken.None); //ut.SetImageDrawable(dr); var ut = ViewUtil.GetSVGImageView(this, "upward_star_white", 100, Resource.Color.white); //ut.Gravity = GravityFlags.Center; FindViewById <FrameLayout>(Resource.Id.splash).AddView(ut); Iconize .With(new MaterialModule()) .With(new FontAwesomeModule()); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); FormsMaterial.Init(); LoadFontIcons(); Iconize.Init(); AiForms.Effects.iOS.Effects.Init(); UXDivers.Effects.iOS.Assembly.Register(); ConfigureContainer(); LoadApplication(_coreApp); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.tabs; ToolbarResource = Resource.Layout.toolbar; base.OnCreate(bundle); Forms.Init(this, bundle); IconControls.Init(Resource.Id.toolbar); Iconize.With(new FontAwesomeModule()); ImageCircleRenderer.Init(); LoadApplication(new App(new ToDoInitializer())); }
public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { Forms.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); Infrastructure.Init(); Iconize.With(new Plugin.Iconize.Fonts.MaterialModule()); IconControls.Init(); InitPlugins(); ConfigureUI(); LoadApplication(new App()); return(base.FinishedLaunching(uiApplication, launchOptions)); }