私は PropertyChangedEventHandler PropertyChanged を実装していますが、常に 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}}"
}
誰でも問題を知ることができますか?