<?xml version="1.0" encoding="utf-8"?>
<window type="dialog">
    <defaultcontrol always="true">30</defaultcontrol>
    <menucontrol>9000</menucontrol>
    <controls>
        <!-- <include>DimBG</include> -->
        <include>TopBar</include>
        <control type="group">
            <include>FacadeFadeDialogs2ndLevelCondition</include>
            <visible>![Window.IsVisible(DialogPVRGroupManager.xml)]</visible>
            <include>Icon_Fade</include>
            <control type="group">
                <animation effect="slide" tween="circle" easing="out" time="250" start="0,0" end="660,0" condition="[ControlGroup(9000).HasFocus()|Control.HasFocus(8999)|Control.HasFocus(9060)]">conditional</animation>
                <include>DialogOpenClose</include>
                <control type="image">
                    <posx>-760</posx>
                    <posy>150</posy>
                    <width>2930</width>
                    <height>876</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>142</posy>
                    <width>1720</width>
                    <height>217</height>
                    <texture border="100">$VAR[Theme.Color]/common/bg_list.png</texture>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>862</posy>
                    <width>1720</width>
                    <height>172</height>
                    <texture border="100">$VAR[Theme.Color]/common/bg_list.png</texture>
                </control>
                <control type="label">
                    <visible>IsEmpty(Window.Property(IsRadio))</visible>
                    <posx>TextMargin</posx>
                    <posy>183</posy>
                    <width>1800</width>
                    <height>135</height>
                    <align>center</align>
                    <font>InfoTitleFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$LOCALIZE[19199] - $LOCALIZE[19023]</label>
                </control>
                <control type="label">
                    <visible>!IsEmpty(Window.Property(IsRadio))</visible>
                    <posx>TextMargin</posx>
                    <posy>183</posy>
                    <width>1800</width>
                    <height>135</height>
                    <align>center</align>
                    <font>InfoTitleFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$LOCALIZE[19199] - $LOCALIZE[19024]</label>
                </control>
                <control type="group" id="9002">
                    <control type="radiobutton" id="7">
                        <posy>318</posy>
                        <width>695</width>
                        <height>73</height>
                        <radioposx>846</radioposx>
                        <textwidth>740</textwidth>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19074]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>7</onup>
                        <ondown>8</ondown>
                    </control>
                    <control type="edit" id="8">
                        <posy>391</posy>
                        <width>960</width>
                        <height>73</height>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[118]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>7</onup>
                        <ondown>9</ondown>
                    </control>
                    <control type="button" id="9">
                        <posy>464</posy>
                        <width>960</width>
                        <height>73</height>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19202]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>8</onup>
                        <ondown>12</ondown>
                    </control>
                    <control type="image" id="10">
                        <animation type="Conditional" reversible="false" condition="control.HasFocus(9)">
                            <effect type="zoom" start="100" end="108" time="100" center="480,500"/>
                            <effect type="zoom" start="100" end="92.592592592593" time="50" delay="100" center="480,500"/>
                            <effect type="fade" start="10" end="100" time="100"/>
                        </animation>
                        <description>Current Channel Icon</description>
                        <posx>762</posx>
                        <posy>434</posy>
                        <width>173</width>
                        <height>133</height>
                        <aspectratio align="right">keep</aspectratio>
                        <include>SquareThumb</include>
                        <include>ThumbBorder</include>
                    </control>
                    <control type="radiobutton" id="12">
                        <posy>537</posy>
                        <width>960</width>
                        <height>73</height>
                        <radioposx>846</radioposx>
                        <textwidth>740</textwidth>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19206]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>9</onup>
                        <ondown>13</ondown>
                    </control>
                    <control type="spincontrolex" id="13">
                        <posy>610</posy>
                        <width>960</width>
                        <height>73</height>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19200]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>12</onup>
                        <ondown>14</ondown>
                    </control>
                    <control type="radiobutton" id="14">
                        <posy>683</posy>
                        <width>960</width>
                        <height>73</height>
                        <radioposx>846</radioposx>
                        <textwidth>740</textwidth>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19267]</label>
                        <onleft>9000</onleft>
                        <onright>20</onright>
                        <onup>13</onup>
                        <ondown>9001</ondown>
                    </control>
                </control>
                <control type="list" id="20">
                    <posx>960</posx>
                    <posy>318</posy>
                    <width>960</width>
                    <height>585</height>
                    <onleft>7</onleft>
                    <onright>60</onright>
                    <onup>20</onup>
                    <ondown>9001</ondown>
                    <pagecontrol>60</pagecontrol>
                    <itemlayout width="960" height="78">
                        <control type="label">
                            <posx>210</posx>
                            <height>78</height>
                            <width>80</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>FacadeListMainFont</font>
                            <include>TextColor_AlternateColor</include>
                            <info>ListItem.ChannelNumberLabel</info>
                        </control>
                        <control type="label">
                            <posx>300</posx>
                            <height>78</height>
                            <width>600</width>
                            <font>FacadeListMainFont</font>
                            <include>TextColor_AlternateColor</include>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout width="960" height="195">
                        <control type="group">
                            <include>ButtonFocusAnimation</include>
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <height>195</height>
                                <width>960</width>
                                <texture border="1">$VAR[Theme.Color]/list/bg_facade_focus.png</texture>
                            </control>
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>236</width>
                                <height>195</height>
                                <include>SquareThumb</include>
                                <include>ThumbBorder</include>
                            </control>
                            <control type="label">
                                <posx>210</posx>
                                <height>195</height>
                                <width>80</width>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>FacadeListMainFont</font>
                                <include>TextColor_MainColor</include>
                                <info>ListItem.ChannelNumberLabel</info>
                            </control>
                            <control type="label">
                                <posx>300</posx>
                                <posy>56</posy>
                                <height>40</height>
                                <width>600</width>
                                <font>FacadeListMainFont</font>
                                <include>TextColor_MainColor</include>
                                <label>[B]$INFO[ListItem.Label][/B]</label>
                            </control>
                            <control type="label">
                                <posx>300</posx>
                                <posy>110</posy>
                                <height>28</height>
                                <width>600</width>
                                <font>FacadeListSubFont</font>
                                <include>TextColor_MainColor</include>
                                <label>$INFO[ListItem.Property(ClientName)]</label>
                            </control>
                        </control>
                    </focusedlayout>
                </control>
                <control type="scrollbar" id="60">
                    <posx>1886</posx>
                    <posy>318</posy>
                    <height>585</height>
                    <include>VerticalScroller</include>
                    <onleft>20</onleft>
                    <onright>60</onright>
                </control>
                <control type="grouplist" id="9001">
                    <posx>TextMargin</posx>
                    <posy>903</posy>
                    <width>1800</width>
                    <height>90</height>
                    <itemgap>30</itemgap>
                    <aligny>bottom</aligny>
                    <align>center</align>
                    <orientation>horizontal</orientation>
                    <onup>20</onup>
                    <ondown>9001</ondown>
                    <onleft>9000</onleft>
                    <onright>9001</onright>
                    <control type="button" id="4">
                        <include>ButtonFocusAnimation</include>
                        <label>$LOCALIZE[186]</label>
                    </control>
                    <control type="button" id="5">
                        <include>ButtonFocusAnimation</include>
                        <label>$LOCALIZE[14070]</label>
                    </control>
                    <control type="button" id="6">
                        <include>ButtonFocusAnimation</include>
                        <label>$LOCALIZE[222]</label>
                    </control>
                </control>
            </control>
            <!-- SIDE MENU -->
            <control type="group">
                <include>LeftMenu</include>
                <control type="grouplist" id="9000">
                    <include>LeftMenuButtonGroup</include>
                    <onright>7</onright>
                    <ondown>9000</ondown>
                    <onback>7</onback>
                    <control type="label" id="7965">
                        <include>LeftMenuTitleLabel</include>
                        <label>$LOCALIZE[33061]</label>
                    </control>
                    <control type="button" id="30">
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19205]</label>
                    </control>
                    <control type="button" id="31">
                        <description>New channel Button</description>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19204]</label>
                    </control>
                    <control type="button" id="34">
                        <visible>IsEmpty(Window.Property(IsRadio))</visible>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19024]</label>
                    </control>
                    <control type="button" id="34">
                        <visible>!IsEmpty(Window.Property(IsRadio))</visible>
                        <include>LeftMenuButton</include>
                        <label>$LOCALIZE[19023]</label>
                    </control>
                </control>
                <include>LeftMenuScroller</include>
            </control>
        </control>
    </controls>
</window>
