Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
How to host a Windows.Forms form with UltraDockManager in WPF WindowsFormsHost??
posted

Hi,

I use Infragistics 14.2.

Is it possible, to have a Windows.Forms form with UltraDockManager as child in a WPF WindowsFormsHost?

I can see the the form correctly at runtime, but it is not possible to interact with the panes (i.e. moving them by drag&drop). Without the WindowsFormsHost everything is fine.

I use the following code for the constructor of my HostWindow to add a Windows.Forms form

<Grid>
        <WindowsFormsHost Name="Host" FontSize="11.33" FontFamily="Microsoft Sans Serif"/>
</Grid>

public HostWindow(Form f)
{

    try
    {
        InitializeComponent();

        if (f != null)
        {
            f.TopLevel = false;
            f.FormBorderStyle = FormBorderStyle.None;
        }

        Host.Child = f;

    }
    catch (Exception e)
    {
        Console.WriteLine(e);
        throw;
    }
}