forked from amkovkov/GranuSightSoftware2
21 lines
475 B
C#
21 lines
475 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Input;
|
|
|
|
namespace GSS2;
|
|
|
|
public class TouchTextBox : TextBox
|
|
{
|
|
protected override Type StyleKeyOverride => typeof(TextBox);
|
|
|
|
public TouchTextBox()
|
|
: base()
|
|
{
|
|
AddHandler(PointerPressedEvent, OnPointerPressed, handledEventsToo: true);
|
|
}
|
|
|
|
private void OnPointerPressed(object? sender, PointerPressedEventArgs ea)
|
|
{
|
|
Console.WriteLine($"TODO: process TouchTextBox.PointerPressed event");
|
|
}
|
|
}
|