コード例 #1
0
        public StoreDemoPage()
        {
            this.InitializeComponent();
            var data = StoreMockData.Create(15, 10);

            outerRepeater.ItemsSource = data;
        }
コード例 #2
0
        public StoreDemoPage()
        {
            InitializeComponent();

            var elementFactory = (RecyclingElementFactory)Resources["elementFactory"];

            elementFactory.Templates.Add("Category", (DataTemplate)Resources["Category"]);
            elementFactory.Templates.Add("Item", (DataTemplate)Resources["Item"]);

            var data = StoreMockData.Create(15, 10);

            outerRepeater.ItemsSource = data;
        }