Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Navigation;
- using Microsoft.Phone.Controls;
- using Microsoft.Phone.Shell;
- using MvvmLight5.Resources;
- namespace MvvmLight5
- {
- public partial class MainPage : PhoneApplicationPage
- {
- // Constructor
- public MainPage()
- {
- InitializeComponent();
- ViewModel.MainViewModel vm = (ViewModel.MainViewModel)this.DataContext;
- List<Dictionary<string, string>> y = new List<Dictionary<string, string>>();
- Dictionary<string, string> x = new Dictionary<string, string>();
- x.Add("1", "A");
- x.Add("2", "B");
- y.Add(x);
- myListBox2.ItemsSource = vm.theList;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement