A TwoWay or OneWayToSource binding cannot work on the read-only property A TwoWay or OneWayToSource binding cannot work on the read-only property wpf wpf

A TwoWay or OneWayToSource binding cannot work on the read-only property


It's hard to guess without code, but you should be able to set the BindingMode to OneWay.

<TextBox Text="{Binding Path=MyProperty, Mode=OneWay}" />

or from code:

Binding binding = new Binding();binding.Mode = BindingMode.OneWay;