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;
            //}
        }
예제 #2
0
 public ScaleImageViewGestureDetector(ScaleImageView imageView)
 {
     m_ScaleImageView = imageView;
 }