コード例 #1
0
        void InitChannelProgramItem()
        {
            if (DetailPageHelp.ChannelDetailInfoForPrograms.ProgramInfos.Count <= 1)
            {
                xInfoTextBlock.Visibility = Visibility.Visible;
                SingleProgram        single   = new SingleProgram(DetailPageHelp.ChannelDetailInfoForPrograms);
                List <SingleProgram> singList = new List <SingleProgram>();
                singList.Add(single);
                xProgramsListDownload.ItemsSource  = singList;
                xProgramsListDownload.ItemTemplate = Resources["SingleProgramItemDataTemplate"] as DataTemplate;

                xDownloadTagBlock.Margin     = new Thickness(0, 0, 0, 0);
                xProgramsListDownload.Margin = new Thickness(0, 22, 0, 0);
            }
            else
            {
                InitElement();
            }
            Utils.PursuitUtils.JudgePursuitUpdate(_vID, DetailPageHelp.ChannelDetailInfoForPrograms.ProgramInfos.Count);
        }
コード例 #2
0
ファイル: DetailPage.xaml.cs プロジェクト: uvbs/MyProjects
        void InitChannelProgramItem()
        {
            if (DetailPageHelp.ChannelDetailInfoForPrograms.ProgramInfos.Count <= 1)
            {
                xInfoTextBlock.Visibility = Visibility.Visible;
                SingleProgram single = new SingleProgram(DetailPageHelp.ChannelDetailInfoForPrograms);
                List<SingleProgram> singList = new List<SingleProgram>();
                singList.Add(single);
                xProgramsListDownload.ItemsSource = singList;
                xProgramsListDownload.ItemTemplate = Resources["SingleProgramItemDataTemplate"] as DataTemplate;

                xDownloadTagBlock.Margin = new Thickness(0, 0, 0, 0);
                xProgramsListDownload.Margin = new Thickness(0, 22, 0, 0);
            }
            else
            {
                InitElement();
            }
            Utils.PursuitUtils.JudgePursuitUpdate(_vID, DetailPageHelp.ChannelDetailInfoForPrograms.ProgramInfos.Count);
        }