Making Winforms And WPF Work Together
description
Transcript of Making Winforms And WPF Work Together
Making Winforms And WPF Work Together
Niraj BhattTechnical Architect | Microsoft MVPhttp://nirajrules.wordpress.com | [email protected]
CrossBowCodename for WPF / Winforms interopIntegrated with VS.NET 2008Available through WindowsFormsIntegration.dllNo, this is not the official logo
CrossBow GoalsProvide Run / Design time solution to enable co-existence of WinForms / WPF in context of a single hybrid applicationPreserve WinForms investmentsAdoption of WPF at customer paceNo Application Rewrite
CrossBow Non-GoalsMarkup solution for creating Winforms applicationCode Migration Wizard
Hard to get rightConscious design for WPF
Not just swap control by control
Need For InteropWPF doesn’t use HWND RenderingWinforms need a Control derived class
Solution via Hosts
WPF Application
WindowsFormsHost
Adapter
Windows FormsControls
WF Application
ElementHost
Adapter
WPF Elements
CrossBow Architecture
Crossbow RT
WindowsFormsHost
ElementHost
Unit Conversions
Focus Managem
ent
Keyboard Mgm
t
Property Mapping
Windows Forms
WF Designer
Crossbow Ext
“Cider”
Crossbow Ext
Cider Designer
ReferencesMSDN
Migration & Interoperability
BlogsMike Henderlight Daniel MothJosh Smith
BooksProgramming WPF – Chris Sells & Ian Griffiths
Feedback / QnAYour 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!
ContactBlog Addresshttp://nirajrules.wordpress.com
Email [email protected]
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.