I am developing a custom User Control using WPF. I have registered DependancyProperty but I want to make it only OneWay binding. Is it possible to do it? Here is what I have:
public static readonly DependencyProperty CustomPrProperty =
DependencyProperty.Register(
"CustomPr",
typeof(string),
typeof(CustomView),
new FrameworkPropertyMetadata(string.Empty, OnDependencyPropertyChanged));
This way when someone use the User Control, he can make it OneWay, OneWayToSource and TwoWay. How can I make it read only property?