No, that feature is not implemented in C# yet, I added ticket
#1823 to track this feature.
Right now read-only properties can be emulated by making private the property identifier and the setter:
public class MyClass : DependencyObject
{
private static readonly DependencyProperty SomethingProperty = DependencyProperty.Register(
"Something", typeof(string), typeof(MyClass), new PropertyMetadata(string.Empty));
public string Something
{
get { return (string)GetValue(SomethingProperty); }
private set { SetValue(SomethingProperty, value); }
}
}
Could that work for you in the meantime?