Connecting Tech Pros Worldwide Help | Site Map

WPF

  #1  
Old November 17th, 2008, 07:45 AM
=?Utf-8?B?S2lk?=
Guest
 
Posts: n/a
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 .
  #2  
Old November 17th, 2008, 08:25 AM
Giovanni Dicanio
Guest
 
Posts: n/a

re: WPF



"Kid" <Kid@discussions.microsoft.comha scritto nel messaggio
news:28A8BC25-61A2-4B44-A833-BF9E6A543552@microsoft.com...
Quote:
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
Quote:
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


  #3  
Old November 17th, 2008, 03:55 PM
Ben Voigt [C++ MVP]
Guest
 
Posts: n/a

re: WPF


Giovanni Dicanio wrote:
Quote:
"Kid" <Kid@discussions.microsoft.comha scritto nel messaggio
news:28A8BC25-61A2-4B44-A833-BF9E6A543552@microsoft.com...
>
Quote:
>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++.


  #4  
Old November 17th, 2008, 04:25 PM
Giovanni Dicanio
Guest
 
Posts: n/a

re: WPF



"Ben Voigt [C++ MVP]" <rbv@nospam.nospamha scritto nel messaggio
news:uaXwKvMSJHA.2432@TK2MSFTNGP05.phx.gbl...
Quote:
Quote:
>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.
Quote:
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



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a WPF window host another WPF window? Dean Slindee answers 2 October 2nd, 2008 06:05 PM
Control to contain a WPF window? Dean Slindee answers 2 October 2nd, 2008 03:15 AM
Any good books on WPF? I doubt it raylopez99 answers 9 September 12th, 2008 12:05 AM
WPF--a threat to WinForms? raylopez99 answers 23 August 25th, 2008 08:45 PM
WPF - where does it fit in? farseer answers 4 December 28th, 2006 05:55 PM