This example demonstrates how to override commands in DocumentPreview. The technique is to create a descendant of DocumentPreviewControl and override its methods, in this example Print
and PrintDirect
.
- MainWindow.xaml (VB: MainWindow.xaml)
- MainWindow.xaml.cs (VB: MainWindow.xaml.vb)
- MyDocumentPreviewControl.cs (VB: MyDocumentPreviewControl.vb)
(you will be redirected to DevExpress.com to submit your response)