WinFormsHost support


So as is, FabTabs support windowsFormsHost's when they are the direct child of the tab (tab -> winformsHost -> other stuff)... but when the host is the child of some other control, and its more of a "mixed environment" of wpf and winforms the system breaks and large blank spots show up on the image (for instance: tab -> grid -> (dockpanel, winformsHost, expander))
So basically WinFormsHost support is lost when the Host is not the direct child of the tab...
You could fix this either by iterating through all the children of the content, which seems kinda cumbersome and im not sure how it would work because you dont know what kinda controls would be in the Content other than UIElement... soooo maybe petition MS for better printscreen? i dunno but either way if you could work your magic coding voodoo adajos that would be wonderful


adajos wrote Dec 16, 2009 at 3:46 PM

Hmm...I know that via GDI screenshots can be taken regardless of the content--I have actually done that before. There can be some drawbacks to doing so however. I'll have a look at some of the options and their drawbacks and see what makes sense. I'll keep you posted on this thread.

adajos wrote Jan 26, 2010 at 7:53 PM

Hey butters,

sorry to leave you hanging for so long on this. So I gave another guy some guidance on how to use GDI to take screenshots, you can read about it here: http://fabtab.codeplex.com/Thread/View.aspx?ThreadId=81067

Hope that helps you. You'll have to change the FabTab code yourself a bit, but I outline how to do it. I don't think I'll be putting GDI into the FabTab codebase.

Good luck!


wrote Feb 14, 2013 at 7:36 PM