Replies: 1 comment 1 reply
-
I should also point out that I am not using navigation in the recommended manner. I am using a listview and am using an SelectedItemChanged event to set the data context of the content control I have in the MainPage. I am looking at the SyncfusionApp in the Uno.Samples repo and I see that you are using Regions specifically. Could that be it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This project has been one of the most frustrating projects I have ever been associated with and Microsoft has let me down at every turn. gRPC didn't work which forced me to implement a go bridge so that I could replace gRPC with libp2p. Then, Maui is simply incapable of producing an unpackaged release so I decided to avoid Maui in lieu of the Uno Platform. Since I have been using the Syncfusion Maui controls with success, I really need to be able to use them in this project.
I created a new, unedited Uno project that included Maui Control support. I was able to get it to work there where I had two simple controls that I displayed in the MainPage and SecondPage pages. Then, when I try to move the code over to my project, the Maui controls simply do not display.
This is a screenshot of the new MauiControls project where I am using a Syncfusion button:
The code used to display this is:
EmbeddedControl.xaml
and the code used in MainPage.xaml is:
MainPage.xaml
When I use this same exact code in my original project, I get nothing that is inside the
<maui:Grid><embed:MauiHost> ...
to display. The code in the MainPage.xaml file is as follows:The actual Maui control is inside a separate page, CalendarPage, that I set the data context to on control
PageControl
ContentControl
:This produces:
The textblock on line 0 displays, but not the Maui control.
I tried to make CalendarPage a ContentView, but the main project in the solution choked on the ContentView with this error:
The type 'ContentPage' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
I added
using Microsoft.Maui.Controls;
to the CalendarPage and it still would not compile.NOTE: There is a very annoying bug in Visual Studio 2022 that simply loses its mind with code-behind pages. The coupling that is supposed to exist gets broken. I can get the app to run if I use the Desktop profile to launch the app.
The default app project UnoApp project template automatically includes
Microsoft.Maui.Controls
andMicrosoft.Maui.Controls.Compatibility
so I have no idea if it is something I have done, and do not know if it is the VS bug that is getting in my way.The code in App.xaml.cs for the OnLaunched method is:
I cannot provide a solution for you to examine as there is too much IP to strip out, but hopefully, I have provided enough context to give you an idea as to what I have tried. Let me know if there is something else context-wise that I need to supply. Again, I have been stuck at this point in the alpha delivery for well over a month due to a myriad of blockers, so I have GOT TO GET BEYOND THIS BLOCKER!!!!
I
JUST
NEED
TO
GET
THIS
TO
WORK!!!!!!!!!!!!!!!!!!!!
arg!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks in advance for any guidance I can get and extra points if you get back to me in the next day or so.......
Regards,
Steve
Beta Was this translation helpful? Give feedback.
All reactions