I would like to programmatically navigate to a specific panorama item based upon a click event. I tried doing something like the following
if (Panorama != null && Panorama.SelectedIndex != 3)
{
Panorama.SelectedIndex = 3; //Error, SelectedIndex is read only
}
but the SelectedIndex
property cannot be set. Is there a way to do this in code behind?
Use this code it would work: