Input/IInputElement.cs

Avalonia · src/Avalonia.Base/Input/IInputElement.cs · csharp · MIT
ui, tag:knn-classified

Interface exposing input events and properties for Avalonia controls.

// Source: https://github.com/AvaloniaUI/Avalonia | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using Avalonia.Interactivity;
using Avalonia.Metadata;

namespace Avalonia.Input
{
    /// <summary>
    /// Defines input-related functionality for a control.
    /// </summary>
    [NotClientImplementable]
    public interface IInputElement
    {
        /// <summary>
        /// Occurs when the control receives focus.
        /// </summary>
        event EventHandler<FocusChangedEventArgs>? GotFocus;

        /// <summary>
        /// Occurs when the control loses focus.
        /// </summary>
        event EventHandler<FocusChangedEventArgs>? LostFocus;

        /// <summary>
        /// Occurs when a key is pr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key