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