Ejemplo n.º 1
0
        public HardwareList()
        {
            this.InitializeComponent();

            // Ensure that the MainPage is only created once, and cached during navigation.
            this.NavigationCacheMode = NavigationCacheMode.Enabled;

            collection.ItemsSource = CustomDataObject.GetDataObjects();
        }
Ejemplo n.º 2
0
        public GridViewPage()
        {
            InitializeComponent();
            this.DataContext = this;

            // Get data objects and place them into an ObservableCollection
            List <CustomDataObject> tempList = CustomDataObject.GetDataObjects();
            ObservableCollection <CustomDataObject> Items  = new ObservableCollection <CustomDataObject>(tempList);
            ObservableCollection <CustomDataObject> Items2 = new ObservableCollection <CustomDataObject>(tempList);

            BasicGridView.ItemsSource   = Items2;
            ContentGridView.ItemsSource = Items;
            StyledGrid.ItemsSource      = Items;
        }
Ejemplo n.º 3
0
        private async void OnLoaded(object sender, RoutedEventArgs e)
        {
            //Items = ControlInfoDataSource.Instance.Groups.Take(3).SelectMany(g => g.Items).ToList();
            BaseExample.ItemsSource = await ListViewPage.Contact.GetContactsAsync();

            Control2.ItemsSource = await ListViewPage.Contact.GetContactsAsync();

            contacts1 = await ListViewPage.Contact.GetContactsAsync();

            contacts2.Add(new ListViewPage.Contact("John", "Doe", "ABC Printers"));
            contacts2.Add(new ListViewPage.Contact("Jane", "Doe", "XYZ Refridgerators"));
            contacts2.Add(new ListViewPage.Contact("Santa", "Claus", "North Pole Toy Factory Inc."));

            Control4.ItemsSource = CustomDataObject.GetDataObjects();
            ContactsCVS.Source   = await ListViewPage.Contact.GetContactsAsync();

            // Initialize list of contacts to be filtered
            contacts3 = await ListViewPage.Contact.GetContactsAsync();

            contacts3Filtered = new ObservableCollection <ListViewPage.Contact>(contacts3);

            FilteredListView.ItemsSource = contacts3Filtered;
        }