简体   繁体   English

Silverlight 5中的TextBox无法更新

[英]TextBox in Silverlight 5 not update

I migrated the application pro SilverLight 5 as well as the client. 我迁移了应用程序pro SilverLight 5以及客户端。 After this update the textbox does not update client data, even implementing the INotifyPropertyChanged. 此更新后,文本框不会更新客户端数据,甚至不会实现INotifyPropertyChanged。

THAT SAME IN SILVERLIGHT 4 APPLICATION WORKS, THE DETAILS ARE TIMELY TEXTBOX NORMALLY AFTER RaisePropertyChanged. 在Silverlight 4应用程序中也是如此,通常在RaisePropertyChanged之后,这些细节通常是及时的文本框。

Follow my textbox: 跟随我的文本框:

<TextBox Width="43" MaxLength="4" slf:TextBoxFilterService.Filter="PositiveInteger"
    IsEnabled="{Binding DadosServicoEnabled}" Margin="6,0" Text="{Binding
    Path=HoraDataEntradaVeiculo, ValidatesOnDataErrors=True,Mode=TwoWay, 
    Converter={StaticResource HoraConverter}}"/>

Follow properties 关注属性

public string _HoraDataEntradaVeiculo;
public string HoraDataEntradaVeiculo
{
    get
    {
        return _HoraDataEntradaVeiculo;
    }
    set
    {
        _HoraDataEntradaVeiculo = value;
        this.RaisePropertyChanged("HoraDataEntradaVeiculo");    
    }
}

Someone can tell me if the version 5 update changed the way?? 有人可以告诉我版本5更新是否改变了方式?

This used to happen to me after upgrading to Silverlight 5. It would fail to update when run from the IDE and using the browser page started by the IDE. 升级到Silverlight 5后,这种情况经常发生在我身上。从IDE运行并使用IDE启动的浏览器页面时,更新将失败。 If you run your project from IDE and then start your own browser and browse to the page being tested, the TextBox should update as expected. 如果您从IDE运行项目,然后启动自己的浏览器并浏览到要测试的页面,则TextBox应该会按预期更新。

It appears to be resolved with my projects now. 现在看来我的项目已经解决了。 Maybe there are updates you haven't installed or I'm just lucky at the moment. 也许有尚未安装的更新,或者我现在很幸运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM