Beispiel #1
0
 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;
 }
Beispiel #2
0
 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);
 }