Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Rendering Embed WPF-UserControl with Elementhost inside WinForm

$
0
0

I have a custom IDE with few control, which can draw shapes. As I am exploring WPF ,I want to use WPFCustom Controls inside it.So,

I created a WPFUserControl which basically draws a Shape (like Rectangle for now).

Added WPFUserControl DLL to Winform Project.

Added - libraries

      PresentationCore

      PresentationFramework

     WindowsBase

     WindowsFormsIntegration

Created a custom control and hosted the WPFUserControl using ElementHost.

But, when i try to place the control inside the IDE , it doesn't draw anything - I don't see any drawings.

How to use a WPF control / custom control/user control  inside a Winform Custom Control

what i am trying to do is, embed wpfcontrol into winform IDE and perform drawings.

What Should i do now in order to use WPFControl inside a Custom IDE like other winform custom controls.

I am using .NET3.5

any help is highly appreciated




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>