dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.06k stars 1.17k forks source link

Correcting the readonly dependency property bug #149

Open trodent83 opened 5 years ago

trodent83 commented 5 years ago

Now that the WPF will be open source it would be nice if the bug that readonly dependency properties cannot binded with OneWayToSource binding would be corrected. As this is quite bothering somethime.

dotMorten commented 5 years ago

Wouldn't that make a readonly property writeable?

weltkante commented 5 years ago

OneWayToSource bindings will update the binding source and not the property on which the binding is placed, so it should be valid to place such a binding on a readonly dependency property.