Advertisement
Guest User

MainPage.cs

a guest
May 19th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Navigation;
  8. using Microsoft.Phone.Controls;
  9. using Microsoft.Phone.Shell;
  10. using MvvmLight5.Resources;
  11.  
  12. namespace MvvmLight5
  13. {
  14.     public partial class MainPage : PhoneApplicationPage
  15.     {
  16.         // Constructor
  17.         public MainPage()
  18.         {
  19.             InitializeComponent();
  20.             ViewModel.MainViewModel vm = (ViewModel.MainViewModel)this.DataContext;
  21.             List<Dictionary<string, string>> y = new List<Dictionary<string, string>>();
  22.             Dictionary<string, string> x = new Dictionary<string, string>();
  23.             x.Add("1", "A");
  24.             x.Add("2", "B");
  25.             y.Add(x);
  26.             myListBox2.ItemsSource = vm.theList;
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement