maui-linux/Xamarin.Forms.Platform.Android/Renderers/FormsImageView.cs

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

2016-03-22 23:02:25 +03:00
using System;
using Android.Content;
using Android.Runtime;
using Android.Widget;
namespace Xamarin.Forms.Platform.Android
{
internal class FormsImageView : ImageView
{
bool _skipInvalidate;
public FormsImageView(Context context) : base(context)
{
}
protected FormsImageView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
{
}
public override void Invalidate()
{
if (_skipInvalidate)
{
_skipInvalidate = false;
return;
}
base.Invalidate();
}
public void SkipInvalidate()
{
_skipInvalidate = true;
}
}
}