in code/src/UI/Services/ProjectConfigInfoService.cs [263:281]
private bool IsMenuBar(string platform)
{
switch (platform)
{
case Platforms.Uwp:
return ExistsFileInProjectPath("ShellPage.xaml", "Views")
&& (ExistsFileInProjectPath("MenuNavigationHelper.cs", "Helpers")
|| ExistsFileInProjectPath("MenuNavigationHelper.vb", "Helpers")
|| ExistsFileInProjectPath("MenuNavigationService.cs", "Services"));
case Platforms.Wpf:
return ExistsFileInProjectPath("ShellWindow.xaml", "Views")
&& FileContainsLine("Views", "ShellWindow.xaml", "<Menu Grid.Row=\"0\" Focusable=\"False\">");
case Platforms.WinUI:
return ExistsFileInProjectPath("ShellPage.xaml", "Views")
&& FileContainsLine("Views", "ShellPage.xaml", "<MenuBar");
default:
return false;
}
}