blob: 94b1724622b1218fce7266c634546ab95f6bed5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
using System.Windows.Threading;
namespace Xamarin.Forms
{
internal class WinPhoneTicker : Ticker
{
readonly DispatcherTimer _timer;
public WinPhoneTicker()
{
_timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(15) };
_timer.Tick += (sender, args) => SendSignals();
}
protected override void DisableTimer()
{
_timer.Stop();
}
protected override void EnableTimer()
{
_timer.Start();
}
}
}
|