-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListBoxItem.cs
30 lines (28 loc) · 812 Bytes
/
ListBoxItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
namespace YouTubeTracker
{
/// <summary>
/// Class <c>ListBoxItem</c> models an item of custom ListBox.
/// </summary>
public class ListBoxItem
{
/// <summary>
/// Text shown in TextBlock.
/// </summary>
public string text { get; set; }
/// <summary>
/// Image displayed in Image.
/// </summary>
public Uri image { get; set; }
/// <summary>
/// Constructor for creating new item from text string and image url string.
/// </summary>
/// <param name="_text">Text</param>
/// <param name="image_url">Image url</param>
public ListBoxItem(string _text, string image_url)
{
text = _text;
image = new Uri(image_url);
}
}
}