コード例 #1
0
ファイル: PrivacyView.xaml.cs プロジェクト: OvoKore/IChave
 public PrivacyView()
 {
     InitializeComponent();
     Title = "Privacy Policy";
     NavigationPage.SetHasNavigationBar(this, true);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #2
0
ファイル: AboutView.xaml.cs プロジェクト: OvoKore/IChave
 public AboutView()
 {
     InitializeComponent();
     Title = "About";
     NavigationPage.SetHasNavigationBar(this, true);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #3
0
 public ChangePasswordView()
 {
     InitializeComponent();
     Title = "Change Password";
     NavigationPage.SetHasNavigationBar(this, true);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #4
0
 public TermsUseView()
 {
     InitializeComponent();
     Title = "Terms of Use";
     NavigationPage.SetHasNavigationBar(this, true);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #5
0
 public LocksmithListView()
 {
     InitializeComponent();
     Title           = "Chaveiros";
     IconImageSource = ImageSource.FromFile("demand.png");
     NavigationPage.SetHasNavigationBar(this, false);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #6
0
ファイル: AddressView.xaml.cs プロジェクト: OvoKore/IChave
 public AddressView()
 {
     InitializeComponent();
     Title           = "Address";
     IconImageSource = ImageSource.FromFile("services.png");
     NavigationPage.SetHasNavigationBar(this, true);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #7
0
        public MatchesPage()
        {
            NavigationPage.SetHasNavigationBar(this, true);
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "Back");

            On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
        }
コード例 #8
0
ファイル: ConfigView.xaml.cs プロジェクト: OvoKore/IChave
 public ConfigView()
 {
     InitializeComponent();
     Title           = "Configuração";
     IconImageSource = ImageSource.FromFile("config.png");
     NavigationPage.SetHasNavigationBar(this, false);
     On <iOS>().SetUseSafeArea(true);
 }
コード例 #9
0
ファイル: PageBase.cs プロジェクト: quanvm97/customer-portal
 public PageBase()
 {
     //On<iOS>().SetPrefersLargeTitles(true);
     On <iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never);
     NavigationPage.SetHasNavigationBar(this, false);
     ViewModelLocator.SetAutowireViewModel(this, true);
     BackgroundColor = Color.White;
 }
コード例 #10
0
        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);
            }
        }
コード例 #11
0
        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);
            }
        }
コード例 #12
0
        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");
        }
コード例 #13
0
        public LoginPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
//            On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
        }
コード例 #14
0
 protected BaseContentPage()
 {
     NavigationPage.SetHasNavigationBar(this, false);
     On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
 }
コード例 #15
0
 public CustomTabbedNavigation(string navigationServiceName)
 {
     NavigationPage.SetHasNavigationBar(this, false);
     NavigationServiceName = navigationServiceName;
     RegisterNavigation();
 }
コード例 #16
0
        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));
            });
        }
コード例 #17
0
ファイル: LoginView.xaml.cs プロジェクト: OvoKore/IChave
 public LoginView()
 {
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     On <iOS>().SetUseSafeArea(true);
 }