How in MAUI if I have two different Content Pages I can load first in second

  Kiến thức lập trình

CP – Content Page

For example:
MainWindow.xaml.cs – CP

MobileWindow.xaml.cs – CP
DesktopWindow.xaml.cs – CP

And I want If I have IOS or Android in MainWindow.xaml.cs load MobileWindow.xaml.cs

If desktop->load Desktop.xaml.cs

Help me please,) MainWindow.xaml.cs can inherits from other class. Give me best solution. But MainWindow.xaml.cs must be replaced by own by CP.

If you can use in xaml OnPlatform please)

New contributor

Maksym Shymchenko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.