WPF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?S2lk?=

    #1

    WPF

    Hi

    Is WPF popular now , can VC and MFC write a WPF program ?

    If I want to study WPF , is there some good book to study ?

    Thank you .
  • Giovanni Dicanio

    #2
    Re: WPF


    "Kid" <Kid@discussion s.microsoft.com ha scritto nel messaggio
    news:28A8BC25-61A2-4B44-A833-BF9E6A543552@mi crosoft.com...
    Is WPF popular now , can VC and MFC write a WPF program ?
    WPF is becoming popular, and there are very important ideas behind it (like
    using the 3D hardware acceleration, high-composibility of contents, etc.).
    However, I think that the tools need to mature, and there are issues to be
    fixed (like the blurry text at small font size).

    I think that you can host WPF content in an MFC application (as you can host
    WinForm content in an MFC application).

    A web search with your favourite search engine can lead to this article on
    CodeProject:

    http://www.codeguru.com/cpp/cpp/cpp_...cle.php/c14589
    If I want to study WPF , is there some good book to study ?
    There is a great book by Adam Nathan: "WPF Unleashed".

    http://www.amazon.com/Windows-Presen.../dp/0672328917

    Giovanni


    Comment

    • Ben Voigt [C++ MVP]

      #3
      Re: WPF

      Giovanni Dicanio wrote:
      "Kid" <Kid@discussion s.microsoft.com ha scritto nel messaggio
      news:28A8BC25-61A2-4B44-A833-BF9E6A543552@mi crosoft.com...
      >
      >Is WPF popular now , can VC and MFC write a WPF program ?
      >
      WPF is becoming popular, and there are very important ideas behind it
      (like using the 3D hardware acceleration, high-composibility of
      contents, etc.). However, I think that the tools need to mature, and
      there are issues to be fixed (like the blurry text at small font
      size).
      I think that you can host WPF content in an MFC application (as you
      can host WinForm content in an MFC application).
      But this should never be the choice for new code. MFC has nothing to offer
      a pure WPF application, because the library is married to its own wrapper
      around the Win32 GUI.

      C++/CLI can be used for WPF, but without XAML support you'll be unhappy
      trying to do so.

      The recommended practice is to implement the UI (view in M-V-C architecture)
      in C# and the data processing (model in M-V-C) in C++.


      Comment

      • Giovanni Dicanio

        #4
        Re: WPF


        "Ben Voigt [C++ MVP]" <rbv@nospam.nos pamha scritto nel messaggio
        news:uaXwKvMSJH A.2432@TK2MSFTN GP05.phx.gbl...
        >I think that you can host WPF content in an MFC application (as you
        >can host WinForm content in an MFC application).
        >
        But this should never be the choice for new code. MFC has nothing to
        offer a pure WPF application, because the library is married to its own
        wrapper around the Win32 GUI.
        If one has legacy apps written using MFC, and there is a need to insert some
        WPF graphics in it, it could make sense to do it incrementally, instead of
        doing a complete port of the MFC GUI part to WPF.
        Hosting WPF content in an MFC GUI is just an option: the OP can choose what
        to do in his particular case.
        C++/CLI can be used for WPF, but without XAML support you'll be unhappy
        trying to do so.
        I completely agree with you on that. I consider C++/CLI a good tool just for
        building some "bridging" layer between native code and managed code (like
        exporting some native C/C++ library to the managed world, to use it in C#).
        IMHO, native code should be done in C++, and for managed code C# is just
        fine.

        Giovanni



        Comment

        Working...