Los setters no se ejecutan en propiedades de dependencia?
Solo una breve pregunta, para aclarar algunas dudas. ¿No se ejecutan los establecedores cuando un elemento está vinculado a una propiedad de dependencia?
public string TextContent
{
get { return (string)GetValue(TextContentProperty); }
set { SetValue(TextContentProperty, value); Debug.WriteLine("Setting value of TextContent: " + value); }
}
public static readonly DependencyProperty TextContentProperty =
DependencyProperty.Register("TextContent", typeof(string), typeof(MarkdownEditor), new UIPropertyMetadata(""));
...
<TextBox Text="{Binding TextContent}" />
Como noté, el siguiente en mi setter no se ejecuta
Debug.WriteLine("Setting value of TextContent: " + value);