INotifyProperty Not Working for static properties in xamarin forms

MathanMathan INMember ✭✭

I have implemented INotifyPropertyChanged for static property in my code. But it doesn't affect UI. Here i have added my code. Anyone has idea on this. Thanks in Advance.

 private static string dateTimeValue;
 public static string DateTimeValue { get { return dateTimeValue; } set 
    { dateTimeValue = value; RaisedPropertyChanged("DateTimeValue"); } }

static void RaisedPropertyChanged([CallerMemberName] string name = null)
    if (PropertyChanged != null)
        PropertyChanged(null, new PropertyChangedEventArgs(name));

The xaml code is,

Sign In or Register to comment.