Video : Find which Panorma Item is selected in Windows Phone

 

Source Code


public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();

myPanorma.SelectionChanged += new EventHandler<SelectionChangedEventArgs>(myPanorma_SelectionChanged);
}

void myPanorma_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (myPanorma.SelectedIndex == 0)
{
MessageBox.Show("first item is selected");
}
if (myPanorma.SelectedIndex == 1)
{
MessageBox.Show("second item is selected");
}

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com