1public string nome2{3 get { return (string)GetValue(nomeProperty); }4 set { SetValue(nomeProperty, value); }5}67public static readonly DependencyProperty nomeProperty = DependencyProperty.Register("nome", typeof(string), typeof(ValidationControl));
WPF - Dichiarare le DependencyProperties
ABSTRACT
Come dichiarare una Dependency Property in WPF: la proprietà CLR e il campo statico registrato con DependencyProperty.Register.