protected override async void OnElementChanged(ElementChangedEventArgs<Image> e) { base.OnElementChanged(e); var scaleImageView = new ScaleImageView(Context, null); var bitmap = await GetBitmapAsync(e.NewElement.Source); scaleImageView.SetImageBitmap(bitmap); SetNativeControl(scaleImageView); //if (e.NewElement == null) //{ // this.GenericMotion -= HandleGenericMotion; // this.Touch -= HandleTouch; //} //if (e.OldElement == null) //{ // this.GenericMotion += HandleGenericMotion; // this.Touch += HandleTouch; //} }
public ScaleImageViewGestureDetector(ScaleImageView imageView) { m_ScaleImageView = imageView; }