PowerShell Presentation Framework - Part 3 (Media Resources)
Now it's time to break into some of the content that makes PoSHPF unique. In this particular post we'll talk about what I call Media Resources. What I really mean is easy references to images or sounds without having to change their value in PowerShell.
Alrighty, so now we know how to create a window and make a button do something. What about media like images and sounds? In C# you might embed the resource (image/sound) directly in your executable and reference it via an internal path reference. In PowerShell though, short of converting the file to a base-64 value there isn’t a really good way to store file content directly in your script. Nor should there be.