async void SelectOne(object sender, EventArgs args) { ImagePreviwer.SetValue(IsVisibleProperty, true); PreviuseButton.SetValue(IsVisibleProperty, true); NextButton.SetValue(IsVisibleProperty, true); SelectGrid.SetValue(IsVisibleProperty, false); }
async void OnNextButton(object sender, EventArgs args) { counter = (counter < 8) ? (counter + 1) : 1; string name = string.Format("a{0}.jpg", counter.ToString()); ImagePreviwer.Source = name; if (counter == 1) { ImagePreviwer.SetValue(IsVisibleProperty, false); PreviuseButton.SetValue(IsVisibleProperty, false); NextButton.SetValue(IsVisibleProperty, false); ExamGrid.SetValue(IsVisibleProperty, true); } }