コード例 #1
0
        public LicenseWindow(Window owner, LicenseWindowViewModel viewModel)
        {
            this.Owner = owner;
              InitializeComponent();
              Loaded += HandleLoaded;

              string licenseText = viewModel.LicenseText;
              FlowDocument flowDoc = new FlowDocument();
              flowDoc.Blocks.Add(new Paragraph(new Run(licenseText)));
              LicenseText.Document = flowDoc;
        }
コード例 #2
0
        public LicenseWindow(Window owner, LicenseWindowViewModel viewModel)
        {
            this.Owner = owner;
            InitializeComponent();
            Loaded += HandleLoaded;

            string       licenseText = viewModel.LicenseText;
            FlowDocument flowDoc     = new FlowDocument();

            flowDoc.Blocks.Add(new Paragraph(new Run(licenseText)));
            LicenseText.Document = flowDoc;
        }