Xaml Generator – a New App for Office
A few years ago I build and shared the source code for a Word to Xaml Converter, a Word 2007 add-in that developers could use to convert Microsoft Office Word documents to Xaml for WPF and Silverlight applications. Since it was originally published, the solution has been downloaded more than 3,000 times and I’ve received lots of feedback on it, progressively enhancing it to handle more Word features in the Xaml conversion. I built the converter as a .NET library and a Word COM add-in, both built in C#.
Apps for Office
With this new App for Office, you select the text that you want to convert in Microsoft Word and then press the [Generate Xaml] button. The generated text is then put in the task pane which you can then copy to Visual Studio to use in an app. With this new release, I added Windows Xaml which can be used for Windows Universal Apps released for Windows 8.1 and Windows Phone 8.1.
To use the Xaml Generator in Word 2013
- Open the Insert tab and press the Xaml Generator button or find it in the Store button in the insert tab. Once you install the app, it should show up as a task pane to the right of the editing workspace.
- Select the text that you want to convert in Word.
- Choose the Xaml type in the drop-down and press the Generate Xaml button. The appropriate Xaml will then be generated and put into the text area.
- Press the Copy to clipboard button to copy the text in the output window to your clipboard.
- Paste the Xaml in your clipboard into Visual Studio or Expression Blend.
I’d loved your feedback on the app as it’s my first App for Office.