private List<NavigationItem> GetItems() { List<NavigationItem> menus = new List<NavigationItem>(); NavigationItem download = new NavigationItem() { Url = new Uri("/Views/Download.xaml", UriKind.Relative) }; menus.Add(download); return menus; }
private Menus() { this.Menu = new List<NavigationItem>(); NavigationItem all = new NavigationItem() { Status = NavigationType.Process, Text = "全部壁纸" }; NavigationItem local = new NavigationItem() { Status = NavigationType.Wait, Text = "本地壁纸" }; this.Menu.Add(all); this.Menu.Add(local); }