protected virtual async Task HandleMouseOut(MouseEventArgs e) { if (Rating.Disabled) { return; } IsActive = false; await ItemHovered.InvokeAsync(null); }
/// <summary> /// Handles the item onmouseout event. /// </summary> /// <param name="eventArgs">Supplies information about a mouse event that is being raised.</param> /// <returns>A task that represents the asynchronous operation.</returns> protected virtual Task HandleMouseOut(MouseEventArgs eventArgs) { if (Rating.Disabled) { return(Task.CompletedTask); } IsActive = false; return(ItemHovered.InvokeAsync(null)); }
protected virtual async Task HandleMouseOver(MouseEventArgs e) { if (Rating.Disabled) { return; } IsActive = true; await ItemHovered.InvokeAsync(Value); }
/// <summary> /// Handles the item onmouseover event. /// </summary> /// <param name="eventArgs">Supplies information about a mouse event that is being raised.</param> /// <returns>A task that represents the asynchronous operation.</returns> protected virtual Task HandleMouseOver(MouseEventArgs eventArgs) { if (Rating.Disabled) { return(Task.CompletedTask); } IsActive = true; return(ItemHovered.InvokeAsync(Value)); }