Open kelputoo123 opened 7 months ago
@kelputoo123 if you subscribe to Loaded and call x() from there does that work? Also, I wouldn't recommend calling Appearing
from the constructor.
Also, it'd probably be best to away the DisplayAlert call.
Hi @kelputoo123. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
I've fixed this by added the Loaded event, however, i think this still a bug, it's was not supposed to add the "Loaded" event.
Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!
Description
Hi, im a begginer, and im not really sure if this is a bug or not. I noticed that this works sometimes in windows machine and sometimes don't, it's really weird bug. So, i have Flyout and Tabbar in my AppShell.xaml, my code looks like this:
By far, all ok. But once the app opens it goet do my Pages.Decimal.HomePage, and the function in there are not executed when the app loads. I tried with OnAppearing(), but it only works if I navigate to it, it doesnt execute when the app loads. I don't know if im explaining the best way. This is my HomePage.xaml.cs code:
This function "x()" is not being executed when it shows this page, does someone knows why this happens?
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.6 SR1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No.
Relevant log output
No response