Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Silverlight Navigation menu

Silverlight Navigation menu

Scheduled Pinned Locked Moved WPF
questionwpfxml
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    Hi, At present I am using an xml file to retrieve data for menu (Navigation of pages). The xml looks like the following. Question: How can I make the menu to show sub menus i.e. menu within a menu? Thanks

    ...
    Converter
    /UserControls/Converter.xaml

    Page1 view
    /Views/Page1.xaml

    Test Page
    /Views/Test.xaml

    ...

    A 1 Reply Last reply
    0
    • A arkiboys

      Hi, At present I am using an xml file to retrieve data for menu (Navigation of pages). The xml looks like the following. Question: How can I make the menu to show sub menus i.e. menu within a menu? Thanks

      ...
      Converter
      /UserControls/Converter.xaml

      Page1 view
      /Views/Page1.xaml

      Test Page
      /Views/Test.xaml

      ...

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Just have menu levels in your xml file.

      <Navigation>
      <item>Converter</item>
      <tag>/UserControls/Converter.xaml</tag>
      sub level
      sub level
      </Navigation>
      <Navigation>
      <item>Page1 view</item>
      <tag>/Views/Page1.xaml</tag>
      </Navigation>
      <Navigation>
      <item>Test Page</item>
      <tag>/Views/Test.xaml</tag>
      </Navigation>

      Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound

      A 1 Reply Last reply
      0
      • A Abhinav S

        Just have menu levels in your xml file.

        <Navigation>
        <item>Converter</item>
        <tag>/UserControls/Converter.xaml</tag>
        sub level
        sub level
        </Navigation>
        <Navigation>
        <item>Page1 view</item>
        <tag>/Views/Page1.xaml</tag>
        </Navigation>
        <Navigation>
        <item>Test Page</item>
        <tag>/Views/Test.xaml</tag>
        </Navigation>

        Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        Yes, but how do I make it appear on the UI? At present, I just read the item and tag of the xml file. Does this mean that if I also read the FirstLevel element, then it will automatically show up in the UI and a sub level menu? Thanks

        A 1 Reply Last reply
        0
        • A arkiboys

          Yes, but how do I make it appear on the UI? At present, I just read the item and tag of the xml file. Does this mean that if I also read the FirstLevel element, then it will automatically show up in the UI and a sub level menu? Thanks

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          It will not automatically show up. Silverlight Menu[^] might give you an idea on what you would need to do to show a submenu.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups