1 / 13

Making Winforms And WPF Work Together

Making Winforms And WPF Work Together. Niraj Bhatt Technical Architect | Microsoft MVP http://nirajrules.wordpress.com | niraj@indiamvps.net. CrossBow. Codename for WPF / Winforms interop Integrated with VS.NET 2008 Available through WindowsFormsIntegration.dll

carl
Download Presentation

Making Winforms And WPF Work Together

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Making Winforms And WPF Work Together Niraj Bhatt Technical Architect | Microsoft MVP http://nirajrules.wordpress.com | niraj@indiamvps.net

  2. CrossBow • Codename for WPF / Winformsinterop • Integrated with VS.NET 2008 • Available through WindowsFormsIntegration.dll • No, this is not the official logo 

  3. CrossBow Goals • Provide Run / Design time solution to enable co-existence of WinForms / WPF in context of a single hybrid application • Preserve WinForms investments • Adoption of WPF at customer pace • No Application Rewrite

  4. CrossBow Non-Goals • Markup solution for creating Winforms application • Code Migration Wizard • Hard to get right • Conscious design for WPF • Not just swap control by control

  5. Need For Interop • WPF doesn’t use HWND Rendering • Winforms need a Control derived class

  6. Solution via Hosts WPF Application WF Application Windows Forms Controls WPF Elements WindowsFormsHost ElementHost Adapter Adapter

  7. CrossBow Architecture Crossbow RT Unit Conversions Focus Management Keyboard Mgmt Property Mapping Windows Forms “Cider” WindowsFormsHost Crossbow Ext Crossbow Ext ElementHost WF Designer Cider Designer

  8. DEMO Using ElementHost VS.NET 2008 with SP1

  9. DEMO Using WindowsFormsHost VS.NET 2008 with SP1

  10. References • MSDN • Migration & Interoperability • Blogs • Mike Henderlight • Daniel Moth • Josh Smith • Books • Programming WPF – Chris Sells & Ian Griffiths

  11. Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form • Use the Question Manager on LiveMeeting to ask your questions now!

  12. Contact • Blog Address http://nirajrules.wordpress.com • Email Address niraj@indiamvps.net

More Related