Wiki Navigation
- Loading...
Description
An implementation of an item that is part of a collection (E.g, a GUIThumbnailPanel).
GUIListItem Tags
Element Name |
Data Type |
Description |
|---|
Inherited Tags
Element Name |
Data Type |
Description |
|---|
GUIWindow Properties Exposed
Property Name |
Data Type |
Description |
|---|
GUIListItem Public Methods
Method Name |
Parameter |
Description |
|---|---|---|
FreeIcons |
|
Free the memory that is used by the icons. |
FreeMemory |
|
Free the memory that is used. |
IsDownloading |
Boolean |
|
IsPlayed |
Boolean |
|
IsRemote |
Boolean |
|
ItemSelected |
GUIControl |
This method will raise the OnItemSelected() event to let any listener know that this item has been selected by the user in a list, thumbnail or filmstrip control |
RefreshCoverArt |
|
|
RetrieveArt |
Boolean |
|
GUIListItem Public Properties
Property Name |
Type |
Description |
|---|---|---|
AlbumInfoTag |
Object |
Get/set the object tag info of a music album |
DimColor |
Integer |
|
Duration |
Integer |
Get/set the duration (in seconds) of the movie or song. |
DVDLabel |
String |
Get/set the DVDLabel of the item. This indicates the disc number of movie. |
FileInfo |
FileInformation |
Get/set the file info of the item. |
HasIcon |
Boolean |
Returns True if the item has an icon. |
HasIconBig |
Boolean |
Returns True if the item has a bigicon. |
HasPinIcon |
Boolean |
Returns True if the item has an icon. |
HasThumbnail |
Boolean |
Returns True if the item has a thumbnail. |
Icon |
Get/set the icon image. |
|
IconBig |
Get/set the big icon image. |
|
IconImage |
String |
Get/set the filename of the IconImage of the item. |
IconImageBig |
String |
Get/set the filename of the IconImageBig of the item. |
IsFolder |
Boolean |
Get/set if the item is a folder. |
ItemId |
Integer |
Get/set the general item id. |
Label |
String |
Get/set the text of the first label of the item. |
Label2 |
String |
Get/set the text of the second label of the item. |
Label3 |
String |
Get/set the text of the third label of the item. |
MusicTag |
Object |
Get/set the object containing the tag info of a music file (e.g., id3 tag). |
Path |
String |
Get/set the path + filename of the item. |
PinIcon |
Get/set the pinicon image. |
|
PinImage |
String |
|
Rating |
Float |
Get/set the rating of a movie. |
Selected |
Boolean |
Get/set if the current item is selected. |
Shaded |
Boolean |
Get/set if the control is shaded. |
Size |
Long |
Gets the file size of the item. |
Thumbnail |
Get/set the Thumbnail image. |
|
ThumbnailImage |
String |
Get/set the filename of the ThumbnailImage of the item. |
TVTag |
Object |
Get/set the object containing the tag info of a tv-recording. |
Year |
Integer |
Get/set the release year of the movie/song. |
Notes and Examples
Using GUIListItem from a plugin
using System;
using System.Windows.Forms;
using MediaPortal.GUI.Library;
namespace OurPlugin
{
public class Class1 : GUIWindow, ISetupForm
{
[SkinControlAttribute(50)]
public GUIFacadeControl facadeOne = null;
public Class1()
{
}
public override bool Init()
{
return Load(GUIGraphicsContext.Skin+@"\ourplugin.xml");
}
protected override void OnPageLoad()
{
facadeOne.View = GUIFacadeControl.ViewMode.SmallIcons;
GUIListItem item = new GUIListItem("Item 1");
item.Label = "Label";
item.ThumbnailImage = "C:\\Program Files\\Team MediaPortal\\MediaPortal\\mplogo.gif";
facadeOne.Add(item);
}
}
}

This page has no comments.