public ExampleGroupPage(IEnumerable <ExampleGroup> examplesGroups, string control, ExamplesLoader loader)
     : this()
 {
     this.Title                = ControlNameConverter.Convert(control);
     this.control              = control;
     this.examplesLoader       = loader;
     this.listView.ItemsSource = examplesGroups;
 }
Exemple #2
0
        public ExamplesPage(IEnumerable <Example> examples, ExamplesLoader loader, string control, string group = null)
            : this()
        {
            string controlName = ControlNameConverter.Convert(control);

            this.Title   = string.IsNullOrEmpty(group) ? controlName : string.Format("{0}: {1}", controlName, group);
            this.control = control;
            this.loader  = loader;
            this.listView.ItemsSource = examples;
        }
Exemple #3
0
        public ExampleGroupPage(IEnumerable <ExampleGroup> examplesGroups, string control, ExamplesLoader loader)
            : this()
        {
            this.Title          = control;
            this.control        = control;
            this.examplesLoader = loader;
            ListView lv;

            this.Content = lv = new ListView()
            {
                ItemsSource = examplesGroups
            };

            lv.ItemTapped += lv_ItemTapped;
        }
Exemple #4
0
        public ExamplesPage(IEnumerable <Example> examples, ExamplesLoader loader, string control, string group = null)
            : this()
        {
            this.Title   = string.IsNullOrEmpty(group) ? control : string.Format("{0}: {1}", control, group);
            this.control = control;
            this.loader  = loader;
            var listView = new ListView
            {
                ItemsSource  = examples,
                ItemTemplate = this.Resources["itemTemplate"] as DataTemplate
            };

            listView.ItemTapped += lv_ItemTapped;

            this.Content = listView;
        }