Implementierung des Interfaces INotifyPropertyChanged

public Class Beispielklasse : INotifyPropertyChanged
{
    # region Member & Property
    private string _variable = String.Empty;

    public string Variabe
    {
        get { return _variable; }
        set 
        {
            _variable = value;
            OnPropertyChanged("Variable");
        }
    }

    # endregion

    #region Interface INotifyPropertyChanged Implementrierung

    public event PropertyChangedEventHandler PropertyChanged;
    protected virtual void OnPropertyChanged(string propertyName)
    {
        PropertyChangedEventHandler handler = PropertyChanged;
        if (handler != null) 
        {
            handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }

    # endregion
}