내 응용 프로그램에는 홈 페이지와 2 개의 다른 페이지가 있습니다. 그래서 한 페이지에서 다른 페이지로 이동하고 싶습니다. 그리고 오른쪽에서 왼쪽으로 가로로 스 와이핑 할 때와 왼쪽에서 오른쪽으로 가로 스 와이핑 할 때 홈 페이지로 이동해야합니다.Windows phone 앱에서 제스처를 기반으로 탐색을 수행하는 방법은 무엇입니까?
오른쪽에서 왼쪽으로 스 와이프하면 홈 페이지에 있습니다 (홈 페이지 ---> Page1, 다시 스 와이프 ---> Page2, 다시 스 와이프 ---> Page1 ...처럼 .... .) 그리고 왼쪽에서 오른쪽으로 스 와이프하면 모든 페이지에서 홈 페이지로 이동해야합니다. Windows Phone 8 앱에서이 작업을 수행하는 방법은 무엇입니까?
내 코드 :
if (e.HorizontalVelocity < 0) //when it is true it should navigate to next index value
{
try
{
Pivot_Main.SelectedIndex++;// here every time it's showing the same index value it is not incrementing
switch (Pivot_Main.SelectedIndex)
{
case 0:
Pivot_Main.SelectedIndex = 0;
txtBlock_Pivot_Heading.Text = "Temperature";
var brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0xC6, 0x3F));
b_celcius = true;
temperature_Page_Clear();
txtBlock_OptText.Text = "ºC";
btn_OptText.Content = "ºC";
Grid_PivotHeading.Background = brush;
Canvas_Home.Background = brush;
Canvas_DisplayName.Width = 55;
// btn_OptText.SetValue(Canvas.LeftProperty, 380.0);
break;
case 1:
Pivot_Main.SelectedIndex = 1;
txtBlock_Pivot_Heading.Text = "Length";
length_Page_Clear();
b_meter = true;
}
}
}
나를 제발 도와주세요, 정품 도움에 감사드립니다.
를 얻을 수 있습니다 머리말은 당신에게이 효과를 줄 수 있습니다. –