Questions tagged [windowsformshost]

Questions about the WindowsFormsHost element

Use the WindowsFormsHost element to place a Windows Forms control within your WPF element or page.

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.integration.windowsformshost

212 questions
33
votes
5 answers

Can I overlay a WPF window on top of another?

I have a WPF window, which contains a WindowsFormsHost element. I need to draw things on top of this element, but the nature of WindowsFormsHost means that it's always on the top of the drawing pile. As I cannot draw in the same WPF window on top of…
Garry
  • 341
  • 1
  • 3
  • 3
17
votes
5 answers

WPF WindowsFormsHost sizing

I wanted to wrap a windows forms control in a wpf UserControl
Jose
  • 10,891
  • 19
  • 67
  • 89
16
votes
0 answers

Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type

Having done nothing more than install Visual Studio 2012, our existing application now crashes when attempting to create a delegate. Why would we be getting this error when running our application (not running in debug...just running the .exe…
Eric Dahlvang
  • 8,252
  • 4
  • 29
  • 50
15
votes
6 answers

Render WPF control on top of WindowsFormsHost

I know that default WPF behavior is to render WPF controls and then on top render WinForms, but are there any way to render WPF on top of WindowsFormsHost? Edit: I have found a temp hack as well. When wpf control overlaps WindowsFormsHost, I change…
Vitalij
  • 4,587
  • 9
  • 42
  • 65
14
votes
4 answers

WPF hosting a WinForm, Tab Navigation problems

I have run into issues when hosting a WinForms form within a WindowsFormsHost and the tab navigation. To solve I have made this simple example: Created WPF Window (starting point of app) Created WinForms Form with two TextBox on it WPF window:…
ZoolWay
  • 5,411
  • 6
  • 42
  • 76
14
votes
3 answers

How to dismiss all WPF menus, popups, etc. by DevExpress programmatically to get around WindowsFormsHost related issue?

I want it to behave such as you clicked somewhere on application. (which collapses all menus, drop downs, etc) Actually, I'm trying to get around the interoperability related focus issue you get when you are hosting Windows Forms controls in a WPF…
user1004959
  • 627
  • 6
  • 16
13
votes
6 answers

ScrollViewer is not working in WPF WindowsFormHost

I have WindowsFormHost with a RichTextBox in my WPF form, i have given ScrollViewer for that WindowsFormHost but its not working, WindowsFormHost going outside of ScrollViewer... My XAML is..
Avinash Singh
  • 2,697
  • 11
  • 44
  • 72
12
votes
4 answers

WindowsFormsHost is always the most top from WPF element

how to set the z-index windowsformhost that they are not always at the top of the WPF element ?
Andy Kurniawan
  • 131
  • 1
  • 2
  • 6
9
votes
2 answers

How to make s WPF menu look like a Windows Forms ToolStripMenu?

I am new to WPF. And by new I mean I just started it today after getting .net 3.5. I usually do GUI Development in Windows Forms and like the awesome ToolStripMenu. But when I saw the WPF Menu, it was so ugly that it reminded me of my Win32 Api…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
9
votes
1 answer

The presence of WindowsFormsHost causes the IsKeyboardFocusWithinChanged to be fired at most twice and not more

I discover a very strange behavior of WindowsFormsHost in WPF. I find that if a WPF control doesn't have WindowsFormsHost as a child control, then IsKeyboardFocusWithinChanged fires properly-- it is fired whenever the WPF control gains or loses…
Graviton
  • 81,782
  • 146
  • 424
  • 602
8
votes
1 answer

Created Bindable WindowsFormsHost, but child update is not being reflected to control

I created ran into a problem where i want to bind a control to a windowsFormsHost control. But as we all know, the Child property is not a DP, so i created a wrapper. /// /// Bindable version of windows form hosts ///…
Kev84
  • 827
  • 3
  • 15
  • 26
7
votes
3 answers

View a PDF in WPF without using WindowsFormsHost

Are there any native WPF controls for displaying PDFs? I am writing a program that will load a PDF file and then display extra notations on top of it. Using a WindowsFormsHost…
Eric K
  • 71
  • 1
  • 3
7
votes
1 answer

WIndows Forms Chart in WindowsFormsHost does not receive mouse wheel?

i have a Forms.DataVisualization.Charting.Chart in a WindowsFormsHost. I can't get the chart to receive mouse wheel events. Clicks are working, if i try with a Forms.TextBox the mouse wheel is working, too. The mouse wheel is also working if i use…
Martin Booka Weser
  • 3,192
  • 5
  • 28
  • 41
6
votes
2 answers

WPF Popup and WindowsFormsHost Problem

I am hosting windowsforms control in WPF popup. Problems below: If i make StaysOpen=False i can't interact with winform control. StaysOpen to false is required because when clicked outsidet the Popup region, it should close. if i make…
Santosh
5
votes
2 answers

Application.Idle event not firing in WPF application

I am using a third-party Windows Forms control that performs some actions "delayed" using the Application.Idle event. Now that we're moving our application to WPF, these actions stopped working. I've found that the…
Daniel
  • 15,944
  • 2
  • 54
  • 60
1
2 3
14 15