티스토리 뷰
Xamarin.Forms Tabbed Page Move CurrentPage
==> this.Parent.Parent.Parent.Parent as TabbedPage
Console.WriteLine("Parent1!" + this.Parent.ToString());
Console.WriteLine("Parent2!" + this.Parent.Parent.ToString());
Console.WriteLine("Parent3!" + this.Parent.Parent.Parent.ToString());
Console.WriteLine("Parent4!" + this.Parent.Parent.Parent.Parent.ToString());
<print result>
2021-07-26 16:29:11.833738+0900 Ecs.iOS[34906:1120249] Parent1!Xamarin.Forms.Grid
2021-07-26 16:29:11.834086+0900 Ecs.iOS[34906:1120249] Parent2!Xamarin.Forms.StackLayout
2021-07-26 16:29:11.834314+0900 Ecs.iOS[34906:1120249] Parent3!Ecs.ViewPages.TabPage1
2021-07-26 16:29:11.834536+0900 Ecs.iOS[34906:1120249] Parent4!Ecs.Views.MainPage
async void TapGestureRecognizer_Tapped(System.Object sender, System.EventArgs e)
{
try
{
var tabbedPage = this.Parent.Parent.Parent.Parent as TabbedPage;
tabbedPage.CurrentPage = tabbedPage.Children[3]; // 4번째 tabpage 이동
}
catch (Exception Ex)
{
Console.WriteLine(Ex.Message);
}
}
'Xamarin' 카테고리의 다른 글
The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' (0) | 2021.10.22 |
---|---|
Xamarin.Android ssl connection could not be established see inner exception (2) | 2021.10.02 |
Xamarin.forms Active indicator Progmatically Loading (2) | 2021.07.08 |
Xamarin.Forms MultiView BindingContext Not Working (2) | 2021.06.22 |
StackLayout Label Fit the size not working (0) | 2021.05.28 |
- Total
- Today
- Yesterday
- Xamarin SMS OTP Send
- GetCellContent CheckBox Value
- Entry '' has empty native path
- Microcharts
- SkiaSharp
- Xamarin Firebase Phone User Add
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Xamarin.Ios Firebase Phone User Add
- ClickOnce 인증서 인증기간 변경
- Xamarin.Ios Firebase Phone Auth
- Xamarin.Ios Firebase Phone SMS OTP Send
- 서버 수준의 URN 필터
- Xamarin.Forms
- 연산자 뒤에 피연산자가 없습니다.
- FileStream Add Byte
- C# LINQ Left join
- Xamarin reCAPTCHA
- Linux SSH Multi Computer Join
- WPF Textbox
- Xamarin Firebase Phone Auth
- Windows IIS FTP 디렉토리 목록 오류
- Embeded 한글Font적용
- WPF Scrollviewer in ScrollViwer
- WPF Datagrid Cell Value Change
- 암호 마스터키
- Label Text LineBreak in Xaml
- ssl_client_socket_impl.cc
- c# Encrypt / Decrypt
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |