コード例 #1
0
ファイル: LevelsPage.xaml.cs プロジェクト: pitetb/quizzapp
        private void CurrentViewModel_DownloadProgressEvent(object sender, SimpleMvvmToolkit.NotificationEventArgs <int> e)
        {
            if (downloadPrompt == null)
            {
                return;
            }

            Debug.WriteLine("CurrentViewModel_DownloadProgressEvent");
            DownloadPopupContentControl control = (DownloadPopupContentControl)downloadPrompt.Body;

            control.SetPercentProgress(e.Data);
            //downloadPrompt.Message = e.Data.ToString();
        }
コード例 #2
0
ファイル: LevelsPage.xaml.cs プロジェクト: pitetb/quizzapp
        private void CurrentViewModel_InstallFilesProgress(object sender, SimpleMvvmToolkit.NotificationEventArgs <int> e)
        {
            if (downloadPrompt == null)
            {
                return;
            }

            Debug.WriteLine("CurrentViewModel_InstallFilesProgress");
            DownloadPopupContentControl control = (DownloadPopupContentControl)downloadPrompt.Body;

            control.SetTitleText(AppResources.PopupLevelsDownloadInstallationProgress);
            control.SetPercentProgress(e.Data);
            //control.PercentTextblock.Visibility = System.Windows.Visibility.Collapsed;
            //control.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
        }