Pivot_Change /SelectionChange / Page Change Event in Windows Phone using .NET
One of the commonly used Windows Phone Application Type is Pivot. A Pivot application has a Pivot control and many Pivot Items in it.
This gives a good look and feel for content rich App
How to track Pivot Item Change
Each Pivot item contains some unique information, which makes it a necessary for tracking the change of Windows Phone Pivot Items
The XAML of the Pivot Control is shown below
<controls:Pivot Title="GNANA BHOOMI - TIRUVANNAMALAI" SelectionChanged="Pivot_SelectionChanged>;
The Pivot_SelectionChanged
event can be used to track the flip / change of Pivot Item to a new one by the user
private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show(((Pivot)sender).SelectedIndex.ToString());
}
SelectedIndex property provides the Index of the active Pivot Item
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment