/// <summary> /// When the column's number of the ElasticWrapPanel has changed, reset the MaxMoviesPerPage property to a value so that there's enough content to be able to scroll /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">NumberOfColumnChangedEventArgs</param> private void NumberOfColumnsChanged(object sender, NumberOfColumnChangedEventArgs e) { var vm = DataContext as TabsViewModel; if (vm != null) { vm.MaxMoviesPerPage = e.NumberOfColumns*Constants.NumberOfRowsPerPage; } }
/// <summary> /// Inform when the current number of columns changed in the ElasticWrapPanel /// </summary> ///<param name="e">e</param> private void OnNumberOfColumnsChanged(NumberOfColumnChangedEventArgs e) { var handler = NumberOfColumnsChanged; handler?.Invoke(this, e); }