Exemplo n.º 1
0
        static void MainPageResize(Thickness tk)
        {
            pp.pivot.Margin = tk;
            ResizePivot(ref pp, tk);
            pp.pivot.Width = tk.Right - tk.Left;
            tk.Right      -= tk.Left;
            tk.Top         = 0;
            tk.Left        = 0;
            tk.Bottom     -= 40;
            pp.item_margin = tk;
            switch (pp.index)
            {
            case 0:
                HomePage_m.ReSize(tk);
                break;

            case 1:
                NavPage.ReSize(tk);
                break;

            case 2:
                SearchResult_m.ReSize(tk);
                break;

            case 3:
                PartialPage.Resize(tk);
                break;

            case 4:
                SettingPage.ReSize(tk);
                break;
            }
        }
Exemplo n.º 2
0
        static void ChangePage()
        {
            switch (pp.index)
            {
            case 0:
                HomePage_m.Hide();
                break;

            case 1:
                NavPage.Hide();
                break;

            case 2:
                SearchResult_m.Hide();
                break;

            case 3:
                //PartialPage.hi;
                break;
            }
            pp.index = pp.pivot.SelectedIndex;
            switch (pp.index)
            {
            case 0:
                HomePage_m.Create(pp.son[0], pp.item_margin);
                break;

            case 1:
                NavPage.Create(pp.son[1], pp.item_margin);
                break;

            case 2:
                SearchResult_m.Create(pp.son[2], pp.item_margin);
                break;

            case 3:
                PartialPage.Create(pp.son[3], pp.item_margin);
                break;
            }
        }