Avalonia multi-touch handling

This commit is contained in:
ClemensFischer 2024-05-22 21:20:49 +02:00
parent ac6f3df75a
commit f6e27f231d
2 changed files with 61 additions and 10 deletions

View file

@ -4,18 +4,20 @@
using System;
#if WPF
using System.Windows;
using System.Windows.Threading;
#elif UWP
using Windows.UI.Xaml;
#elif AVALONIA
using Avalonia.Threading;
using DependencyObject = Avalonia.AvaloniaObject;
#endif
namespace MapControl
{
internal static class Timer
{
public static DispatcherTimer CreateTimer(this object _, TimeSpan interval)
public static DispatcherTimer CreateTimer(this DependencyObject _, TimeSpan interval)
{
return new DispatcherTimer { Interval = interval };
}