Ejemplo n.º 1
0
        public async void Handle_ImageSaving(object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
        {
            args.Cancel = true;
            var data = args.Stream;

            ContentSaved?.Invoke(this, data);
            MessagingCenter.Send(this, MessageKey.MEDIA_EDIT_SAVED, data);
            await Navigation.PopModalAsync();
        }
Ejemplo n.º 2
0
        private async void SaveButton_Clicked(object sender, EventArgs e)
        {
            if (!signatureView.IsBlank)
            {
                ContentSaved?.Invoke(this, await signatureView.GetImageStreamAsync(SignatureImageFormat.Png, strokeColor: Color.Black, fillColor: Color.White));
                MessagingCenter.Send(this, MessageKey.SIGNATURE_PAD_SAVED, await signatureView.GetImageStreamAsync(SignatureImageFormat.Png, strokeColor: Color.Black, fillColor: Color.White));
            }

            await Navigation.PopModalAsync();
        }