<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">9000</defaultcontrol>
    <menucontrol>9000</menucontrol>
    <onload condition="Skin.HasSetting(Settings.DialogInfoAutoRefresh) + !StringCompare(Skin.String(Dialog.LastAutoRefresh),ListItem.Label) + Control.IsVisible(6)">AlarmClock(DialogRefreshTimer,SendClick(6),00:01,silent)</onload>
    <onload condition="Skin.HasSetting(Settings.DialogInfoAutoRefresh)">Skin.SetString(Dialog.LastAutoRefresh,$INFO[ListItem.Label])</onload>

    <controls>
        <control type="group">
            <posy>PosYForFifteenLinesDialog</posy>

            <include content="WindowForDialog">
                <param name="height" value="HeightForFifteenLinesDialog" />
                <param name="headerlabel" value="$VAR[MusicInfoTitleLabel]" />
                <param name="iconthumbnail" value="$VAR[ContentThumbnail]" />
                <param name="animate" value="true" />
            </include>

            <control type="list" id="20">
                <include content="MarkupForInfoListForDialog">
                    <param name="height" value="160" />
                    <param name="pagecontrol" value="30" />
                </include>

                <include content="ItemsForInfoListInDialog" />

                <content>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Born))</visible>
                        <label>$LOCALIZE[21893]</label>
                        <label2>$INFO[ListItem.Property(Artist_Born)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Died))</visible>
                        <label>$LOCALIZE[21897]</label>
                        <label2>$INFO[ListItem.Property(Artist_Died)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Formed))</visible>
                        <label>$LOCALIZE[21894]</label>
                        <label2>$INFO[ListItem.Property(Artist_Formed)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Disbanded))</visible>
                        <label>$LOCALIZE[21896]</label>
                        <label2>$INFO[ListItem.Property(Artist_Disbanded)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_YearsActive))</visible>
                        <label>$LOCALIZE[21898]</label>
                        <label2>$INFO[ListItem.Property(Artist_YearsActive)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Genre))</visible>
                        <label>$LOCALIZE[515]</label>
                        <label2>$INFO[ListItem.Property(Artist_Genre)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Style))</visible>
                        <label>$LOCALIZE[176]</label>
                        <label2>$INFO[ListItem.Property(Artist_Style)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Mood))</visible>
                        <label>$LOCALIZE[175]</label>
                        <label>$INFO[ListItem.Property(Artist_Mood)]</label>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Artist_Instrument))</visible>
                        <label>$LOCALIZE[21892]</label>
                        <label2>$INFO[ListItem.Property(Artist_Instrument)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEqual(ListItem.DBType,artist) + !String.IsEmpty(ListItem.Artist)</visible>
                        <label>$LOCALIZE[557]</label>
                        <label2>$INFO[ListItem.Artist]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>String.IsEqual(ListItem.DBType,song) + !String.IsEmpty(ListItem.Album)</visible>
                        <label>$LOCALIZE[558]</label>
                        <label2>$INFO[ListItem.Album]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Year)</visible>
                        <label>$LOCALIZE[172]</label>
                        <label2>$INFO[ListItem.Year]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Album_Type))</visible>
                        <label>$LOCALIZE[564]</label>
                        <label2>$INFO[ListItem.Property(Album_Type)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Album_Label))</visible>
                        <label>$LOCALIZE[21899]</label>
                        <label2>$INFO[ListItem.Property(Album_Label)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Album_Style))</visible>
                        <label>$LOCALIZE[176]</label>
                        <label2>$INFO[ListItem.Property(Album_Style)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Album_Theme))</visible>
                        <label>$LOCALIZE[15111]</label>
                        <label2>$INFO[ListItem.Property(Album_Theme)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Album_Mood))</visible>
                        <label>$LOCALIZE[175]</label>
                        <label2>$INFO[ListItem.Property(Album_Mood)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Mood)</visible>
                        <label>$LOCALIZE[175]</label>
                        <label2>$INFO[ListItem.Mood]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.DiscNumber))</visible>
                        <label>$LOCALIZE[427]</label>
                        <label2>$INFO[ListItem.Property(Role.DiscNumber)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Conductor))</visible>
                        <label>$LOCALIZE[29905]</label>
                        <label2>$INFO[ListItem.Property(Role.Conductor)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Orchestra))</visible>
                        <label>$LOCALIZE[38034]</label>
                        <label2>$INFO[ListItem.Property(Role.Orchestra)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Composer))</visible>
                        <label>$LOCALIZE[29903]</label>
                        <label2>$INFO[ListItem.Property(Role.Composer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Lyricist))</visible>
                        <label>$LOCALIZE[38035]</label>
                        <label2>$INFO[ListItem.Property(Role.Lyricist)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Arranger))</visible>
                        <label>$LOCALIZE[38037]</label>
                        <label2>$INFO[ListItem.Property(Role.Arranger)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Engineer))</visible>
                        <label>$LOCALIZE[38038]</label>
                        <label2>$INFO[ListItem.Property(Role.Engineer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Mixer))</visible>
                        <label>$LOCALIZE[38041]</label>
                        <label2>$INFO[ListItem.Property(Role.Mixer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Producer))</visible>
                        <label>$LOCALIZE[38039]</label>
                        <label2>$INFO[ListItem.Property(Role.Producer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.Remixer))</visible>
                        <label>$LOCALIZE[38036]</label>
                        <label2>$INFO[ListItem.Property(Role.Remixer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Property(Role.DJMixer))</visible>
                        <label>$LOCALIZE[38040]</label>
                        <label2>$INFO[ListItem.Property(Role.DJMixer)]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Rating)</visible>
                        <label>$LOCALIZE[563]</label>
                        <label2>$INFO[ListItem.Rating]</label2>
                        <onclick>Noop</onclick>
                    </item>
                </content>
            </control>

            <control type="scrollbar" id="30">
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="160" />
                </include>
                <onleft>9000</onleft>
            </control>

            <include content="HorizontalDialogListOfContentMediaFlag">
                <param name="posx" value="560" />
                <param name="posy" value="250" />
            </include>

            <include content="TextboxForDialog">
                <param name="visible" value="String.IsEqual(ListItem.DBType,artist)" />
                <param name="posy" value="280" />
                <param name="height" value="200" />
                <param name="textboxid" value="4" />
                <param name="scrollbarid" value="24" />
                <param name="label" value="$VAR[ContentDescription]" />
                <param name="onleft" value="9000" />
            </include>

            <include content="TextboxForDialog">
                <param name="visible" value="!String.IsEqual(ListItem.DBType,artist)" />
                <param name="posy" value="320" />
                <param name="height" value="160" />
                <param name="textboxid" value="4" />
                <param name="scrollbarid" value="24" />
                <param name="label" value="$VAR[ContentDescription]" />
                <param name="onleft" value="9000" />
            </include>

            <control type="list" id="50">
                <description>Track Listing</description>
                <visible>!String.IsEmpty(Container(50).ListItem(1).Label)</visible>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="520" />
                    <param name="height" value="160" />
                    <param name="pagecontrol" value="25" />
                </include>
                <onleft>9000</onleft>
                <onright>25</onright>
                
                <itemlayout height="40">
                    <include>NormalItemsForNormalListInDialog</include>
                </itemlayout>
                    
                <focusedlayout height="40">
                    <control type="group">
                        <visible>Control.HasFocus(50)</visible>
                        <include>FocusedItemsForNormalListInDialog</include>
                    </control>
                    <control type="group">
                        <visible>!Control.HasFocus(50)</visible>
                        <include>NormalItemsForNormalListInDialog</include>
                    </control>
                </focusedlayout>
            </control>

            <control type="scrollbar" id="25">
                <description>Track Listing Scrollbar</description>
                <visible>Control.IsVisible(50)</visible>
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="520" />
                    <param name="height" value="160" />
                </include>
                <onup>25</onup>
                <ondown>25</ondown>
                <onleft>50</onleft>
                <onright>Noop</onright>
            </control>

            <include content="TextboxForDialog">
                <param name="visible" value="String.IsEqual(ListItem.DBType,artist) + String.IsEmpty(Container(50).ListItem(1).Label)" />
                <param name="posy" value="520" />
                <param name="height" value="120" />
                <param name="textboxid" value="51" />
                <param name="scrollbarid" value="52" />
                <param name="label" value="$VAR[ContentNoAlbumListing]" />
            </include>
            
            <include content="TextboxForDialog">
                <param name="visible" value="String.IsEqual(ListItem.DBType,album) + String.IsEmpty(Container(50).ListItem(1).Label)" />
                <param name="posy" value="520" />
                <param name="height" value="120" />
                <param name="textboxid" value="53" />
                <param name="scrollbarid" value="54" />
                <param name="label" value="$VAR[ContentNoTrackListing]" />
            </include>
            
            <control type="grouplist" id="9000">
                <include content="MarkupForButtonListForDialog">
                    <param name="posy" value="480" />
                    <param name="height" value="200" />
                </include>
                <onright condition="Control.IsVisible(50)">50</onright>
                <onright condition="!Control.IsVisible(50)">24</onright>

                <include content="SpacerForButtonListForDialog">
                    <param name="id" value="26" />
                    <param name="visible" value="!Control.IsVisible(6)" />
                </include>
                <include content="SpacerForButtonListForDialog">
                    <param name="id" value="27" />
                    <param name="visible" value="!Control.IsVisible(7)" />
                </include>
                <include content="SpacerForButtonListForDialog">
                    <param name="id" value="32" />
                    <param name="visible" value="!Control.IsVisible(12)" />
                </include>
                <control type="label" id="33">
                    <description>Get Song Thumbnail Button Spacer</description>
                    <visible>Window.Is(songinformation)</visible>
                    <height>40</height>
                </control>
                <control type="button" id="6">
                    <description>Refresh Artist / Refresh Album Button</description>
                </control>
                <control type="button" id="7">
                    <description>User Rating Button</description>
                </control>
                <control type="button" id="10">
                    <description>Get Artist/Album Thumbnail Button</description>
                    <visible>Window.Is(musicinformation)</visible>
                </control>
<!--                
                <control type="button" id="13">
                    <description>Get Song Thumbnail Button</description>
                    <visible>Window.Is(songinformation)</visible>
                </control>
-->                
                <control type="button" id="12">
                    <description>Get Fanart Button / Album Information</description>
                </control>
                <include content="CloseButtonForDialog">
                    <param name="id" value="21" />
                </include>
            </control>
        </control>
    </controls>
</window>
