mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Avalonia multi-touch handling
This commit is contained in:
parent
ac6f3df75a
commit
f6e27f231d
2 changed files with 61 additions and 10 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue