private void CopyButton_Click(object sender, RoutedEventArgs e) { if (HexEdit.CanCopy()) { HexEdit.CopyToClipboard(); try { if (Clipboard.ContainsText()) { MessageBox.Show(Clipboard.GetText()); } } catch { //Clipboard fail if (Clipboard.ContainsText()) { MessageBox.Show(Clipboard.GetText()); } } } else { MessageBox.Show("Can't copy right now !"); } }
private void CopyStringMenu_Click(object sender, RoutedEventArgs e) => HexEdit.CopyToClipboard();
private void CopyHexaMenu_Click(object sender, RoutedEventArgs e) => HexEdit.CopyToClipboard(CopyPasteMode.HexaString);