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