Winform custom control in WPF

Posted by Erika on Stack Overflow See other posts from Stack Overflow or by Erika
Published on 2010-04-01T05:55:17Z Indexed on 2010/04/01 7:03 UTC
Read the original article Hit count: 588

Hi, I'm inserting a custom winform control in a WPF/ XAML window, however i'm realising that the sizing seems to be very different, what i designed in winform to be 730pixels wide for instance, when placed via a WindowsFormsHost, in a container 730pixels (or at least i think they're pixels..) wide, the control looks much larger and doesnt fit in the host and results in clipping from the right and bottom.

Would anyone know how to make these sizes match or something? I'm really at a loss and its very difficult to fix a custom control to make it look as it should off hand on WPF! Please help!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about winforms