Tuesday, May 3, 2011

When should one use WPF instead of WinForms, and vice versa?

When should one use WPF instead of WinForms, and vice versa? 
First off, WPF is not just for applications which simply require “eye candy.”  That is the most common and frustrating misperception about WPF which I’ve encountered.  Sure, WPF has a lot of support for flashy visuals and animations.  But that’s not all it’s good for.  If you’ve worked with WPF for any substantial period of time you are probably well aware of this fact, so I won’t keep harping on the issue.
WPF is an especially great platform to use if your applications involve various media types.  For example, if you need to incorporate video, or documents, or 3D content, or animated transitions between a sequence of images, or a combination of any of the above.  WPF is also great if you need to create a skinned user interface, or if you need to bind to XML data, or dynamically load portions of a user interface from a Web service, or want to create a desktop application with a Web-like navigation style.
Another great reason to use WPF is if you have a team of developers who are bored with WinForms and are itching to get into something new and cool.  Of course this is not as powerful and compelling a reason from a business perspective, but nothing promotes employee retention better than keeping the employees interested in their jobs.
WinForms definitely still has a role to play, despite the fact that WPF has hit the scene.  If you are building applications with no need for the extensive modern functionality in WPF, then there is no compelling reason to leave behind a time-tested developer-approved platform.  WinForms certainly has more 3rd party controls available, online resources, developer communities, etc. than WPF currently does.  It’s much easier to find WinForms developers than WPF developers.  Also, WinForms currently has a much better design-time experience in Visual Studio than WPF.  That fact alone is a very compelling reason to stick with WinForms for a while.
Lastly, don’t forget that it is possible to use WPF controls in a WinForms app, and WinForms controls in a WPF app.  If you have a substantial investment in a WinForms code-base, but want to use some aspect(s) of WPF, you can leverage the interop support to make that possible.  Just be sure to read up on the limitations involved with WinForms-WPF interop before getting too far down that path.



Ref: http://joshsmithonwpf.wordpress.com/2007/09/05/wpf-vs-windows-forms/

Monday, February 28, 2011

Facts About the Oscars





Fact #1:  How the golden statue became known as Oscar:

The famous golden statue that represents the Academy Awards is formally known as the Academy Award of Merit, but that name didn't fit well for some people so they started giving it nicknames. Some of those nicknames included the golden trophy," "the statue of merit," and "the iron man." However, it was the nickname "Oscar" that won everyone over. The nickname Oscar came about after Academy librarian Margaret Herrick said that the statue resembled her Uncle Oscar.

Fact #2  Oscar Grand Slam:
There have been only three movies in the history of the Academy Awards to win an Oscar in all categories, an honor known as an Oscar Grand Slam or the Big Five. Those movies are:
1. It Happened One Night
2. One Flew Over the Cuckoo's Nest
3. The Silence of the Lambs

Fact #3  An Oscar Can't be Sold:
The recipient of an Oscar must sign a winners agreement stating that they will not sell the statue without first offering to sell it back to the Academy for $1. The Academy made this rule to ensure that the trophies do not end up in the hands of private collectors. Should a winner refuse to sign the agreement, the Academy will keep the trophy.

Fact #4  Three films hold the record for winning most number of Oscars:

“Ben-Hur” in 1959, 
“Titanic” in 1997 
“The Return of the King” in 2003.


Fact #5  First women to win Oscar:
Kathryn Bigelow became the first woman to win the Oscar for best director (The Hurt Locker) in 2010

Fact #6  The golden statue isn't golden:

The golden statue is actually made up of 93% tin, 5% antimony and 2% copper and is gold plated.

Friday, November 26, 2010

Some movies are so great to watch.


The Lake House is a 2006 American romantic drama film remake of the Korean motion picture Il MareDavid Auburn, directed by Alejandro Agresti, and stars Keanu Reeves and Sandra Bullock as Alex Wyler and Kate Forster, respectively an architect living in 2004 and a doctor living in 2006. The two communicate via letters left in a mailbox at the lake house they have both lived in at separate points in time; they carry on correspondence over two years, remaining separated by their original difference of two years. For Alex the time goes from 2004 to 2006. For Kate the time goes from 2006 to 2008. (2000). It was written by

I saw this movie recently. I found the concept very interesting.  
In the movie the boy is living in the world of year 2004 and the girl in 2006.
Though they are on the same world, they could not see each other because both are living their life at different year of time.
They are writing letter to each other and slowly they fall in love with each other.
But something strikes my mind. Is it possible for them to meet if they wish to meet?
What would be the date they meet, Coz both are on different year of time.
If girl wish to meet on her tomorrow then it’s 2 years after for the boy.
If they plan to meet on 14th Feb  2008 and the girl reaches some place to meet on that day. The boy also reaches the same place on the same date (after waiting for 2 years). Then what will be the date after that. Because that day both are on the same date and both have difference of 2 years.
Really thoughtful. Hats off to David Auburn(writer).
Some movies are so great to watch.

Thursday, November 18, 2010

Artful explanations of 54 poker cards:


We all play cards. So do I.
But I often use to think that, how these cards have been created?
I use to always question myself
- Why are there 4 types of cards?
- Why each contains 13 cards?
- Why are there 54 cards in a deck?
- Who invented the cards? (He must be a genius.)
Finally I got some article that answers some of my questions.
It is quite interesting.

There are artful explanations of 54 poker cards:
The Big wizard stands for the sun, the little wizard stands for the moon.
The rest cards are for the 52 weeks of the year.
Respectively stands for spring, summer, autumn and winter.

Each patter has 13 cards, which means each season contains 13 weeks.
If J, Q and K are seen as 11, 12 and 13, the big wizard and little wizard is seen as 0.5 the total is exactly 365 (365 days).