Add an object to text flow

This page applies to WPF projects only

The text control objects RichTextBox, TextBlock, Label, and FlowDocumentScrollViewer in Microsoft Expression Blend can contain other objects, such as images, shapes, and other text controls. After you add an object to one of these text controls, you can drag the object to wherever you want it to appear in the text.


You can also add an object to content controls (such as a Button), but the object will replace any existing text because those controls can contain only one child element.

For information about how to add one object to another object, see Add an element to a layout panel.

To add an object to a text object

  1. Under Objects and Timeline, double-click the RichTextBox, TextBlock, Label, and FlowDocumentScrollViewer object to which you want to add an element.

    Notice that a yellow highlight appears around the object to indicate that it is now the active element. Any new object created on the artboard is always added as a child element of the active element.

  2. Do one of the following:

    • Drag an image file from outside Expression Blend onto the artboard over the text object.

    • Right-click an image in the Project panel, and then click Insert.

    • From the Toolbox, select one of the drawing tools (for example, Ellipse Cc294518.d7a04618-e35a-44f9-b78c-1f22e38016c1(en-us,Expression.10).png or Pen Cc294518.894f8612-e0ed-4e00-84cf-a9bc8f38fc54(en-us,Expression.10).png) and then draw the element in the text control.

    • From the Toolbox or the Asset Library Cc294518.0224cabd-5da1-4e01-bddd-4a647401a098(en-us,Expression.10).png, select a control (for example, a Grid panel Cc294518.a87ee957-7fbf-4135-a6ab-6de7e63160aa(en-us,Expression.10).png or Button Cc294518.05df1779-a68f-436b-b834-a91b7995a3ec(en-us,Expression.10).png), and then draw the element in the text control.

  3. Drag the object to the desired location in the text object.