InvalidOperationException - A TwoWay or OneWayToSource binding cannot work on the read-only property
Either make your setter public or explicitly set the Binding.Mode
to OneWay
.
Your setter is private, either specify the binding to be mode OneWay or remove the private from the setter