public void GoToFeedTab() { if (FeedTab.Displayed) { FeedTab.Click(); } else { throw new Exception("Element is not found or not clickable"); } }
public void ClickOnFeedTab() { if (DetailsTab.Enabled) { FeedTab.Click(); } else { throw new Exception("Feed tab is not found or not clickable"); } }
public Home() { InitializeComponent(); Title = "InstaXamarin"; //MessagingCenter.Subscribe<Object, int>(this, "NotificacaoRecebida", async (sender, IDPost) => { // Post P = await new FeedViewModel().GetPost(IDPost); // Device.BeginInvokeOnMainThread(() => // { // Navigation.PushModalAsync(new PostDetalhado(P)); // }); //}); MessagingCenter.Subscribe <Object, int>(this, "NotificacaoRecebida", (sender, IDPost) => { Device.BeginInvokeOnMainThread(() => { CurrentPage = FeedTab; // Seleciona a primeira aba FeedTab.AbrePost(IDPost); // Abre o post }); }); }