locked
Modify split template to 3 levels

    Question

  • Hi

    I want implement a new layer to my split template app.

    1. MainMenu1

         1.1 Menü1

              1.1.1 Item1

              1.1.1 Item2

    2. MainMenu2

          1.2 Menü2  

          .....

    Currently I have implemented a new page and navigation works with 3 layers. In SampleDataSource.cs I added a new class for "MainMenu".

    But if I choose "MainMenu" I always get all "Menü" group items displayed.

    I think the problem is in the ItemViewEvent

     void ItemView_ItemClick(object sender, ItemClickEventArgs e)
     {
          // Navigate to the appropriate destination page, configuring the new page
          // by passing required information as a navigation parameter
          var groupId = ((MainDataGroup)e.ClickedItem).UniqueId;
          this.Frame.Navigate(typeof(ItemsPage), groupId);
     }
    But I don't know how can I map my "MainMenu" to an "Menu" item?

    Regards




    • Edited by Snowman5840 Thursday, May 22, 2014 9:46 AM change the question
    Thursday, May 22, 2014 6:30 AM

Answers

  • ok after some trail and error I solve it.

    - added a new page

    - modified ItemView_ItemClick

    - use in navigationHelper_LoadState the e.NavigationParameter and creates new SampleDataSource.GetGroupsAsync methode where I dynamically load the groups from a SharePoint mapping list.

    • Marked as answer by Snowman5840 Thursday, May 22, 2014 11:20 AM
    Thursday, May 22, 2014 11:20 AM

All replies

  • ok after some trail and error I solve it.

    - added a new page

    - modified ItemView_ItemClick

    - use in navigationHelper_LoadState the e.NavigationParameter and creates new SampleDataSource.GetGroupsAsync methode where I dynamically load the groups from a SharePoint mapping list.

    • Marked as answer by Snowman5840 Thursday, May 22, 2014 11:20 AM
    Thursday, May 22, 2014 11:20 AM
  • Thanks for sharing the solution.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, May 23, 2014 1:57 AM
    Moderator