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;
 }
Beispiel #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;
        }