用于Visual Studio 2008的Silverlight工具-放置控件问题 [英] Silverlight Tools for Visual Studio 2008 - Placing a Control Issue

查看:109
本文介绍了用于Visual Studio 2008的Silverlight工具-放置控件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于VS2008的Silverlight工具有什么问题?我似乎无法将控件放置在设计器表面上.在两台不同的机器上,这对我不起作用. 您是否需要调整XAML才能放置第一个控件?
光标在表面上时会保持像指南针一样的十字形.您是应该拖放控件还是绘制控件?

What is the issue with the Silverlight Tools for VS2008? I can't seem to place controls on the designer surface. This didn't work for me on two different machines. Do you have to tweak the XAML to be able to place the first control?
Cursor stays a compass-like-cross when over the surface. Are you supposed to drag-n-drop controls or draw them?

屏幕截图(据我了解)

Screenshot (as far as I got)

推荐答案

这是对您对正如亚伦·费舍尔(Aaron Fischer)和博扬(Boyan)都提到的那样,用于Visual Studio 2008 SP1的Microsoft Silverlight工具"软件包安装的Visual Studio 2008 Silverlight 2设计器当前是只读的.

As both Aaron Fischer and Boyan have mentioned, the Visual Studio 2008 Silverlight 2 Designer installed by the 'Microsoft Silverlight Tools for Visual Studio 2008 SP1' package is currently read-only.

在Visual Studio 2008中,当前无法从工具箱中将Silverlight 2控件拖放到设计器上.但是,如果在启动拖动之前将光标放在Xaml编辑器中,则可以将控件从工具箱"拖动到Xaml编辑器.

In Visual Studio 2008 you cannot currently drag and drop Silverlight 2 controls from the Toolbox onto the designer. You can however drag controls from the Toolbox to the Xaml editor if your place your cursor in the Xaml editor before initiating the drag.

很有可能在今年的将来版本的工具包中进行更改.在MIX 09上,Silverlight 3上会有一些公告,我不知道这是否会是其中之一.

This will more than likely change in a future version of the tools package, possibly this year. There will be a few announcements on Silverlight 3 at MIX 09, I don't know if this will be one of them.

要获得对Silverlight 2 Xaml的设计控制,您需要安装Expression Blend2.可以下载试用版从此处安装Service Pack 1 .如果已安装此文件,则在Visual Studio 2008中右键单击Page.xaml,然后选择在Expression Blend中打开..."

To get design control over your Silverlight 2 Xaml you need to install Expression Blend 2. You can download a trial here, make sure you also install Service Pack 1 from here. If you have this installed then right click on Page.xaml in Visual Studio 2008 and select 'Open in Expression Blend...'

在Expression Blend中打开后,您可以将控件从工具箱拖放到设计器上.在Expression Blend 2中,工具箱称为资产库",可以通过左键单击双右箭头>>来访问它.在屏幕左侧列表的底部:

Once open in Expression Blend you can drag and drop controls from the toolbox onto the designer. In Expression Blend 2 the Toolbox is called the 'Asset Library' and it can be accessed by left clicking the double right arrow >> at the bottom of the list on the left of the screen:

打开资源库后,一个很好的提示是,如果找不到所需的控件(您提到无法在Expression Blend 2中找到Button控件),请在该控件的搜索"区域中键入其名称.左上方,或单击显示全部..."复选框,如上所示.

Once the Asset Library is open, a good tip if you can't find the control you are looking for (you mention you cannot find the Button control in Expression Blend 2) is to type it's name in the Search area at the top left or click the 'Show All...' check-box as shown above.

此博客文章是开始向Silverlight开发人员介绍Blend 您可以观看的Silverlight编程和表达式混合.

This blog post is a good place to start for a First Look at Using Expression Blend with Silverlight 2 with plenty of screenshots. There are also some follow up videos to that blog post called Introducing Blend To Silverlight Developers and Silverlight Programming And Expression Blend that you can watch.

这篇关于用于Visual Studio 2008的Silverlight工具-放置控件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆