public MainPage()
        {
            InitializeComponent();

            HttpWebRequest.RegisterPrefix("http://", new Handler());
            HttpWebRequest.RegisterPrefix("https://", new Handler());

            PortableLibrary.populateDataAsync(item => this.tree.Items.Add(item));
        }
Exemple #2
0
        public SampleDataSource()
        {
            int i = 0;

            PortableLibrary.populateDataAsync(item =>
            {
                var group = new SampleDataGroup(i++.ToString(), item.Title, item.SubTitle, null, item.Description);
                foreach (var subItem in item.SubItems)
                {
                    group.Items.Add(new SampleDataItem(i++.ToString(), subItem.Title, subItem.SubTitle, null, subItem.Description, subItem.Content, group));
                }
                AllGroups.Add(group);
            });
        }
Exemple #3
0
 public MainPage()
 {
     InitializeComponent();
     PortableLibrary.populateDataAsync(item => this.listBox.Items.Add(item));
 }