Export (0) Print
Expand All

Modify a code-behind file

To edit a code-behind file in a Microsoft Expression Blend project, you can double-click the file name in the Projects panel.

If the file is a code-behind file written in C# or Visual Basic .NET, the file will open in the Expression Blend code editor. The code editor includes find-and-replace functionality and IntelliSense.

If you have Microsoft Visual Studio 2010 installed, you can optionally open the code-behind file in Visual Studio.

tip noteTip

For more information about working with code in Expression Blend applications, see Visual design compared to writing XAML and code, Debug Expression Blend applications in Visual Studio 2010, and Writing code that will respond to events.

To open a code-behind file in Expression Blend

  1. In Expression Blend, in the Projects panel, expand the node for your document (for example, MainWindow.xaml) to see the code-behind file.

  2. Double-click the code-behind file.

To open a code-behind file in Visual Studio

  1. In Expression Blend, in the Projects panel, expand the node for your document (for example, MainWindow.xaml) to see the code-behind file.

  2. Right-click the code-behind file, and then click Edit in Visual Studio.

    tip noteTip

    When you open a single code-behind file in Visual Studio instead of opening the entire project and then the file, you cannot use the auto-complete, Build, and Debug features of Visual Studio.

To open an Expression Blend project in Visual Studio

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Show:
© 2015 Microsoft