Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SampleDataItem" /> class.
 /// </summary>
 public SampleDataItem(string uniqueId, string title, string subtitle, Uri imagePath, string description, string content, SampleDataCollection group, Type navigationPage)
     : base(uniqueId, title, subtitle, imagePath, description)
 {
     this.content        = content;
     this.group          = group;
     this.navigationPage = navigationPage;
 }
Пример #2
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);
        }