1
Я реализую PropertyChangedEventHandler PropertyChanged и всегда имеет значение null. строковое свойство является правильным Donno где проблема здесь код я используюСвойствоChangedEventHandler СвойствоChanged равно null
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
public bool _playerGridVisibility ;
public bool PlayerGridVisibility
{
get { return _playerGridVisibility; }
set
{
_playerGridVisibility = value;
this.OnPropertyChanged(Strings.PlayerGridVisibilityString);
}
и в XAML
Visibility="{Binding Path=AdsGridVisibility, Converter={StaticResource VC}}"
}
так может кто-нибудь знает эту проблему?
О том, как обращаться с OnPropertyChanged, вы должны прочитать [this] (https://blogs.msdn.microsoft.com/ericlippert/2009/04/29/events-and-races/) –