コード例 #1
0
        public void View(string path, ContextObject context)
        {
            _panel = new WebpagePanel();
            context.ViewerContent = _panel;
            context.Title         = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;

            _panel.LoadFile(path);
            _panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
        }
コード例 #2
0
ファイル: Plugin.cs プロジェクト: hamerstandr/QuickLook-1
        public void View(string path, ContextObject context)
        {
            _panel = new WebpagePanel();
            context.ViewerContent = _panel;
            context.Title         = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;

            if (path.ToLower().EndsWith(".url"))
            {
                path = Helper.GetUrlPath(path);
            }
            _panel.LoadFile(path);
            _panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
        }