예제 #1
0
        protected override void OnPageLoad()
        {
            base.OnPageLoad();
            if (listControl != null)
            {
                switch (SkinUtil.GetDefine(_windowXmlFileName, "#viewmode"))
                {
                case "":
                case "largeicons":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.LargeIcons;
                }
                break;

                case "album":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.AlbumView;
                }
                break;

                case "filmstrip":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.Filmstrip;
                }
                break;

                case "list":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.List;
                }
                break;

                case "playlist":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.Playlist;
                }
                break;

                case "smallicons":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.SmallIcons;
                }
                break;

                case "coverflow":
                {
                    listControl.CurrentLayout = GUIFacadeControl.Layout.CoverFlow;
                }
                break;
                }
            }
        }