Esempio n. 1
0
 public OptionsPage()
 {
     _deviceActionService = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService");
     InitializeComponent();
     _vm      = BindingContext as OptionsPageViewModel;
     _vm.Page = this;
     _themePicker.ItemDisplayBinding          = new Binding("Value");
     _uriMatchPicker.ItemDisplayBinding       = new Binding("Value");
     _clearClipboardPicker.ItemDisplayBinding = new Binding("Value");
     if (Device.RuntimePlatform == Device.Android)
     {
         _vm.ShowAndroidAccessibilitySettings = true;
         _vm.ShowAndroidAutofillSettings      = _deviceActionService.SupportsAutofillService();
         _themeDescriptionLabel.Text          = string.Concat(_themeDescriptionLabel.Text, " ",
                                                              AppResources.RestartIsRequired);
     }
 }
Esempio n. 2
0
 public OptionsPage()
 {
     _deviceActionService = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService");
     InitializeComponent();
     _vm      = BindingContext as OptionsPageViewModel;
     _vm.Page = this;
     _themePicker.ItemDisplayBinding          = new Binding("Value");
     _uriMatchPicker.ItemDisplayBinding       = new Binding("Value");
     _clearClipboardPicker.ItemDisplayBinding = new Binding("Value");
     if (Device.RuntimePlatform == Device.Android)
     {
         ToolbarItems.RemoveAt(0);
         _vm.ShowAndroidAutofillSettings = _deviceActionService.SupportsAutofillService();
     }
     else
     {
         _themePicker.On <iOS>().SetUpdateMode(UpdateMode.WhenFinished);
         _uriMatchPicker.On <iOS>().SetUpdateMode(UpdateMode.WhenFinished);
         _clearClipboardPicker.On <iOS>().SetUpdateMode(UpdateMode.WhenFinished);
     }
 }