I’m passing the string of a header I want the pivot control on my page to move to like this
switch (SelectedItemHeaderString){
case "News":
MainPivot.SelectedItem = MainPivot.Items.Where(i => i.Header == "News");
break;
default:
break;
}
How do I find the PivotItem by Header because the following doesn’t work.
MainPivot.Items.Where(i => i.Header == "News");
Hope this will help my comment wasn’t working correctly. 🙂