WPF Getter/Setter Not Being Called

后端 未结 3 1451
感情败类
感情败类 2020-12-04 00:56

I have the following code. The PropertyChanged event is being called but the getter and setter is not. I can\'t for the life of me see why not. I have other properties where

3条回答
  •  伪装坚强ぢ
    2020-12-04 01:07

    XAML will invoke the SetValue and GetValue methods directly, which is why you shouldn't place any logic in your static Set/Get methods, but use a property changed handler instead.

提交回复
热议问题