Esempio n. 1
0
        public DataSource()
        {
            string itemContent = string.Format(
                CultureInfo.CurrentCulture,
                "Item Content: {0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}",
                "Curabitur class aliquam vestibulum nam curae maecenas sed integer cras phasellus suspendisse quisque donec dis praesent accumsan bibendum pellentesque condimentum adipiscing etiam consequat vivamus dictumst aliquam duis convallis scelerisque est parturient ullamcorper aliquet fusce suspendisse nunc hac eleifend amet blandit facilisi condimentum commodo scelerisque faucibus aenean ullamcorper ante mauris dignissim consectetuer nullam lorem vestibulum habitant conubia elementum pellentesque morbi facilisis arcu sollicitudin diam cubilia aptent vestibulum auctor eget dapibus pellentesque inceptos leo egestas interdum nulla consectetuer suspendisse adipiscing pellentesque proin lobortis sollicitudin augue elit mus congue fermentum parturient fringilla euismod feugiat");

            var group1 = new SampleDataCollection(
                "Group-1",
                "Group Title: 3",
                "Group Subtitle: 3",
                DataSource.mediumGrayImage,
                "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

            SampleDataItem a = new SampleDataItem(
                "Group-1-Item-3",
                "Violin1",
                "\n\nTry with both buttons and gestures",
                DataSource.darkGrayImage,
                string.Empty,
                itemContent = "1",
                group1,
                typeof(HybridPage));
            SampleDataItem b = new SampleDataItem(
                "Group-1-Item-3",
                "Violin2",
                "\n\nTry with both buttons and gestures",
                DataSource.darkGrayImage,
                string.Empty,
                itemContent = "2",
                group1,
                typeof(HybridPage));

            group1.Items.Add(a);
            group1.Items.Add(b);
            this.AllGroups.Add(group1);
        }
Esempio n. 2
0
 public String getTitle(SampleDataItem e)
 {
     return(e.Title);
 }