<?xml version="1.0" encoding="UTF-8"?>
<window id="1104">
    <defaultcontrol always="yes">400</defaultcontrol>
    <menucontrol>9001</menucontrol>
    <onload>RunScript(script.revolve.service,PopulateStaticItemsFromHomeProperties,favourite.%d,MyFavourites%02dOption,1104)</onload>
    <onunload>RunScript(script.revolve.service,ClearProperties,MyFavourites%02dOption,1104)</onunload>

    <controls>
        <include content="FullscreenDimensions" />
        <include content="GlobalBackground" />

        <control type="fixedlist" id="400">
            <visible allowhiddenfocus="true">Skin.HasSetting(Debug.ListBorder.Visible)</visible>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <focusposition>4</focusposition>
            <onleft>9000</onleft>

            <include content="InvisibleVerticalListItemsForMenu" />

            <content>
                <item id="1">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites01Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites01Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites01Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites01Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites01Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites01Option.Action)]</onclick>
                </item>
                <item id="2">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites02Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites02Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites02Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites02Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites02Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites02Option.Action)]</onclick>
                </item>
                <item id="3">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites03Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites03Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites03Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites03Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites03Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites03Option.Action)]</onclick>
                </item>
                <item id="4">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites04Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites04Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites04Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites04Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites04Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites04Option.Action)]</onclick>
                </item>
                <item id="5">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites05Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites05Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites05Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites05Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites05Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites05Option.Action)]</onclick>
                </item>
                <item id="6">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites06Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites06Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites06Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites06Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites06Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites06Option.Action)]</onclick>
                </item>
                <item id="7">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites07Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites07Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites07Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites07Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites07Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites07Option.Action)]</onclick>
                </item>
                <item id="8">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites08Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites08Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites08Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites08Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites08Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites08Option.Action)]</onclick>
                </item>
                <item id="9">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites09Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites09Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites09Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites09Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites09Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites09Option.Action)]</onclick>
                </item>
                <item id="10">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites10Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites10Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites10Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites10Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites10Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites10Option.Action)]</onclick>
                </item>
                <item id="11">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites11Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites11Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites11Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites11Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites11Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites11Option.Action)]</onclick>
                </item>
                <item id="12">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites12Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites12Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites12Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites12Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites12Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites12Option.Action)]</onclick>
                </item>
                <item id="13">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites13Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites13Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites13Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites13Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites13Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites13Option.Action)]</onclick>
                </item>
                <item id="14">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites14Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites14Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites14Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites14Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites14Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites14Option.Action)]</onclick>
                </item>
                <item id="15">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites15Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites15Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites15Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites15Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites15Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites15Option.Action)]</onclick>
                </item>
                <item id="16">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites16Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites16Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites16Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites16Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites16Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites16Option.Action)]</onclick>
                </item>
                <item id="17">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites17Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites17Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites17Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites17Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites17Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites17Option.Action)]</onclick>
                </item>
                <item id="18">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites18Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites18Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites18Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites18Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites18Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites18Option.Action)]</onclick>
                </item>
                <item id="19">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites19Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites19Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites19Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites19Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites19Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites19Option.Action)]</onclick>
                </item>
                <item id="20">
                    <visible>!String.IsEmpty(Window.Property(MyFavourites20Option.Name))</visible>
                    <label>$INFO[Window.Property(MyFavourites20Option.Name)]</label>
                    <label2>$INFO[Window.Property(MyFavourites20Option.Subtitle)]</label2>
                    <icon>$INFO[Window.Property(MyFavourites20Option.Thumbnail)]</icon>
                    <property name="BackgroundImage">$INFO[Window.Property(MyFavourites20Option.BackgroundImage)]</property>
                    <onclick>$INFO[Window.Property(MyFavourites20Option.Action)]</onclick>
                </item>
                <item id="99">
                    <visible>String.IsEmpty(Window.Property(MyFavourites01Option.Name))</visible>
                    <label></label>
                    <label2></label2>
                    <icon></icon>
                    <property name="BackgroundImage"></property>
                    <onclick>Noop</onclick>
                </item>
            </content>
        </control>

        <control type="group">
            <visible>Skin.HasSetting(MyItemsMenu.Default)</visible>
            <include content="RevolveMenu">
                <param name="texture" value="circle/favourites.png" />
                <param name="label" value="$LOCALIZE[1036]" />
                <param name="fallback" value="defaultfavourite.jpg" />
            </include>
        </control>
        
        <control type="group">
            <visible>!Skin.HasSetting(MyItemsMenu.Default)</visible>
            <include content="CircleMenu">
                <param name="label" value="$LOCALIZE[1036]" />
                <param name="fallback" value="defaultfavourite.jpg" />
            </include>
        </control>
        
        <control type="group" id="9000">
            <include content="SideMenu" />

            <control type="grouplist" id="9001">
                <include content="BeginOfButtonListForSideMenu">
                    <param name="onright" value="400" />
                </include>

                <include content="ViewGroupLabelForSideMenu" />
                <include content="MyItemsMenuTypeButtonForSideMenu" />
                
                <include content="PlaylistLibraryGroupLabelForSideMenu" />
                <include content="GenericPlaylistButtonForSideMenu" />
                <include content="ClearPlaylistButtonForSideMenu" />

                <include content="ActionGroupLabelForSideMenu" />
                <include content="FavouritesEditButtonForSideMenu" />

                <include content="NavigationGroupLabelForSideMenu">
                    <param name="visible" value="Skin.HasSetting(SideMenu.Grouped) + Control.IsVisible(91)" />
                </include>
                <include content="GlobalSearchButtonForSideMenu" />
                
                <include content="EndOfButtonListForSideMenu" />
            </control>

            <include content="PlayerControlsForSideMenu">
                <param name="onright" value="400" />
            </include>
        </control>
        
        <include content="GlobalOverlay" />
    </controls>
</window>
