C#WPF页面 - 加载页面的最佳方式

时间:2018-05-17 15:33:11

标签: c# wpf

我正在尝试制作WPF用户界面以跟踪送货/接收和库存等。

我有多个页面,会有很多页面。

我不希望每行都行,以使它们可以这样:

static public class Remote
{
    static List<IPage> Pages = new List<IPage>();

    static Remote()
    {
        Pages.Add(new pShipping());
        Pages.Add(new pReceiving());
        Pages.Add(new pInventory());
        Pages.Add(new pCustomers());
        Pages.Add(new pAdmin());
    }
}

正如我所说,我真的不想这样做。有没有更好的方法来导航页面而不预先加载,或单独将它们添加到数组/列表?

0 个答案:

没有答案