Пример #1
0
        public SpokeDataSource()
        {
            String ITEM_CONTENT = String.Format("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 SpokeDataGroup("Group-1",
                    "recommended",
                    "Group Subtitle: 1",
                    "Assets/Images/Spoke/recommended1.png",
                    "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");
            group1.Items.Add(new SpokeDataItem("Normal-Group-1-Item-1",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/recommended1.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 29, 27,
                    group1));
            group1.Items.Add(new SpokeDataItem("Normal-Group-1-Item-2",
                     "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/recommended2.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 29, 27,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/Destinations3.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-4",
                     "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/Destinations4.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/Destinations1.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-4",
                     "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/Destinations2.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/PlacesNear3.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1));
            group1.Items.Add(new SpokeDataItem("Small-Group-1-Item-4",
                     "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/PlacesNear2.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 18, 18,
                    group1)); 
            this.AllGroups.Add(group1);

            var group2 = new SpokeDataGroup("Group-2",
                    "other places",
                    "Group Subtitle: 2",
                    "Assets/Images/Spoke/Others1.png",
                    "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");
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-1",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/Others1.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 29, 27,
                    group2));
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-2",
                   "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/Others3.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 29, 27,
                    group2));
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/Others4.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 29, 27,
                    group2));
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-2",
                   "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/PlacesNear4.png",
                   "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                   ITEM_CONTENT, 29, 27,
                   group2));
            group2.Items.Add(new SpokeDataItem("BigOne-Group-2-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/Spoke/Others2.png",
                    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                    ITEM_CONTENT, 58,53,
                    group2));
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-3",
                    "Lorem ipsum dolor",
                    "Destination name",
                    "Assets/Images/HubPage/PlacesNear6.png",
                   "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                   ITEM_CONTENT, 29, 27,
                   group2));
            group2.Items.Add(new SpokeDataItem("Normal-Group-2-Item-3",
                   "Lorem ipsum dolor",
                   "Destination name",
                   "Assets/Images/HubPage/PlacesNear5.png",
                  "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                  ITEM_CONTENT, 29, 27,
                  group2));
            this.AllGroups.Add(group2);
           
        }
Пример #2
0
 public SpokeDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, int ColSpan, int RowSpan, SpokeDataGroup group)
     : base(uniqueId, title, subtitle, imagePath, description)
 {
     this._content = content;
     this._ColSpan = ColSpan;
     this._RowSpan = RowSpan;
     this._group = group;
 }