Class representing a single link item.
コード例 #1
0
 /// <summary>
 /// Initializes a new instance based on the specified <see cref="JArray"/>.
 /// </summary>
 /// <param name="array">An instance of <see cref="JArray"/> representing the link picker list.</param>
 protected LinkPickerList(JArray array)
 {
     Items = (
         from obj in array
         let link = LinkPickerItem.Parse(obj as JObject)
                    where link != null
                    select link
         ).ToArray();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new image picker item based on the specified <code>image</code>, <code>title</code>, <code>description</code> and <code>link</code>.
 /// </summary>
 /// <param name="image">An instance of <see cref="IPublishedContent"/> representing the selected image.</param>
 /// <param name="title">The title of the item.</param>
 /// <param name="description">The description of the item.</param>
 /// <param name="link">An instance of <see cref="LinkPickerItem"/> representing the link of the item.</param>
 public ImagePickerItem(ImagePickerImage image, string title, string description, LinkPickerItem link) {
     Image = image;
     Title = title;
     Description = description;
     Link = link ?? LinkPickerItem.Parse(new JObject());
 }