新Blend Preview 5中的绑定问题。 [英] Issue with binding in new Blend Preview 5.

查看:57
本文介绍了新Blend Preview 5中的绑定问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自上个月上一次过期以来,我安装了Silverlight 5的新预览版。我现在遇到绑定问题。例如,如果单击旁边的方框以获取元素,请转到数据绑定,单击元素属性选项卡,即使我选择了匹配类型,我的确定按钮
也会显示为灰色。

I installed the new preview for silverlight 5 today since the last one expired last month. I am now having an issue with binding. For example, If I click the square box beside with for an element, go to databinding, click element property tab, my OK button is grayed out even if I have a matching type selected.

所以我将有一个按钮,尝试将其宽度绑定到另一个按钮的宽度,但OK按钮始终显示为灰色。我可以在源中手动键入绑定。然后,如果我回去并尝试对该元素进行数据绑定,则OK按钮将被取消输出
,我可以将数据绑定到正常的其他内容。

So I will have a button, try to bind its width to another button's width, but the OK button is always grayed out. I can type the binding in manually in the source. Then, if I go back and try to do databinding on that element, the OK button is ungrayed out and I can databind to other things like normal.

推荐答案

绑定"确定"使用Windows 8 Consumer Preview评估副本,Blend 4上的按钮也显示为灰色。

The Binding "OK" Button is also grayed out on Blend 4 with the Windows 8 Consumer Preview Evaluation Copy.

~Christine

~Christine

编辑...

Edit...

如果你进入XAML并在XAML代码中开始绑定......

If you go into the XAML and start the binding in the XAML code...

<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding }" VerticalAlignment="Top" Margin="0,19.96,0,0"/>

然后该按钮将启用。 

Then the button will become enabled. 


这篇关于新Blend Preview 5中的绑定问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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