private void TapGestureRecognizerIngatMyKata_Tapped(object sender, EventArgs e) { try { if (nSelectTabIndex == 3) { return; } //await FlowAnimateEffect(ChangeContent); //await ChangeContent.FadeTo(0); //ChangeContent.IsVisible = true; var content = new IngatView(); ChangeContent.Content = content; //await ChangeContent.FadeTo(1); SetTabTextColor(3); } catch { } }
public MainPage() { InitializeComponent(); try { //스킨 설정 InitSkinStyle(); //------------ MessagingCenter 해제 //스킨 변경 MessagingCenter.Unsubscribe <MainPage>(this, "SkinStyle"); //함수에 스트링 콜 MessagingCenter.Unsubscribe <MainPage, string>(this, "AllView"); //설정이 끝나면 현재뷰 초기화 MessagingCenter.Unsubscribe <MainPage>(this, "ChangeSetting"); //------------ MessagingCenter 설정 //스킨 변경 MessagingCenter.Subscribe <MainPage>(this, "SkinStyle", (sender) => { InitSkinStyle(); }); //함수에 스트링 콜 MessagingCenter.Subscribe <MainPage, string>(this, "AllView", (sender, arg) => { SelectKataAllView(arg); }); //설정이 끝나면 현재뷰 초기화 MessagingCenter.Subscribe <MainPage>(this, "ChangeSetting", (sender) => { if (ChangeContent.Content.ToString() == "VocaKnow.ListView") { var content = new ListView(); ChangeContent.Content = content; SetTabTextColor(1); } else if (ChangeContent.Content.ToString() == "VocaKnow.AllView") { var content = new AllView(); ChangeContent.Content = content; SetTabTextColor(2); } else if (ChangeContent.Content.ToString() == "VocaKnow.IngatView") { var content = new IngatView(); ChangeContent.Content = content; SetTabTextColor(3); } else if (ChangeContent.Content.ToString() == "VocaKnow.KataKataView") { var content = new KataKataView(); ChangeContent.Content = content; SetTabTextColor(4); } }); NavigationPage.SetHasNavigationBar(this, false); SetTabTextColor(1); //인트로 화면 if (Setting.IntroPopup == false) { Navigation.PushModalAsync(new UserGuidePage());//Navigation.PushModalAsync(new IntroPage()); } } catch { } }