<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">1000</defaultcontrol>
	<coordinates>
		<origin x="0" y="0" />
	</coordinates>
	<controls>
		<include>fadebackground</include>
		<control type="image" id="999"><!-- Dialog background image -->
			<left>578</left>
			<top>66</top>
			<width>770</width>
			<height>948</height>
			<texture border="14">button-menu-background.png</texture>
		</control>
		<control type="label"><!-- Dialog heading (Item Settings) -->
			<left>591</left>
			<top>74</top>
			<width>744</width>
			<height>50</height>
			<label>$LOCALIZE[31560]$INFO[Container(996).NumItems, (,)]</label>
			<align>center</align>
			<visible>Integer.IsGreater(Container(996).NumItems,3) | String.IsEmpty(ListItem.Title)</visible>
		</control>
		<control type="label"><!-- Dialog heading (Play) -->
			<left>591</left>
			<top>74</top>
			<width>744</width>
			<height>50</height>
			<label>$LOCALIZE[208]$INFO[Container(996).NumItems, (,)]</label>
			<align>center</align>
			<visible>!Integer.IsGreater(Container(996).NumItems,3) + !String.IsEmpty(ListItem.Title)</visible>
		</control>
		<control type="button">
			<left>1318</left>
			<top>50</top>
			<width>48</width>
			<height>48</height>
			<texturefocus>touch-close.png</texturefocus>
			<texturenofocus>touch-close.png</texturenofocus>
			<onclick>Dialog.Close(contextmenu)</onclick>
			<visible>$EXP[isEnabledTouch]</visible>
		</control>
		<control type="image">
			<left>591</left>
			<top>128</top>
			<width>744</width>
			<height>6</height>
			<texture>separator.png</texture>
		</control>
		<control type="grouplist" id="996"><!-- Grouplist for context buttons -->
			<left>591</left>
			<top>137</top>
			<width>744</width>
			<height min="72" max="864">auto</height>
			<itemgap>0</itemgap>
			<onleft>Dialog.Close(contextmenu)</onleft>
			<onright>Dialog.Close(contextmenu)</onright>
			<control type="button" id="100"><!-- Custom skin button -->
				<left>0</left>
				<top>0</top>
				<width>744</width>
				<height>72</height>
				<align>center</align>
				<aligny>center</aligny>
				<label>$LOCALIZE[31887]</label>
				<onclick>SetProperty(ItemPath,$VAR[ListItemShortcut],home)</onclick>
				<onclick>SetProperty(ItemName,$ESCINFO[ListItem.Label],home)</onclick>
				<onclick>SetProperty(ItemIcon,$ESCINFO[ListItem.Icon],home)</onclick>
				<onclick>ActivateWindow(1152)</onclick>
				<visible>[$EXP[isContentMovies] | $EXP[isContentEpisodes] | $EXP[isContentMusicvideos] | $EXP[isContentSongs] | $EXP[isContentPlaylists] | $EXP[isContentAddons] | Window.IsVisible(videos) | Window.IsVisible(music) | Window.IsVisible(programs)] + $EXP[isnotParentFolder]</visible>
			</control>
			<control type="button" id="1000"><!-- Button template -->
				<left>0</left>
				<top>0</top>
				<width>744</width>
				<height>72</height>
				<align>center</align>
				<aligny>center</aligny>
			</control>
		</control>
	</controls>
</window>