This is a migrated thread and some comments may be shown as answers.

Customize Insert Hyperlink Dialog

1 Answer 170 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 03 Jan 2021, 09:38 AM

I am trying to customize Insert hyperlink dialog. My goal is to apply hyperlink (navigationUri) from predefined list i.e. link to users available in system.

I am using WPF 5.0. I am not sure should I follow MEF approach or create usercontrol and implement functionality.

I found one old thread

Can I customize the default "Insert Hyperlink" dialog window. But I am facing following error

Cannot resolve dependency to assembly 'Telerik.Windows.Documents.Core, Version=2020.3.1019.40

 

Can you please guide me how to achieve this task.  

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 04 Jan 2021, 11:28 AM

Hi Kamran,

You need a new window that implements the IInsertHyperlinkDialog interface. Once you are ready with the window you can set it like this: 

public MainWindow()
{
    InitializeComponent();
    radRichTextBox.InsertHyperlinkDialog = new CustomInsertHyperlinkDialog();
}

A sample implementation is available in our SDK repository as well: xaml-sdk/MainPage.xaml.cs at master ยท telerik/xaml-sdk.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
RichTextBox
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or