public PrivacyView() { InitializeComponent(); Title = "Privacy Policy"; NavigationPage.SetHasNavigationBar(this, true); On <iOS>().SetUseSafeArea(true); }
public AboutView() { InitializeComponent(); Title = "About"; NavigationPage.SetHasNavigationBar(this, true); On <iOS>().SetUseSafeArea(true); }
public ChangePasswordView() { InitializeComponent(); Title = "Change Password"; NavigationPage.SetHasNavigationBar(this, true); On <iOS>().SetUseSafeArea(true); }
public TermsUseView() { InitializeComponent(); Title = "Terms of Use"; NavigationPage.SetHasNavigationBar(this, true); On <iOS>().SetUseSafeArea(true); }
public LocksmithListView() { InitializeComponent(); Title = "Chaveiros"; IconImageSource = ImageSource.FromFile("demand.png"); NavigationPage.SetHasNavigationBar(this, false); On <iOS>().SetUseSafeArea(true); }
public AddressView() { InitializeComponent(); Title = "Address"; IconImageSource = ImageSource.FromFile("services.png"); NavigationPage.SetHasNavigationBar(this, true); On <iOS>().SetUseSafeArea(true); }
public MatchesPage() { NavigationPage.SetHasNavigationBar(this, true); InitializeComponent(); NavigationPage.SetBackButtonTitle(this, "Back"); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); }
public ConfigView() { InitializeComponent(); Title = "Configuração"; IconImageSource = ImageSource.FromFile("config.png"); NavigationPage.SetHasNavigationBar(this, false); On <iOS>().SetUseSafeArea(true); }
public PageBase() { //On<iOS>().SetPrefersLargeTitles(true); On <iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never); NavigationPage.SetHasNavigationBar(this, false); ViewModelLocator.SetAutowireViewModel(this, true); BackgroundColor = Color.White; }
public CustomTabbedNavigation() : this(FreshMvvm.Constants.DefaultNavigationServiceName) { NavigationPage.SetHasNavigationBar(this, false); if (Device.RuntimePlatform == Device.Android) { this.On <Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom); this.On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarItemColor((Color)Application.Current.Resources["BottomTabText"]); this.On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarSelectedItemColor((Color)Application.Current.Resources["BottomTabTextTint"]); this.On <Xamarin.Forms.PlatformConfiguration.Android>().SetElevation(10); this.On <Xamarin.Forms.PlatformConfiguration.Android>().SetIsSwipePagingEnabled(false); } }
public BasePage() { // Use footer nav bar and menu page instead of default header nav bar NavigationPage.SetHasNavigationBar(this, false); // Default page background color BackgroundColor = Colors.PageBackground; // Move iOS layout under status bar if (Device.RuntimePlatform == Device.iOS) { On <iOS>().SetUseSafeArea(true); } }
public RecordVoicePage(int dialogId, MessagesManager messagesManager) { this.dialogId = dialogId; this.messagesManager = messagesManager; NavigationPage.SetHasNavigationBar(this, false); recordButton.On <TizenConfig>().SetStyle(ButtonStyle.Circle); absoluteLayout.Children.Add(hint, new Rectangle(0.5, 0.2, 200, 200), AbsoluteLayoutFlags.PositionProportional); absoluteLayout.Children.Add(recordButton, new Rectangle(0.5, 0.5, 75, 75), AbsoluteLayoutFlags.PositionProportional); absoluteLayout.Children.Add(sendButton, new Rectangle(0.5, 0.9, 200, 60), AbsoluteLayoutFlags.PositionProportional); absoluteLayout.Children.Add(activityIndicator); Content = absoluteLayout; audioRecorder.RecordingLimitReached += OnRecordingLimitReached; recordButton.Clicked += OnRecordButtonPressed; sendButton.Clicked += OnSendButtonPressed; PrivilegeChecker.PrivilegeCheck("http://tizen.org/privilege/recorder"); PrivilegeChecker.PrivilegeCheck("http://tizen.org/privilege/mediastorage"); }
public LoginPage() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); // On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); }
protected BaseContentPage() { NavigationPage.SetHasNavigationBar(this, false); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); }
public CustomTabbedNavigation(string navigationServiceName) { NavigationPage.SetHasNavigationBar(this, false); NavigationServiceName = navigationServiceName; RegisterNavigation(); }
public EventsPage() { InitializeComponent(); Analytics.TrackEvent("События"); Analytics.TrackEvent(Newtonsoft.Json.JsonConvert.SerializeObject(Settings.Person.Accounts)); BindingContext = viewModel = new EventsPageViewModel(); NavigationPage.SetHasNavigationBar(this, false); switch (Device.RuntimePlatform) { case Device.iOS: int statusBarHeight = DependencyService.Get <IStatusBar>().GetHeight(); Pancake.Padding = new Thickness(0, statusBarHeight, 0, 0); break; default: break; } var techSend = new TapGestureRecognizer(); techSend.Tapped += async(s, e) => { if (Settings.MobileSettings.сheckCrashSystem) { Analytics.TrackEvent("Тестовый краш"); int a = 0; int b = 10 / a; } // await PopupNavigation.Instance.PushAsync(new TechDialog()); await Navigation.PushAsync(new AppPage()); }; LabelTech.GestureRecognizers.Add(techSend); //if(Settings.MobileSettings.showOurService) //{ IconViewProfile.IsVisible = true; var profile = new TapGestureRecognizer(); profile.Tapped += async(s, e) => { if (Navigation.NavigationStack.FirstOrDefault(x => x is ProfilePage) == null) { await Navigation.PushAsync(new ProfilePage()); } }; IconViewProfile.GestureRecognizers.Add(profile); //} var call = new TapGestureRecognizer(); call.Tapped += async(s, e) => { if (Settings.Person.Phone != null) { IPhoneCallTask phoneDialer; phoneDialer = CrossMessaging.Current.PhoneDialer; #if DEBUG //Settings.Person.companyPhone = null; #endif try { if (phoneDialer.CanMakePhoneCall && !string.IsNullOrWhiteSpace(Settings.Person.companyPhone)) { phoneDialer.MakePhoneCall( System.Text.RegularExpressions.Regex.Replace(Settings.Person.companyPhone, "[^+0-9]", "")); } } catch (Exception ex) { } } }; SetText(); SetColor(); StartNews(); StartNotification(); StartOffers(); StartQuestions(); // SetVisibleControls(); StartOSS(); CrossFirebaseCrashlytics.Current.SetUserIdentifier(Settings.Person.Login); CrossFirebaseCrashlytics.Current.SetUserName(Settings.Person.FIO); CrossFirebaseCrashlytics.Current.SetUserEmail(Settings.Person.Email); MessagingCenter.Subscribe <Object>(this, "UpdateEvents", (sender) => { viewModel.LoadData.Execute(null); if (Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.Internet) { Device.BeginInvokeOnMainThread(async() => await DisplayAlert(AppResources.ErrorTitle, AppResources.ErrorNoInternet, "OK")); return; } }); MessagingCenter.Subscribe <Object>(this, "StartTech", async(sender) => { await Navigation.PushAsync(new AppPage()); }); MessagingCenter.Subscribe <Object>(this, "ChangeThemeCounter", (sender) => { OSAppTheme currentTheme = Application.Current.RequestedTheme; var colors = new Dictionary <string, string>(); var arrowcolor = new Dictionary <string, string>(); if (currentTheme == OSAppTheme.Light || currentTheme == OSAppTheme.Unspecified) { colors.Add("#000000", ((Color)Application.Current.Resources["MainColor"]).ToHex()); arrowcolor.Add("#000000", "#494949"); } else { colors.Add("#000000", "#FFFFFF"); arrowcolor.Add("#000000", "#FFFFFF"); } //IconViewTech.ReplaceStringMap = colors; }); MessagingCenter.Subscribe <Object, (string, string)>(this, "OpenNotification", async(sender, args) => { await Task.Delay(TimeSpan.FromMilliseconds(500)); if (Navigation.NavigationStack.FirstOrDefault(x => x is NotificationsPage) == null) { await Navigation.PushAsync(new NotificationsPage()); } MessagingCenter.Send <Object, AnnouncementInfo>(this, "OpenAnnouncement", Settings.EventBlockData.Announcements.FirstOrDefault(x => x.Header == args.Item2 && x.Text == args.Item1)); }); }
public LoginView() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); On <iOS>().SetUseSafeArea(true); }