示例#1
0
        protected virtual async Task HandleMouseOut(MouseEventArgs e)
        {
            if (Rating.Disabled)
            {
                return;
            }

            IsActive = false;

            await ItemHovered.InvokeAsync(null);
        }
示例#2
0
        /// <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));
        }
示例#3
0
        protected virtual async Task HandleMouseOver(MouseEventArgs e)
        {
            if (Rating.Disabled)
            {
                return;
            }

            IsActive = true;

            await ItemHovered.InvokeAsync(Value);
        }
示例#4
0
        /// <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));
        }