maui-linux/Xamarin.Forms.Platform.UAP/WindowsTicker.cs

23 строки
460 B
C#
Исходник Обычный вид История

using Windows.UI.Xaml.Media;
using Xamarin.Forms.Internals;
2016-03-22 23:02:25 +03:00
namespace Xamarin.Forms.Platform.UWP
{
internal class WindowsTicker : Ticker
{
protected override void DisableTimer()
2016-03-22 23:02:25 +03:00
{
CompositionTarget.Rendering -= RenderingFrameEventHandler;
2016-03-22 23:02:25 +03:00
}
protected override void EnableTimer()
2016-03-22 23:02:25 +03:00
{
CompositionTarget.Rendering += RenderingFrameEventHandler;
2016-03-22 23:02:25 +03:00
}
void RenderingFrameEventHandler(object sender, object args)
2016-03-22 23:02:25 +03:00
{
SendSignals();
2016-03-22 23:02:25 +03:00
}
}
}