C# WPF Text with links

前端 未结 3 434
萌比男神i
萌比男神i 2021-01-02 12:29

I just found myself a new challenge: Make a Word Processor that is in handling more like the web than plain text. Designing a nice framework for this is what i cant wait to

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-02 13:01

    Note you also need to set the following properties on your RichTextBox or the hyperlinks will be disabled and won't fire off events. Without IsReadOnly you need to Ctrl-click the hyperlinks, with IsReadOnly they fire with a regular left-click.

    
    

提交回复
热议问题