private bool IsSplitView()

in code/src/UI/Services/ProjectConfigInfoService.cs [238:261]


        private bool IsSplitView(string platform)
        {
            switch (platform)
            {
                case Platforms.Uwp:
                    if (IsCSharpProject())
                    {
                        // Prism doesn't have an activation service, but will have PageToken constants
                        return ExistsFileInProjectPath("ShellPage.xaml", "Views")
                            && (ExistsFileInProjectPath("ActivationService.cs", "Services") || ExistsFileInProjectPath("PageTokens.cs", "Constants"));
                    }

                    return ExistsFileInProjectPath("ActivationService.vb", "Services")
                        && ExistsFileInProjectPath("ShellPage.xaml", "Views");
                case Platforms.Wpf:
                    return ExistsFileInProjectPath("ShellWindow.xaml", "Views")
                        && FileContainsLine("Views", "ShellWindow.xaml", "<controls:HamburgerMenu");
                case Platforms.WinUI:
                    return ExistsFileInProjectPath("ShellPage.xaml", "Views")
                        && FileContainsLine("Views", "ShellPage.xaml", "<NavigationView");
                default:
                    return false;
            }
        }