Struggling with showing a page on Shellcontent #15868
Unanswered
pravgautam12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Absolute beginner in .NET MAUI here.
I have an AppShell.xaml file, that has shellcontents. It looks like this:
`
Everything shows up well except the first Shell content whose DataTemplate is YelpFusion. All the other pages show MainPage perfectly. However, YelpFusion does not even appear in IntelliSense list if I start typing it. YelpFusion.xaml.cs file looks like this:
public partial class YelpFusion : ContentPage { public YelpFusion(double L, double G) { InitializeComponent(); BindingContext = new YelpFusionViewModel(L, G); } }
The constructor of YelpFusionViewModel takes two parameters, L and G. There is a bunch of logic in that viewmodel which if it is important to share for me to get help, do let me know.
TLDR: Cannot make YelpFusion page show in my Shellcontent, what could be the issue?
Thank you <3
Beta Was this translation helpful? Give feedback.
All reactions