none
Multipage application in Silverlight for Windows Embedded Compact 7 RRS feed

  • Question

  • Hi everybody!

    I’m developing an application on Silverlight 3 for Windows Embedded Compact 7. The application is composed by 4 main pages (like Home page, Insert Data page, and so on). Each page contain a different number of sub-pages. The user of the application can navigate between all the pages.

    I’ve solved the problem of sub-pages by using a canvas for each sub-page and by “playing” with the visibility property of the canvas.

    I have a problem with the navigation of the 4 main pages (the navigation is made by pushing Next or Back buttons). In order to implement that option, I’ve followed this post :

    http://social.msdn.microsoft.com/Forums/en-US/winembnatapp/thread/a5f481ed-e8d6-4958-863e-6692f587bda1

    My problem is that this procedure create a new page every time I change the page: in this way all the labels, textboxes and so on of a page return to their default values when I recall that page. With the aim to solve this problem, I’ve tried to erase the children->Clear(); instruction, to define the correct index in the children->Add(page1,&index); instruction for the 4 pages (e.g. index 100 for HomePage, 101 for the second page, 102 and 103 for the third and the fourth page respectively) and to use the SetVisibility(XRVisibility_Collapsed) instruction in order to hide the current page. I’ve tried to use the visibility property with the aim to make visible the next page, but I can’t do that: I don’t know how to set the visibility property of a page from another page.

    Can someone help me?

    Thanks in advance!

    PS : in Silverlight, each main page is defined as :

    <UserControl

          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

          mc:Ignorable="d"

          xmlns:local="clr-namespace:MultiPage"

          x:Class="MultiPage.Page1"

          d:DesignWidth="800" d:DesignHeight="600">

          <Grid x:Name="LayoutRoot">

          ...

          </Grid>

    </UserControl>

    Friday, June 14, 2013 8:25 AM

All replies

  • Hi, did you get a solution to fix your issue? How to show variable height user controls?
    Any help would be greatly appropriated.

    Wednesday, January 8, 2014 1:10 PM