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; }