/// <summary> /// Called after the <see cref="DataContext"/> property changes. /// </summary> protected virtual void OnDataContextChanged() { DataContextChanged?.Invoke(this, EventArgs.Empty); }
private void OnDataContextChanged(EventArgs e) => DataContextChanged?.Invoke(this, e);
private void OnDataContextChanged(DependencyPropertyChangedEventArgs e) { DataContextChanged.Raise(this, e); }
public void NotifyDataContextChanged() { DataContextChanged?.Invoke(this, EventArgs.Empty); }
private void OnBindingContextChanged(object o, EventArgs eventArgs) { DataContextChanged?.Invoke(this, new DataContextChangedEventArgs(_oldbindingContext, BindingContext)); _oldbindingContext = BindingContext; RaiseViewModelChanged(); }