I've been googling in vain for hours, and can't seem to find a way to view an rtf file in a powershell WPF form.
I can get the rtf file using:
$myContent = gc c:\myContent.rtf
but when I try to display it using:
$RichTextBox.appendText($myContent)
I get the encoded rtf, not the properly formatted content.
Anyone have a way to do this? Loads of examples out there about how to do this in c#, but none for PowerShell.
Thanks,
Ben