`Element Host` is a `Windows Forms control` that can be used to host a Windows Presentation Foundation (`WPF`) element.
Questions tagged [elementhost]
120 questions
0
votes
1 answer
WPF User Control is causing Out of Memory Exception
Looking for a free spell checking solution, I thought I was so smart in doing this but I guess not.
I have created a windows form based application and I want the form to add a user specified amount of user controls (with textboxes) on to a panel.…

Michael
- 1,865
- 3
- 21
- 23
0
votes
1 answer
ElementHost does not work in MTAThread
I have WPF User Control which needs to hosted inside Windows Form in MTAThread. And solution should work with both STAThread and MTAThread. And technically there is no option to change the Apartment State in production…

Saqwes
- 325
- 3
- 12
0
votes
2 answers
Mousewheel events in wpf control hosted in Windows forms
I have a Windows Forms application, which has one WPF user control, available through ElementHost control.
The WPF user control has code designed to respond to mouse wheel events. However none of the code written associated with these events is…

Luis
- 26
- 9
0
votes
2 answers
Problems with Prism hosted in a WinForm ElementHost
I am having problems with hosting a WPF prism app in an ElementHost control and am desparate for help.
The PRISM app runs fine in silverlight and in a standalone WPF.
The main Shell seems to setup fine in the elementHost on a WinForm however other…

rabozo
- 1
- 1
0
votes
2 answers
Black flashbacks when resize wpf element host
I have a WPF UserControl that displayed in a Winform as Element Host.
When I change the screen size quickly or resize it I see a black flashbacks in the background until the UserControl comes to the appropriate size.
I read about it in several…

Hodaya Shalom
- 4,327
- 12
- 57
- 111
0
votes
1 answer
How to solve the error in WPF component on c# windows forms project?
I have created the Windows C# project.There is one windows form. In the same project I created a WPF component and when i try to place this component on windows form some error is coming "Failed to create component".
Please check the link below to…

user2567495
- 11
- 1
- 3
0
votes
1 answer
Binding a WPF element host to a WinForm property
I have a WPF element host sitting in a WinForm.
I would like to bind a property of the element to a property of the WinForm.
In my searches I found the opposite solution, binding between WinForms to WPF properties (when the WinForm is sitting on a…

Hodaya Shalom
- 4,327
- 12
- 57
- 111
0
votes
1 answer
Change element from element host
I have a DataGrid with a few lines:

Hodaya Shalom
- 4,327
- 12
- 57
- 111
0
votes
1 answer
MouseEnter event in Winform ElementHost
I have a Winform with an elementHost in it to contain a WPF UserControl. What I need, is to do something when the mouse enters the elementHost, not the child. I was trying to use MouseEnter event in the elementHost but it does not exists. Is there…

Andres
- 2,729
- 5
- 29
- 60
0
votes
1 answer
WPF Scrollviewer DesiredSize does not increase when ScrollBar gets Visible
I have a WPF UserControl (inside an ElementHost) with a ScrollViewer that contains an ItemsControl . The HorizontalScrollbarVisibility is set to Auto, so if no scrolling is necessary, the ScrollBargets hidden.
My requirement is, that if the…

Mike Fuchs
- 12,081
- 6
- 58
- 71
0
votes
0 answers
ElementHost repainting
I'm using AvalonEdit in my WinForms application. AvalonEdit is placed onto control with ElementHost on it. Application has RadDock from Telerik and AvalonEdit can be placed on its windows. Often I get problem with ElementHost repainting. I don't…

Yuriy
- 2,670
- 6
- 33
- 48
0
votes
1 answer
Windows Forms, Element Host and style inheritance
I have a Windows Forms application in which I host a usercontrol created with WPF. This is done using the Element Host class. All WPF elements in the element host container inherit the windows forms style, including fonts, etc.
I want to prevent…

user23127
- 827
- 10
- 21
0
votes
2 answers
WPF Validation in an ElementHost control
I've got a WinForms form that contains an ElementHost control (which contains a WPF UserControl) and a Save button.
In the WPF UserControl I've got a text box with some validation on it. Something like this...

Jon Mitchell
- 3,349
- 5
- 27
- 37
0
votes
1 answer
Potential memory issues with ElementHost'ed WPF form and grid binding approach?
When a user clicks on a WinForms menu item, this code gets executed:
// this is an Infragistics XamRibbonWindow
var someWpfInfragisticsWindow = new…

ck.
- 1,056
- 1
- 14
- 25
-1
votes
1 answer
C# Sending data to an elementHost
Basically I have a WPF elementHost contained in my C# Windows Form. The element host needs to retrieve a variable from the Windows form, but I have found no simple way to communicate between the two of them. Is there any method in particular I…

David
- 9
- 2