Share via


Rename an object (XAML)

When you add an object to the artboard in Blend for Visual Studio 2012, the object is listed in the Objects and Timeline panel, with brackets ([ ]) around the object's type, for example, [Image], [Path], or [Ellipse]. When you have multiple objects of the same type in the same window, it can be hard to distinguish each object from others of the same type. To make it easier to identify unique objects, it is helpful to give each object a unique name.

Tip

If you plan to reference the object from a code-behind file, a unique object name is required.

To rename an object

  • Do one of the following:

    • With the object selected on the artboard, type the new name in the Name box in the Properties panel.

    • In the Objects and Timeline panel, right-click the object that you want to rename, select Rename, and then type the new name.

    • In the Objects and Timeline panel, click the object that you want to rename, then click the object again, and then type the new name.

See Also

Tasks

Rename a project item (Windows Store apps)

Create a duplicate of your project (Windows Store apps)