コード例 #1
0
        private void load_SORTED()
        {
            if (_SORTED_loaded)
            {
                return;
            }
            if (_document == null)
            {
                return;
            }

            this.fdsvHTML_SORTED.BeginInit();
            FlowDocument doc = new FlowDocument();

            this.fdsvHTML_SORTED.Document = doc;
            doc.FontFamily = new FontFamily("Consolas");
            doc.FontSize   = 12F;

            doc.BeginInit();
            Paragraph p = new Paragraph();

            doc.Blocks.Add(p);

            this.load_SORTEDInternal(_document.DocumentNode, p);

            doc.EndInit();
            this.fdsvHTML_SORTED.EndInit();

            this._SORTED_loaded = true;
        }
コード例 #2
0
        protected override void ReadDocument(XmlReader reader)
        {
            document = new FlowDocument();
            document.BeginInit();
            document.ColumnWidth = double.NaN;

            base.ReadDocument(reader);

            if (hasAnyHyperlink)
            {
                document.AddHandler(Hyperlink.RequestNavigateEvent, new RequestNavigateEventHandler((sender, e) => Process.Start(e.Uri.ToString())));
            }

            document.EndInit();
        }