1
votes

Sorry this seems to be a dumb question, but really I have no clue!

I'm writing an UWP app. Trying to put up the NavigationView Control in the MainPage, and set the navigation bar at top, not left.

So this should be easily implemented with...

  <NavigationView PaneDisplayMode="Top">
        <NavigationView.MenuItems>
            <NavigationViewItem Content="Design" Tag="DesignPage" />
            <NavigationViewItem Content="Settings" Tag="SettingsPage" />
            <NavigationViewItem Content="Library" Tag="LibraryPage" />
        </NavigationView.MenuItems>
    </NavigationView>

The IDE VS2017 (community) says "The Property 'PaneDisplayMode' was not found in type 'NavigationView'." !!!

Everything is pretty up to date in the IDE.

Project target version is Win10 1803 Build 17134

Min version is Win10 FallCreators Update Build 16299

In project References, there is the 'Universal Windows' fixed reference, it properties says Version = 10.0.17134.0 the Win10 installed in my computer is version 1803

PaneDisplayMode is absent

This property should appear, as is stated in this webpage reference manual Microsoft Dev Reference

What can I do?

1

1 Answers

4
votes

PaneDisplayMode was introduced in 1809, So it's normal.

If you still want to use this property, you can use NavigationView from WinUI . With WinUI, you can use the most recent Updated UIs while keeping your Min Target to a much lower Version of Windows.

To know how to use WinUI in you project, visit this page