private void Toggle_Clicked(object sender, EventArgs e) { IndexViewModel.IsRefreshing |= CategoryView.IsVisible; CategoryView.IsVisible ^= true; IndexViewModel.CategoryItemsChanged(); }