-
Notifications
You must be signed in to change notification settings - Fork 1
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
Shell login/logout title don't follow databinding #1
Comments
Maybe an error into ViewModelBase.cs. The flag IsLogged is always false. |
@biapar there is no
Moreover, on the AppShellViewModel I don't use it as I have this method tied to a
and on the AppShell I have:
Finally, when running the app with the mocked authentication service, you can see that the icon change but the text don't: |
In this class ViewModelBase : BaseViewModel
|
Other strange thing is that I'm able to register a new user, login via Facebook but the app don't receive the token. |
@biapar read carefully, here I'm using a |
Ok. I did not see that the icon change in tab bar. I'll check again. My mistake. |
|
|
Solved with a workaround. I use the messages. I remove binding on Title. In AppShellViewModel:
In AppShell
|
Usually, but I have to further investigate if this is the case, just for security reason. But this has nothing to do with IsLogging that is a flag that is true only while logging, and then has to be set to false, so it's wrong to remove it. |
I restored the original code. The tab title don't change also if the flags are ok. |
The workaround works, but why using Messaging Center when there is already an event you can subscribe? Hope you don't mind if I'll do it differently. |
True, I've created an issue on Xamarin forms for the bug and a repro |
The shell tab item:
has an issue with the Title, that don't update from "Login" to "Logout" when the user logs in.
Oddly enought, the Icon works fine.
The text was updated successfully, but these errors were encountered: