~haowenl/vorg-windows

25de06763f9d3ceacf3fcaa6870c03fb6b463e3a — Haowen Liu 11 months ago a859e0a
Go to BrowsePage by default
2 files changed, 12 insertions(+), 10 deletions(-)

M vorg-windows/MainWindow.xaml
M vorg-windows/MainWindow.xaml.cpp
M vorg-windows/MainWindow.xaml => vorg-windows/MainWindow.xaml +7 -6
@@ 50,17 50,18 @@
            OpenPaneLength="256">
            <NavigationView.MenuItems>
                <NavigationViewItem
                    x:Name="ImportItem"
                    Content="Import"
                    Icon="Import"
                    IsEnabled="False"
                    Tag="Import" />
                <NavigationViewItem
                    x:Name="BrowseNavigationItem"
                    Content="Browse"
                    Icon="ViewAll"
                    IsEnabled="False"
                    Tag="Browse" />
                <NavigationViewItem
                    x:Name="ImportNavigationItem"
                    Content="Import"
                    Icon="Import"
                    IsEnabled="False"
                    Tag="Import" />
                <NavigationViewItem
                    Content="Manage"
                    Icon="Setting"
                    IsEnabled="False"

M vorg-windows/MainWindow.xaml.cpp => vorg-windows/MainWindow.xaml.cpp +5 -4
@@ 74,8 74,9 @@ void MainWindow::LandingPage_OpenRepo(const vorg_windows::LandingPage &, const W
    // Populate video data
    mApp->PopulateVideoData(mVideoData);

    // Navigate to ImportPage
    ContentFrame().Navigate(mNavigationTypeMap.at(L"Import"));
    // Navigate to BrowsePage
    ContentFrame().Navigate(mNavigationTypeMap.at(L"Browse"));
    mExtraSetupMap.at(L"Browse")();

    // Re-enable all navigation items
    for (const Windows::Foundation::IInspectable &child : NavigationView().MenuItems())


@@ 83,8 84,8 @@ void MainWindow::LandingPage_OpenRepo(const vorg_windows::LandingPage &, const W
        child.as<Microsoft::UI::Xaml::Controls::NavigationViewItem>().IsEnabled(true);
    }

    // Select ImportPage
    ImportItem().IsSelected(true);
    // Select BrowsePage
    BrowseNavigationItem().IsSelected(true);
}

void MainWindow::ImportPage_VideoImported(const vorg_windows::ImportPage &, const Windows::Foundation::IInspectable &)