我不知道他们为什么决定为 to 设置默认值Mode
但这OneTime
不是我大多数时候想要的。它浪费了我一整天的调试时间。
有没有办法将值设置为of 的OneWay
默认值?Mode
x:Bind
<!--This will not listen to future changes. it is OneTime by default-->
<TextBlock Text="{x:Bind Name}"/>
<!--We have to explicitly define Mode value-->
<TextBlock Text="{x:Bind Name, Mode=OneWay}"/>