The IViewExportService allows a developer to export a specific view that belongs to a view model to the clipboard, a file or a printer.
Platform info
Framework | Supported |
---|---|
WPF | |
Silverlight 4 | |
Silverlight 5 | |
Windows Phone 7 | |
Windows Phone 8 | |
Windows RT | |
Test/emulation service |
Exporting a view
To export a view, use the following code:
var viewExportService = GetService<IViewExportService>(); viewExportService.Export(myViewModel, ExportMode.File);
Supported export methods
Export method | WPF | Silverlight |
---|---|---|
Clipboard | ||
File | ||