Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Silverlight Tip of the Day #66 – How to copy XAML for Silverlight from Expression Designer

Microsoft Expression Design is a professional illustration and graphic design tool that lets you build compelling elements. This tool is especially great for creating vector based graphics for your elements.

If you do not have Expression Designer, check out: http://www.microsoft.com/expression/products/FAQ.aspx?key=design for more info.

Once you have created an element from this tool, you can copy the XAML of the objects you created directly into your Silverlight application through the Windows clipboard.

To do this, open your project and select the element you want to copy in Expression Designer. To select an element, mouse left click on the canvas and hold the mouse button down while moving the selection rectangle over your element. When it’s selected, it should be highlighted in red like this element:

image

Next, choose Edit->Options->Clipboard (XAML)…

image 

This will bring up the Options dialog. From the “Clipboard format” option, drop down the combo box and choose “XAML Silverlight Canvas”. Click the OK button when done.

image

From the Edit menu choose Edit->Copy XAML.

image

Finally, open up your Silverlight Application project in Visual Studio. Open the XAML page you want to copy the element into. When ready, press Ctrl+v to paste your elements XAML into your XAML page.

Result:

image

Thank you,
--Mike Snow

 Subscribe in a reader

Comments

Microsoft Weblogs said:

Microsoft Expression Design is a professional illustration and graphic design tool that lets you build

# October 27, 2008 3:08 PM

2008 October 28 - Links for today « My (almost) Daily Links said:

Pingback from  2008 October 28 - Links for today « My (almost) Daily Links

# October 28, 2008 4:50 AM

CmdrMarvin said:

Not sure about the 'professional' bit there. I was at Mix08 in UK recently and saw one design company using a XAML plug-in for Adobe Fireworks. I think this is a much better path to pursue rather than Microsoft trying to reinvent what other companies have refined over many versions.

# October 28, 2008 5:53 AM

Silverlight news for October 28, 2008 said:

Pingback from  Silverlight news for October 28, 2008

# October 28, 2008 6:32 AM

Tool Top #1: Kopieren von XAML f??r Silverlight aus Expression Designer said:

Pingback from  Tool Top #1: Kopieren von XAML f??r Silverlight aus Expression Designer

# October 28, 2008 9:49 AM

Community Blogs said:

In this issue: Jesse Liberty, Michael Sync, Shawn Burke, David Anson, Andy Beaulieu, Dan Wahlin, Laurent

# October 28, 2008 7:31 PM

2008 October 29 - Links for today « My (almost) Daily Links said:

Pingback from  2008 October 29 - Links for today « My (almost) Daily Links

# October 29, 2008 5:45 AM

Visual Web Developer Team Blog said:

Silverlight Tip of the Day #66 Title: How to copy XAML for Silverlight from Expression Designer Silverlight

# November 3, 2008 1:40 PM

espresso said:

For a developer who is creating a straight up application that doesn't have very much flashy type of UI, do I need to use Expression or can I get by with VS?

# December 4, 2008 5:37 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:57 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:57 PM

o UAU nosso de cada dia said:

essa lista eu copiei desse blog bárbaro (acompanhe por RSS você também): uma lista de dicas super úteis

# January 3, 2009 6:25 AM