What You’ll Learn in This Hour:
Up to now, we have focused almost entirely on the capability of WPF to render output to users via a graphical display. WPF has many capabilities, though, and is not limited to this single form of output. Modern software must enable users to consume their data in a variety of formats.
At this point, our text editor is almost finished. One major feature is missing: printing. It turns out that printing the contents of a
RichTextBox is quite easy. Let’s get to it:
Open the Text Editor project in Visual Studio and open the
Add the following to the window’s
<CommandBinding Command="ApplicationCommands.Print" Executed ...