Shell 'CurrentPage' property does not have a value to bind it at the first load. #21279
Unanswered
EstebanP-dev
asked this question in
Ideas
Replies: 3 comments
-
Verified this issue with Visual Studio 17.10.0 Preview 2(MauiVersion:8.0.10). Can repro on Android platform with sample project. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@EstebanP-dev You could fire OnpropertyChanged() inside Navigated |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, with the OnNavigated, it works. However, wouldn't it be better to use the property binding? It could be with bindable property with OnWaySource binding mode. @PureWeen |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi, devs. I’m attempting to implement a global Title View without a setter in a Control Template or similar. Therefore, I’ve decided to use the bindable properties of Shell to recreate this. However, I’ve noticed that the value isn’t loading correctly. Here are some notes about:
This is the page on its first load:
This is after hot reload:
Please let me know if I was unclear or incorrect.
I'm using the 8.0.10 version.
Thanks a lot!
Steps to Reproduce
UI:
Converter:
Link to public reproduction project repository
https://github.com/EstebanP-dev/OpenReportBugs/tree/maui-shell-binding-currentpage-on-titleview
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions