Exemple #1
0
 public AppSettingPage()
 {
     InitializeComponent();
     // iOS Platform
     On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
     AppSettingVM        = new AppSettingPageVM(this.Navigation);
     this.BindingContext = AppSettingVM;
 }
Exemple #2
0
        public AppSettingPage()
        {
            InitializeComponent();
            // iOS Platform
            On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
            AppSettingVM        = new AppSettingPageVM(this.Navigation);
            this.BindingContext = AppSettingVM;


            if (!string.IsNullOrEmpty(Helpers.Settings.GeneralIsNotification))
            {
                SwtchNotification.IsToggled = true;
            }
            if (!string.IsNullOrEmpty(Helpers.Settings.GeneralIsSound))
            {
                SwtchSound.IsToggled = true;
            }
            if (!string.IsNullOrEmpty(Helpers.Settings.GeneralIsVibrate))
            {
                SwtchVibrate.IsToggled = true;
            }
        }