Using .Net MAUI #5253
Replies: 2 comments 5 replies
-
I think it depends on how much you want to share and what's different about the bits you don't. I'm currently sharing everything, but when I get to the testing stage I expect I'm going to use some onplatform stuff to switch a few views around. Or I May do this based on screen size, or device type. This is because I think the UI will need to change based on how the user is using it. I'm not planning on using any platform specific APIs, but if I was, then I would read the MAUI docs on invoking platform code and the platform specific code section of the single project docs. |
Beta Was this translation helpful? Give feedback.
-
One unified front end is the selling point of web technology, so I just build UI in a razor class library and simply use it in MAUI project, then it runs perfectly in any platform with one UI and mobile screen detection and platform detection (DIY) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created apps with Xamarin Forms and WPF. I would create a WPF project with the Windows Views in it, and a Xamarin Forms project with the Mobile Views in it, and a common project with items shared by both projects. See the image.
The question I have about MAUI, is how to structure things so I can still create both Windows and Android apps. Can someone point me to an example of this?
Thanks

Beta Was this translation helpful? Give feedback.
All reactions