Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Go to an unreferenced page without leaving a parent page

$
0
0

hi!
On my program (intended to be on Android and IOS) I display, after going through a login page, a MasterDetailPage, in this last I have a Tabbed Page referencing 4 pages.
On one of its pages I have a button that returns me on a tab of this same tabbed, do this I did not have to worry about, I just had to use this:

var tapAddButton = new TapGestureRecognizer();
tapAddButton.Tapped += (esnder, e) =>
{
var tabbedPage = this.Parent as MenuPrincipal;
tabbedPage.NavAffaires();
};

NavAffaires (in my tabbedPage)
public void NavAffaires()
{
CurrentPage = Children[2];
}

The problem facing me is this:

On another page I have a listview, by clicking on one of the lines, I have to retrieve the index of the line and go on a page that it is not the child of my tabbedpage.

I would like to know if it is possible to do this without leaving the TabbedPage or, failing that, without leaving my masterdetailpage.

I start on xamarin and I proceed step by step, at first I try to use a simple command consisting of a simple button (which is in my tabbed) that calls another page that is not in my tabbed, I first think of using the CurrentPage property of the tabbed, but either nothing changes on the display (but I'm not errone either) or I find myself on a page that I do not understand ( I find myself with a new masterdetail page that comes out of I do not know or)

I have been blocking it for quite a while and I would be delighted if we came to my rescue

Ps: sorry for my English straight out of google translation ^^ '


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>