DependencyProperty value not getting set through data binding
问题 I have a class which has a DependencyProperty member: public class SomeClass : FrameworkElement { public static readonly DependencyProperty SomeValueProperty = DependencyProperty.Register( "SomeValue", typeof(int), typeof(SomeClass)); new PropertyMetadata( new PropertyChangedCallback(OnSomeValuePropertyChanged))); public int SomeValue { get { return (int)GetValue(SomeValueProperty); } set { SetValue(SomeValueProperty, value); } } public int GetSomeValue() { // This is just a contrived example