private void OnCleared() { if (SignatureCommand != null && SignatureCommand.CanExecute(null)) { SignatureCommand.Execute(null); } }
private async void OnStrokeCompleted() { if (SignatureCommand != null && SignatureCommand.CanExecute(null)) { await Task.Delay(300); var strokes = JsonSerializer.Serialize(this.Strokes); var stream = await this.GetImageStreamAsync(SignatureImageFormat.Png); SignatureCommand.Execute(new Tuple <string, Stream>(strokes, stream)); } }