示例#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;
        }