コード例 #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,
				}
			};
		}
コード例 #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,
                }
            };
        }