Darren Baldwin's profileBeardie's LairPhotosBlogListsMore Tools Help

Blog

    September 16

    PDC Day 3 pt 3

    Techie Blog gEEK fACTOR 8/10

    Winforms and WinFX Interoperability

    There was two sides to this talk, hosting winforms within Avalon (sorry Windows presentation foundation) and hosting WPF forms in Windows forms.

    Windows has an ElementHost control to display Avalon WPF forms. WPF alternatively uses WindowsFormsHost to display Windows forms within Avalon...sorry WPF.

    References need to be made to the various host controls.

    When using WPF you need to create mappings to the Windows controls within the XAML code. Alternatively you can use code behind to populate the WPF forms.

    You will need to design the WPF forms using a designer such as the one in the new set of graphics tools (cannot remember the name must be my bed time).

    There is also another Alpha code bug at the moemnt in so much as you need to edit the visual studio project file in notepad to set some missing properties. This will change for release.

    One important consideration is that if you are going to host one technology within the other then you will not be on the same message loop so click events in one will not be captured by the other. Not without some complex plumbing either way, not to be advised.

    The decision to use WPF should be an indiviual one based on some of the following:

    Traing requiremnents

    ROI

    Visual Designers

    ControlsVisual Studio Integration

    The secret is to try and identify somewhere that could benefit from using the WPF functionality.

    Complete integration of this tool is scheduled for the Orcas timeframe. Orcas is the next version of Visual Studio following version 2005 due out in November.

    Comments (0)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks (3)

    The trackback URL for this entry is:
    http://beardieslair.spaces.live.com/blog/cns!8C2C357940A64396!276.trak
    Weblogs that reference this entry