June 2008
Beginner
480 pages
9h 41m
English
What You’ll Learn in This Hour:
Printing
Visuals
Bitmaps
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 MainWindow.xaml file.
Add the following to the window’s CommandBindings:
<CommandBinding Command="ApplicationCommands.Print" Executed ...
Read now
Unlock full access