locked
WinFormsControl not visible in WindowsFormsHost (Horst Klein) - 12/7/2006 3:12 AM PST RRS feed

  • Question

  • By: Horst Klein

    I added a WinformsControl in my XAML Window:
    
          <DockPanel LastChildFill="False" Margin="127,55.068,7,0" 
    VerticalAlignment="Top" Height="72.932">
            <WindowsFormsHost Name="wfh" DockPanel.Dock="Top" Height="100">
              <vdc:VitoLabel Name="MyTimeLine" Height="100" />
            </WindowsFormsHost>
          </DockPanel>
    
    I the VS2005 FormsDesign i can see my "VitoLabel" UserControl
    In "MS Expression Blend" not!!!
    Bug, not supported or a feature?
    Tuesday, February 19, 2008 6:39 PM

Answers

  • By: Unni Ravindranathan (MS)
    This is currently "by design". As you probably know, WinForms controls are
    their own HWnds when hosted inside a WPF window - for example, they don't
    play well with the layout system. If we were to enable live WinForms
    controls on our Design surface, you would start seeing wierd things like
    those control run over our UI when resizing them. To prevent these issues,
    we substitute your WinForms controls with a dummy WPF control. You can work
    with the rest of the application that you are trying to design, but the
    WinForms control itself won't be live.

    Thanks,
    -Unni

    "Horst Klein" <HorstKlein@discussions.microsoft.com> wrote in message
    news:859409E1-95EA-48ED-A23E-2FB9563885B6@microsoft.com...

    Click to show or hide original message or reply text.

    Tuesday, February 19, 2008 8:50 PM

All replies

  • By: Unni Ravindranathan (MS)
    This is currently "by design". As you probably know, WinForms controls are
    their own HWnds when hosted inside a WPF window - for example, they don't
    play well with the layout system. If we were to enable live WinForms
    controls on our Design surface, you would start seeing wierd things like
    those control run over our UI when resizing them. To prevent these issues,
    we substitute your WinForms controls with a dummy WPF control. You can work
    with the rest of the application that you are trying to design, but the
    WinForms control itself won't be live.

    Thanks,
    -Unni

    "Horst Klein" <HorstKlein@discussions.microsoft.com> wrote in message
    news:859409E1-95EA-48ED-A23E-2FB9563885B6@microsoft.com...

    Click to show or hide original message or reply text.

    Tuesday, February 19, 2008 8:50 PM
  • By: Horst Klein
    Hi Unni

    Nice to hear from you on this way.
    I heard from you from Jim Nakashima.
    He forwarded my email requests to you.

    I see! That's illustrated its behaviour.
    Well with this background knowledge I can sell my GUI-Boys why its importend
    to migrate our WinForms soon as possible to WPF Controls.

    I download the Blend Beta 1 on thusday and it seems to be mutch more usable
    than all I tryed before (Aurora, September CTP and VS FormsDesigner)

    Do you news about the release date for "Blend".

    Horst

    Tuesday, February 19, 2008 8:51 PM