Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badges no longer appear when content page is embedded in navigation page. #46

Closed
Axemasta opened this issue Apr 17, 2018 · 8 comments
Closed
Labels
Milestone

Comments

@Axemasta
Copy link

I have come across an issue where the badges won't be displayed if the page displaying is embedded in a navigation page.

I am using prism for my app and got a demo project working perfectly, when I came to drop tab badge into my main app, I couldn't see any badges. I eventually tracked this issue down to 1 line of code, the navigation page. To demonstrate this issue I have recorded a little video of the bug in action (the password is "Xabre"). Hopefully this is helpful as I cannot share my source code and this should hopefully give you an insight into the issue.

As I said, my application is prism based however I cannot see this being an issue.

@fsantanac
Copy link

I have the same issue -:(

@merickson91
Copy link

Any update on this? I am having the same issue.

@xabre xabre added the bug label May 11, 2018
@xabre
Copy link
Owner

xabre commented May 11, 2018

I'll take a look as soon as possible.
@Axemasta @fsantanac @merickson91 is iOS the only affected platform?

@xabre
Copy link
Owner

xabre commented May 21, 2018

Seems related to #43, except that is a Android Non-AppCompat issue...

@GalaxiaGuy
Copy link

Do you mean you have TabbedPage -> NavgationPage -> ContentPage?

In that case, I believe the problem is the TabbedPage is trying to get the attached properties from the NavigationPage, when you have presumably defined them on the ContentPage.

One option which you can do as a consumer would be to bind the attached properties on the NavigationPage to its child.

The other option is to modify all the BadgedTabbedPageRenderers to check if the child Element is a NavigationPage, and in that case look at it's child.

@Axemasta
Copy link
Author

@GalaxiaGuy So are you saying that the renderer is looking at the wrong view, when there is an embedded content page? I will have a look into this and report back!

@GalaxiaGuy
Copy link

I think that might be the problem...

However I've just realised that my suggestion about binding the attached properties won't work, since it seems you can't bind an attached property to an attached property on something else.

@xabre
Copy link
Owner

xabre commented Sep 16, 2018

Pre-release with XF 3.1 android bottom tab placement suport is out:

https://www.nuget.org/packages/Plugin.Badge/2.1.0-pre.2

Please give it a try and let me know if you spot some problems.

@xabre xabre closed this as completed Sep 16, 2018
@xabre xabre added this to the 2.1.0 milestone Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants