Paste2Xaml & ReaderWmf

Import metafiles or copy graphics from almost any application into xaml. Free Trial Buy Now

Paste2Xaml - convert clipboard and metafiles into xaml

Paste2Xaml is a WPF application that can read Windows metafiles (wmf), Enhanced Metafiles (emf) or get matafile objects from clipboard and can convert them into XAML. It is possible to export XAML for WPF or Silverlight applications.

Paste2Xaml is using the Ab2d.ReaderWmf library that imports metafiles and can be also used in your applications.


Paste2Xaml Screenshots

Paste2Xaml with pasted Power Point slide
Main Paste2Xaml window - a Power Point slide has been pasted to the Paste2Xaml application (showing as WPF elements).


Export Dialog
Export Dialog - showing the xaml text and all the export options for a metafile. It is possible to export xaml for WPF and Silverlight applications. It is also possible to export to Enhanced Metafiles (emf) - useful for saving clipboard data that can be later opened with Ab2d.ReaderWmf.
The objects from metafile can be exported as Shapes or as Geometries. Geometries export provide additional options to optimize for better performance and lower memory usage.

The graph from Microsoft Excel 2003 shown in XamlPad
The graph from Microsoft Excel 2003 shown in XamlPad.

The following screenshot is showing Paste2Xaml with opened metafile that was created in AutoCad:
Paste2Xaml with opened metafile created in AutoCad



Screenshots of sample metafiles
The following images show screenshots of metafiles converted to XAML and show in IE (click on image to see it in full size):


Word art from Microsoft Word 2003

Formated cells from Microsoft Excel 2007
   

Calendar created in Microsoft Visio 2003

Database schema created in Microsoft Visio 2003
   

Meeting Room schema created in Microsoft Visio 2003

Electrical equipment schema created in Microsoft Visio 2003
   

Brainstorm diagram created in Microsoft Visio 2003

Sample from Microsoft Office free Clip Arts
   

Sample from Microsoft Office free Clip Arts

Sample from Microsoft Office free Clip Arts
   

Sample from Microsoft Office free Clip Arts

Sample from Microsoft Office free Clip Arts



ResourceDictionaryWriter

With Ab2d.ReaderWmf library it is possible to build ResourceDictionares from metafiles. This means all metafiles are converted into xaml which makes them much more efficient and easier to use.

To make building ResourceDictionares there is a ResourceDictionaryWriter sample application that is available with full source code so it can be fully customized. The following screenshot shows ResourceDictionaryWriter application with three metafiles added to the ResourceDictionary (xaml of ResourceDictionary can be seen on the right):

ResourceDictionaryWriter screenshot


Related Blog posts
To see the development history of Ab2d.ReaderWmf and Paset2Xaml, check out the related blog posts.

 

Information about changes:
Subscribe to RSS feed to all Blog posts.
Subscribe to RSS feed to Blog posts related to Ab2d.ReaderWmf and Paste2Xaml.
Follow me on twitter.
Subscribe to newsletter - enter your email into Newsletter box on my Blog.