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
125
Windows Form Floating panel in WPF
posted

I want to create a windows form floating panel and dock it to the infragistics dock. I am using infragistics 11.

Using Windows.Forms.Integration allow me to have windows form control in WP but i am unable to create a floating panel for the same.

Is there any method to do so?

Please help

 

thanks

  • 54937
    Offline posted

    I'm not sure what you mean. Creating a floating SplitPane would be no different when it contains a WindowsFormsHost or any other WPF element.

     <igDock:XamDockManager
      xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
      xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
      >
      <igDock:XamDockManager.Panes>
       <igDock:SplitPane
        igDock:XamDockManager.FloatingSize="200,200"
        igDock:XamDockManager.InitialLocation="DockableFloating">
        <igDock:ContentPane Header="Windows Form Control">
         <wfi:WindowsFormsHost>
          <wf:PropertyGrid />
         </wfi:WindowsFormsHost>
        </igDock:ContentPane>
       </igDock:SplitPane>
      </igDock:XamDockManager.Panes>
     </igDock:XamDockManager>