我有一个从 double到 a的工作OneWayDataBinding我不使用 a因为不是每个用户输入都是可接受的。顺便说一句,我使用了一个影响界面的现有技术。CLRPropertyTexttbox.Text.TwoWayCommandICommand
一旦用户在 中输入文本,问题就会Textbox被Databinding破坏。
<TextBox Text="{Binding Path=myDouble, Converter={converter:DoubleToTextConverter}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>