I found solution using Delegates
public static EnableDelegate DelEnable = new EnableDelegate(DelCal);
public delegate void EnableDelegate();
private void DelCal()
{
OnPropertyChanged("IsEnable");
}
private static Visibility isenable;
public static Visibility IsEnable
{
get
{
return isenable;
}
set
{
if (isenable != value)
{
isenable = value;
}
}
}
//Invoking delegate when changing the value
IsEnable = Visibility.Hidden;
DelEnable();