13 questions
1
vote
0
answers
113
views
WPF Modal Window renders completely white (blank) in Hybrid WinForms application under load
I am maintaining a legacy hybrid application (Main App is WinForms, hosting WPF UserControls via ElementHost).
The Problem:
When opening a WPF Modal Window (Window.ShowDialog()) from the WinForms main ...
1
vote
0
answers
2k
views
How to set a thread's DPI_AWARENESS_CONTEXT in a WPF application?
I'm trying to figure out how I can temporarily disable DPI awareness in a WPF-application to set Window Placement. Following this example
I'm essentially trying to run the following from my Window's ...
0
votes
1
answer
1k
views
Win32 native control in layered (transparent) WPF window is invisible
I want to host a native Win32 (Qt widget) control in a WPF window.
My problem is that in case I host it in a normal WPF window, everything works fine, but when I set AllowsTransparency of the WPF ...
1
vote
0
answers
348
views
Wpf Monogame Interop wont load in Designer
Hi im using the WpfInterop NuGet Plugin from this Location https://gitlab.com/MarcStan/MonoGame.Framework.WpfInterop/
I did everything the way it is in the readme file but itjust wont load in my ...
5
votes
2
answers
2k
views
Is it possible to host a QT application into a WPF application?
I'm trying to create WPF GUI application to host an already exist QT GUI application as part of the main UI.
The QT application don't need to deal with mouse/keyboard input.
I've tried approach ...
1
vote
1
answer
3k
views
How do I get a WPF Window "from" an HwndSource I create directly?
If I create an HwndSource directly, have I then also created a WPF Window that I can now access from code? If so, how can I access it?
Or do I now need to somehow "add" a WPF Window to that ...
1
vote
2
answers
2k
views
ElementHost flickers black borders on resize
Disclaimer: This is not a duplicated post. I googled about the issue. Also read this, this and this SO questions. I tried some of those things but nothing seemed to help.
Consider the following ...
0
votes
0
answers
245
views
WPF Winforms Interop eating keystroke
I create a winform project with a single form with 4 textboxes and a button.
On button click, I perform the following:
Window1 w = new Window1();
ElementHost.EnableModelessKeyboardInterop(w);
w.Show(...
2
votes
1
answer
801
views
WPF Interop Control renders black when .Net Framework is changed from 3.5 to 4.5
I have an interop question about embedding WinForms controls into a WPF application and differences in the .Net framework versions.
The following should show a transparent wpf control (red box) over ...
1
vote
1
answer
1k
views
Hosted window in WPF doesn't get mouse messages
Taking it a bit further than hosting WinForms user controls in my WPF application, I am actually hosting Delphi forms, i.e. top level windows. I am doing so through the voodoo in blog post How To Host ...
1
vote
0
answers
167
views
What windows messages must I handle when I host a Win32 window inside a WPF control?
So far, I only know I must listen for WM_CLOSE, which is a request to close, and WM_DESTROY, which is when the window is actually destroyed after closing. I need to handle these because I need to ...
0
votes
2
answers
368
views
How can I communicate with a Delphi window hosted in a WPF User Control?
Well, actually I know I can communicate with the window itself, the plane GUI, through it's message pump, but let's say I want to call a COM exposed function in the Delphi DLL that produced and ...
8
votes
1
answer
2k
views
Why is my WPF hosted WinForm blank?
I have used the code from this blog, as below but abridged, and I see the WinForm inside my main window, but the sample text I placed on it in a label is not visible.
[System.Windows.Markup....