Hello,
I'm currently developing my first MediaPortal-plugin and I'm having some very basic problems with the GUIFacadeControl.
No matter what I try I can't get any items in the list to show up on the screen.
this is my XML:
I'm trying to use the default facade-control. Is this correct?
And a snippet from my code:
but the screen still turns up empty when I start my plugin.
I've tested adding some ButtonControls to the XML and they turn up OK on the screen.
But I can't get this facade to work. Can somebody please help me?
I'm currently developing my first MediaPortal-plugin and I'm having some very basic problems with the GUIFacadeControl.
No matter what I try I can't get any items in the list to show up on the screen.
this is my XML:
Code:
<window>
<id>7654</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<import>common.window.xml</import>
<import>common.facade.xml</import>
</controls>
</window>
I'm trying to use the default facade-control. Is this correct?
And a snippet from my code:
Code:
[SkinControlAttribute(50)] protected GUIFacadeControl facadeView = null;
facadeView = new GUIFacadeControl(GetID);
facadeView.View = GUIFacadeControl.ViewMode.List;
facadeView.Clear();
facadeView.Add(new GUIListItem("item1"));
facadeView.Add(new GUIListItem("item2"));
but the screen still turns up empty when I start my plugin.
I've tested adding some ButtonControls to the XML and they turn up OK on the screen.
But I can't get this facade to work. Can somebody please help me?