INotifyPropertyChanged sur une page web
Salut,
Est-ce que quelqu'un sait me dire si c'est possible d'utiliser les INotifyPropertyChanged sur des pages web et si oui, comment s'abonner à ces notifications.
J'ai pu créer la class qui se charge des notifications mais je n'arrive pas à récupérer l'évenement.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| public class Notifications : INotifyPropertyChanged
{
private ImageButton it_btLum1;
//Test définir ici tous les boutons utilisé par l'application
public ImageButton it_Lum1
{
get { return it_btLum1; }
set
{
it_btLum1 = value;
SendPropertyChanged("it_Lum1");
}
}
private void SendPropertyChanged(string property)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(property));
}
public event PropertyChangedEventHandler PropertyChanged;
} |