Ejemplo n.º 1
0
		public SyncView ()
		{
			SettingSyncSlider = new SyncSliderView ();

			autoSyncSwitch = new SettingsSwitchView ("Auto Sync") { IsToggeled = true };
			autoSyncSwitch.Toggled += (object sender, ToggledEventArgs e) => {
				SettingSyncSlider.IsVisible = e.Value;
			};

			Content = new StackLayout {
				Spacing = 0,
				Children = {
					autoSyncSwitch,
					SettingSyncSlider,
				}
			};
		}
Ejemplo n.º 2
0
        public SyncView()
        {
            SettingSyncSlider = new SyncSliderView();

            autoSyncSwitch = new SettingsSwitchView("Auto Sync")
            {
                IsToggeled = true
            };
            autoSyncSwitch.Toggled += (object sender, ToggledEventArgs e) => {
                SettingSyncSlider.IsVisible = e.Value;
            };

            Content = new StackLayout {
                Spacing  = 0,
                Children =
                {
                    autoSyncSwitch,
                    SettingSyncSlider,
                }
            };
        }