Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline littlecase  
#1 Posted : Tuesday, January 24, 2012 10:13:04 PM(UTC)
littlecase

Joined: 1/24/2012(UTC)
Posts: 2

Hi,
i have a short Question.

Is it possible to draw WPF Gui Elements on top of the Windows Form Host?

Right now when i simple place, lets say a <Button /> element above it,
it got covered by the WindowsFormhost after it starts rendering.

Thanks in advance,

littlecase

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Tuesday, January 24, 2012 11:44:56 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Well, this has nothing to do with the Delta Engine and is a question better asked in some WPF forum or on Stackoverflow!

Basically this is not supported as the WPF side of the WindowsFormsHost does not care or handle anything going on inside it, thus it cannot know when it has to redraw whatever else WPF controls you want on top of it. There are certainly ways around it, but I would consider those "hacks" and usually not even worth the effort. Try to avoid this situation by putting WPF controls not above an WindowsFormsHost, but besides it. You can also use normal Windows Forms controls inside the WindowsFormsHost .. or use UI inside your rendering code ..

More information about this and workaround/"Hacks" can be found on the internet, just search for it ^^
http://stackoverflow.com...-top-of-windowsformshost
Offline littlecase  
#3 Posted : Wednesday, January 25, 2012 11:03:13 AM(UTC)
littlecase

Joined: 1/24/2012(UTC)
Posts: 2

Ahh thanks for the links!
Exactly what i asked for. :)

I just found your engine yesterday and get comfortable with.
Keep up the good work!
Offline Benjamin  
#4 Posted : Wednesday, January 25, 2012 12:42:19 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
No problem, good luck with your WPF application.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.059 seconds.