コード例 #1
0
        public void ShowFullScreen()
        {
            if (_model.FileSelected == null)
            {
                return;
            }
            var fullView = new Views.FullWindowView();

            fullView.Fullpdfview.Navigate($@"{_model.FileSelected.FullPathWithExtension}");
            var vm_fullView = new FullWindowModel()
            {
                TitleWindow = $@"OPENED FILE: {_model.FileSelected.FullName}"
            };

            fullView.DataContext = vm_fullView;
            fullView.ShowDialog();
        }
コード例 #2
0
        public void ShowFullScreen()
        {
            if (_model.FileNameSelected == null)
            {
                return;
            }
            var fullView = new Views.FullWindowView();

            fullView.Fullpdfview.Navigate($@"{_model.FileNameSelected.FullPathWithExtension}");
            var vm_fullView = new FullWindowModel()
            {
                TitleWindow = $@"OPENED FILE: {_model.FileNameSelected.FullName}"
            };

            fullView.DataContext = vm_fullView;
            fullView.Closing    += (s, e) =>
            {
                AcrobatProcess();
                activeWindow.FindChild <WebBrowser>("pdfview").Navigate($"{_model.FileNameSelected.FullPathWithExtension}");
            };
            fullView.ShowDialog();
        }