Exemple #1
0
        private KeyedDescription GetListAutoView()
        {
            var list = new ListAuto(key: "General",
                                    itemsSource: () => Customers,
                                    selectedCommand: () => CustomerSelectedCommand);

            list.DefaultLayout = new ListLayoutAuto <Customer>(key: "General",
                                                               layoutName: "TitleAndSubTitle")
            {
                new BindingAuto <Customer>("Title", c => c.Name),
                new BindingAuto <Customer>("SubTitle", c => c.Website)
            };

            return(list.ToDescription());
        }
        private KeyedDescription GetListAutoView()
        {
            var list = new ListAuto(key: "General",
                                    itemsSource: () => Customers,
                                    selectedCommand: () => CustomerSelectedCommand);

            list.DefaultLayout = new ListLayoutAuto<Customer>(key: "General",
                                                    layoutName: "TitleAndSubTitle")
                                     {
                                         new BindingAuto<Customer>("Title", c => c.Name),
                                         new BindingAuto<Customer>("SubTitle", c => c.Website)
                                     };

            return list.ToDescription();
        }