LoginSignup
0
1

More than 5 years have passed since last update.

WPFにてRIchTextの中にあるHyperlinkのクリックイベントが動作しないときにすること

Posted at

はじめに

  • WPFにて、RichTextを使用していたときに、中に追加したHyperlinkのクリックイベントが発生しなかった。

TL;TD

  • RichTextに、以下のプロパティを設定する
    • isReadOnly = true
    • IsDocumentEnabled = true

ソースコード

sample.xaml
<RichText isReadOnly=true IsDocumentEnabled=true>
    ・
    ・
    ・
</RichText>

必要に応じてHyperlinkを中に設定してみてください。

参考

Clicking HyperLinks in a RichTextBox without holding down CTRL - WPF

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1