Page tree

  Wiki Navigation


 Recently Updated

 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


  • Required:  No
  • Type of Change:  Feature

Skin maintenance becomes more difficult when the same <define> tag appears in multiple skin xml files.  This new feature allows you to place <define> tags in the references.xml file, for use by all skin xml files.

Description of Change

Simply place:


tags in the references.xml file, and refer to these definitions in any of your skin xml files.  The <define> tags typically appear before the first <control> tag (this is not required, but it is likely a good standard). <define> tags occupy the same position in the hierarchy as <control> tags (<define> and <control> are siblings).

This implementation does not alter the prior implementation of the <define> tag.   You can still place a <define> tag within the scope of a <window> tag in an xml file.  However, if you place the same <define> tag in both the references.xml file and the skin xml file for a window, the value defined in the skin xml file overrides the value set in the references.xml file. This behavior mirrors the present behavior of the references.xml control "template" attributes, which are overridden by the values defined in the window xml file.

Additional Information and References

Mantis Issue:


Related xml(s):


Windows IDs:

Related Wiki Page(s):

Skin Architecture



Date added:


XML/Code Samples

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
	<style Name="smallTitle">
		<description>default image</description>



This page has no comments.