예제 #1
0
        private async void SaveButton_Clicked(object sender, EventArgs e)
        {
            var    a     = starFive.Rating;
            Stream image = await PadView.GetImageStreamAsync(SignatureImageFormat.Png);

            viewmodel.submit(image, a);
            // .
        }
예제 #2
0
        private async void SaveButton_Clicked(object sender, EventArgs e)
        {
            Stream image = await PadView.GetImageStreamAsync(SignatureImageFormat.Png);

            viewmodel.submit(image);


            // you can add code here to save the Stream image.
        }
예제 #3
0
        private async void ConfirmSignature_Clicked(object sender, EventArgs e)
        {
            Stream firma = await PadView.GetImageStreamAsync(
                SignaturePad.Forms.SignatureImageFormat.Jpeg,
                strokeColor : Color.Black, fillColor : Color.White
                );

            pvm.suscribeFirma(firma);
            //await Application.Current.MainPage.Navigation.PopAsync();
            await App.Navigator.PopAsync();
        }
 /// <summary>
 /// Handles the Clicked event of the Button control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private async void Button_Clicked(object sender, EventArgs e)
 {
     Stream image = await PadView.GetImageStreamAsync(SignaturePad.Forms.SignatureImageFormat.Jpeg);
 }