Beispiel #1
0
 /// <summary>
 /// Default handler for refreshing that delegates the action to the view model.
 /// </summary>
 protected virtual async Task OnRefreshAsync(MouseEventArgs e) => await SearchModel?.SearchAsync();
Beispiel #2
0
        /// <summary>
        /// Default handler for searching that delegates the action to the view model.
        /// </summary>
        protected virtual async Task OnSearchAsync(MouseEventArgs e)
        {
            await SearchModel?.SearchAsync();

            CurrentPage = 1; // reset the current page for new searches
        }