Click here to Skip to main content
12,243,534 members (37,001 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: WPF
Hello friends, I would like some advice translate this beautiful project Fancy Windows Forms[^]
to WPF.

In WPF not exist OnPaint(PaintEventArgs e) Event please help us
Posted 9-Oct-12 12:45pm
Comments
   
Forget it. Honestly. You can do better.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You should have read this article instead: Create Custom Windows in WPF with Ease[^]
  Permalink  
Comments
   
Interesting link, my 5.
I also answered, but more for explaining the background. Please see, you might find it interesting.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Translate? Just forget it. There is no "translate" — those things are very different, especially in what you see as "fancy" capabilities. And WPF does not have almost anything related to Windows, including Paint, even though it has similar drawing API. And this is good — Windows is about to obsolete; and GDO+ (used in "cute" System.Windows.Forms) has many known problems which needs workarounds. I would hope it will eventually go obsolete, despite of Windows 8. I hope it will be eventually replaced with Midory or something similar. WPF has a potential to live much longer, because it is well "detached" from Windows and almost fully based on DirectX, which is supported by video hardware:
http://en.wikipedia.org/wiki/DirectX[^].

It looks like Microsoft paves the way to quickly get rid of Windows still preserving new .NET libraries.

But — you can do thing much "fancier" with WPF. Just forget "translations". You have 3D graphics, non-rectangular windows, transparency of all elements, intrinsic or custom animation and a lot more.

—SA
  Permalink  
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100