Inheritance: System.EventArgs
 void UpdateImageSize(object sender, FFImageLoading.Args.SuccessEventArgs args)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         this.ForceUpdateSize();
     });
 }
Ejemplo n.º 2
0
        internal void OnSuccess(Args.SuccessEventArgs e)
        {
            var handler = Success;

            if (handler != null)
            {
                handler(this, e);
            }

            var successCommand = SuccessCommand;

            if (successCommand != null && successCommand.CanExecute(e))
            {
                successCommand.Execute(e);
            }
        }
Ejemplo n.º 3
0
        internal async void OnSuccess(Args.SuccessEventArgs e)
        {
            await MainThreadDispatcher.Instance.PostAsync(() =>
            {
                var handler = Success;
                if (handler != null)
                {
                    handler(this, e);
                }

                var successCommand = SuccessCommand;
                if (successCommand != null && successCommand.CanExecute(e))
                {
                    successCommand.Execute(e);
                }
            });
        }