Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The IViewExportService allows a developer to export a specific view that belongs to a view model to the clipboard, a file or a printer.

Table of Contents

Platform info

FrameworkSupported
WPFImage Removed
Silverlight 5Image Removed
Windows Phone 8.0Image Removed
Windows Phone 8.1Image Removed
Windows RT 8.0Image Removed
Windows RT 8.1Image Removed
AndroidImage Removed
iOSImage Removed
Test/emulation serviceImage Removed

Exporting a view

To export a view, use the following code:

Code Block
var dependencyResolver = this.GetDependencyResolver();
var viewExportService = dependencyResolver.Resolve<IViewExportService>();
viewExportService.Export(myViewModel, ExportMode.File);

Supported export methods

Export methodWPFSilverlight
Clipboard
Image Modified
Image Modified
File
Image Modified
Image Modified
Print
Image Modified
Image Modified