Share via


Import assets from Expression Design 2

This page applies to Silverlight 1 projects only

Microsoft Expression Design 2 includes exporting tools that create assets that you can import into a Microsoft Silverlight 1.0 project that is open in Microsoft Expression Blend 2. This is useful when you want to use the extensive design features of Expression Design 2 to create pieces of the user interface for your Silverlight 1.0 application.

To export assets from Expression Design 2

  1. With a project open in Microsoft Expression Design 2, click to Export on the File menu. The Export dialog box appears.

    Cc296369.4f664cda-6e4c-404c-b42a-0687c2ed8246(en-us,Expression.10).png

  2. Under Items to Export, select Whole document.

  3. Under Export Properties, in the Format drop-down list, select one of the following options:

    • Select XAML Silverlight Canvas to import the whole canvas into a Silverlight 1.0 project, from which you can copy and paste objects into other documents.

    • Select XAML WPF Canvas to import the whole canvas into a WPF project, from which you can copy and paste objects into other documents, or create a user control from the objects.

    • Select XAML WPF Resource Dictionary to be able to import each layer into a WPF project as a drawing brush resource that you can apply to Brush properties.

    Cc296369.f47213a3-3c37-4bc1-ac22-19ccc0db3fea(en-us,Expression.10).png

  4. Accept the defaults and click Export All. A Silverlight 1.0-compatible XAML document is created that includes objects that represent your artwork.

To import assets into Expression Blend

  1. In Microsoft Expression Blend 2, on the Project menu, click Add Existing Item, browse to your exported file, select it, and then click Open. The exported file is added to your project.

  2. Double-click the file to open it on the artboard.

    Cc296369.df386bbe-83a6-4dfd-be6f-179ca0eb457e(en-us,Expression.10).png

  3. Using the Selection Cc296369.2ff91340-477e-4efa-a0f7-af20851e4daa(en-us,Expression.10).png tool, you can select objects on the artboard or under Objects and Timeline. Hold the CTRL key to select more than one.

  4. On the Edit menu, select Copy (or press CTRL+C).

  5. Open the document into which you want to paste the objects, and then, on the Edit menu, click Paste (or press CTRL+V). The objects from your Expression Design 2 project are now in your Silverlight 1.0 project.

Note

Instead of copying and pasting from the exported file into another document, such as the Page.xaml file, you could make the exported file the starting XAML file of your Silverlight 1.0 application. For more information, see Change the startup page of a Silverlight project in Expression Blend 2.

Note

Also see the following topics in the Expression Design 2 User Guide:

  • Create and export slices

  • Exporting vector images

See also

Concepts

Import XAML that is exported from Expression Design