private void ToggleDatastoreSwitch_OnToggled(object sender, ToggledEventArgs e) { // This will change out the DataStore to be the Mock Store if toggled on, or the SQL if off. viewModel.SetDataSource(SettingDataSource.IsToggled); ClearSqlName.IsVisible = !SettingDataSource.IsToggled; }