예제 #1
0
        protected async override void OnElementChanged(ElementChangedEventArgs <CachedImage> e)
        {
            base.OnElementChanged(e);

            if (e.NewElement != null)
            {
                _zoomCachedImage = (ZoomCachedImage)e.NewElement;

                //create the scale image and set it as the native control so it's available
                _cachedScaleImageView = new CachedScaleImageView(Context, null);
                _cachedScaleImageView.zoomCachedImage = _zoomCachedImage;
                SetNativeControl(_cachedScaleImageView);
                await LoadImage();
            }
        }
예제 #2
0
 public CachedScaleImageViewGestureDetector(CachedScaleImageView imageView)
 {
     m_ScaleImageView = imageView;
 }