开发者

How can I change the default image location for a Silverlight project in Visual Studio

Re: Visual Studio 2010 Silverlight 4.0 project.

When setting the source for an image element using the builder from the property sheet, it Visual Studio has a handy option t开发者_运维知识库o add an image file to the project and set it as the source for the control.

The Problem:

Visual Studio wants to put those images in a folder called images off the root of my project, and will even create that folder if it doesn't exist. However, my project is structured so that the images should go in a different directory (assets\images). So I am always having to move them after using that builder.

The Question:

Is there a way to configure the project or change the default in Visual Studio such that the builder puts newly imported images in a different directory?


I don't think we can configure that. The best workaround for you would be to put a create a folder with all the images and add it to the project. From the Source property for Image control in the Properties window, you will able to select images from the "Choose image" dialog box.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜