Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to solve problems with master-detail-page in WP?

$
0
0

Hi all
My app has a master-detail navigation. The navigation works well with iOS and Android, but not with WP (as it seems, that the MD-Navigation in WP is not implemented on a proper way until now).

Problem-descriptions:

Problem 1 - icons / toolbar:
To the master-page, I set a “Home-Icon”.
After load, an “entry-page” is shown.
If the user then taps on “Home-Icon”, the master-page with a menu is shown.
If the user then tap on a menu-item, the corresponding detail-page is shown.
In the detail-page(s), I add two Icons to the toolbar (one for search and one for sort).
If then the home-button is tapped, the master-page with the menu is showed - unfortunately with the two icons (search and sort).
If then the search- Icon is tapped (from the master-page), the code behind is called and the search-page is loaded over the master-page - looks nice;-).
For me, this is a bug in XF-WP (the icons in the toolbar of a detail-page have to be hided automatically, when the master-page is called by tap on the “master-icon”).
But, I try now to implement a workaround for this problem - unfortunately without success until now.
The target is, to remove/hide the icons of a detail-page, if the master-page is showed, but… how to do that…?
First, I tough to clear the icons in OnDisappearing() and add in OnAppearing() on the detail-page.
As the detail-page (where I have added the icons) seems to stay loaded, if the master-page is called, I can’t use OnDisappearing() on the detail-page as the event is not called.
So.. how to solve that problem..?

Problem 2 - detail-page stays loaded:
As described above, a related detail-page is showed, if an item in the menu is tapped (the result of a query to a web-service is showed in a ListView).
If the user then taps on an entry of the ListView, a further detail-page is loaded to show the details to the entry in the ListView. This (the navigation) works without problems in iOS and Android.
If a detail-page is loaded WP and then the home-icon is tapped:
- the main-page is loaded
- if then a menu-item is tapped, always the (last loaded) detail-page is showed (no matter which menu-item is tapped).
So.. for me also a bug in XF.WP (a from a detail-page loaded further detail-page should be released automatically, if the master-page is called).
The question is, how to solve this problem…?

Further question:
Are this known problems/bugs that will be solved/addressed in future releases?
Maybe @CraigDunn can give an answer to this question..?

Thanks for any suggestion…


Viewing all articles
Browse latest Browse all 58056

Trending Articles