public PrivateVideoView(global::Android.Content.Context context, VideoPlayer videoPlayer) : base(context) { _videoPlayer = videoPlayer; SetOnPreparedListener(this); SetOnCompletionListener(this); ViewTreeObserver.AddOnScrollChangedListener(this); }
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) { if (Control != null) { Control.Settings.BuiltInZoomControls = true; Control.Settings.DisplayZoomControls = false; ViewTreeObserver.AddOnScrollChangedListener(this); } base.OnElementPropertyChanged(sender, e); }