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

How to add WPF-UserControl to RadElement

1 Answer 172 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomek
Top achievements
Rank 1
Tomek asked on 04 Mar 2020, 11:02 AM

Hallo,

I have Winforms Application.

I created WPF-UserControl.

I'm trying to add this WPF-UserControl (per elementHost) to one of RadElement in my Winforms Form.

It could be RadPanelElement or my custom class extending RadElement.

Is it possible, and if it is possible how can i add, place WPF-UserControl on RadElement?

Or how can i prepare my custom radElement which will show WPF-UserControl?

 

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 06 Mar 2020, 12:26 PM

Hello Tomek,

You can create a custom control by using RadHostItem class which allows you to add controls to RadElements. More information and example is available here: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/elements/use-control-inside-an-element#use-controls-inside-an-element

Note, although it is possible to host an entire user control in RadHostItem, it is not recommended to do so in cases with complex controls.

I hope this information helps.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Tomek
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or