Hello,
I have a SfTabView with a button to change page.
Here is the code :
private int PageSuivante {
get {
var index = MenuSfTabView.SelectedIndex;
var found = false;
if (MenuSfTabView.Items == null || MenuSfTabView.Items.Count == 0)
found = true;
while (!found) {
index++;
if (index >= MenuSfTabView.Items.Count)
index = 0;
if (!MenuSfTabView.Items[index].IsVisible) {
index++;
} else {
found = true;
}
}
return index;
}
}
private void PageButton_Clicked(object sender, System.EventArgs e) {
MenuSfTabView.SelectedIndex = PageSuivante;
}
But when I click the button it doesn't work.
Regards,
Benoît NELISSEN