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, } }; }
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, } }; }