/// <summary> /// copy encrypted text /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Clicked(object sender, EventArgs e) { var text = txt_Send.Text; if (text == null || text.Length == 0) { DisplayAlert("TIP", "Wanna text can't be empty.", "OK"); } else { string encrypted = "UnderText://" + Key.Encrypt(text); Clipboard.SetTextAsync(encrypted); txt_Send.Text = ""; } }