Simple Flowdox / Xaml Editor

Working on my other Powershell GUI for displaying a customized MessageBox I wanted to use a RichTextBox control to display the message body. This control takes a Flowdocument (Xaml) as input, enabling messages to be customized with styling like Bold, Italic, Underline, Bullet list, Numbered list and even make selected part mono-spaced. This tool is made to simplify the creation of the Xaml string that can be saved as a text string in the powershell script utilizing the MessageBox. Here’s the script for my take on a Flowdokument editor:

I don’t want to depend of multiple files saved alongside the script to be able to use images in the script so I am saving Base64 encoded images in script. To create these string I used commands as follows:

 

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *