Bob
Fri Dec 14 13:21:37 PST 2007
I don't know of any article that specifically deals with the comparison of
these two data binding systems but effectively in the WPF model they threw
out almost everything _except_ the concept of databinding.
Objects must still implement INotifyPropertyChanged or provide a
<property>Changed event for each property.
WPF databinding is different inasmuch as the DataContext is inherited by
child controls whereas in Windows Forms the DataSource needs to be
explicitly set for each control.
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Amir Tohidi" <AmirTohidi@discussions.microsoft.com> wrote in message
news:FE25ADAD-9580-4562-9B9C-161E833F7E9C@microsoft.com...
> Hi Bob
>
> Thanks for your insight and help.
>
> Is there an article that discusses data binding related matters and
> compares
> WinForms vs WPF data binding?
>
> Thanks
> Amir
>
> "Bob Powell [MVP]" wrote:
>
>> A company may wish to migrate an existing application to WPF to add a new
>> look to the application, or, if the application was an intensely
>> graphical
>> one, to increase performance.
>>
>> Architecturally, WPF applications and Windows Forms applications only
>> have
>> about one thing in common, Databinding. Otherwise chalk and cheese is a
>> good
>> analogy.
>>
>> If you are starting a new application, I not wish to discourage you from
>> a
>> WPF app but in my opinion the tools available for creating WPF
>> applications
>> as well as the support from third-party suppliers for components and so
>> on
>> is pretty poor at the moment. Having actually tried to create an
>> industrial
>> strength application in WPF I found that it lacked the facilities I
>> needed
>> and so went for CAB / Windows Forms solution with some WPF content hosted
>> on
>> Windows Forms.
>>
>> Personally, given the amount that Visual Studio 2008 crashes and the fact
>> that Blend 2.0 still isn't available I would hold off of starting any
>> serious project on a WPF platform and look at it as a learning thing.
>>
>> If you need to deliver an application in a short time with good features
>> and
>> support, go for a Windows Forms application while paying close attention
>> to
>> your data model so that migration to WPF eventually is painless.
>>
>> --
>> --
>> Bob Powell [MVP]
>> Visual C#, System.Drawing
>>
>> Ramuseco Limited .NET consulting
>>
http://www.ramuseco.com
>>
>> Find great Windows Forms articles in Windows Forms Tips and Tricks
>>
http://www.bobpowell.net/tipstricks.htm
>>
>> Answer those GDI+ questions with the GDI+ FAQ
>>
http://www.bobpowell.net/faqmain.htm
>>
>> All new articles provide code in C# and VB.NET.
>> Subscribe to the RSS feeds provided and never miss a new article.
>>
>>
>> "Amir Tohidi" <AmirTohidi@discussions.microsoft.com> wrote in message
>> news:BA447A76-B9BC-4EBA-9715-0D4192FF4721@microsoft.com...
>> > Hi
>> >
>> > Apart from simple test harnesses, I haven't done much with WinForms. As
>> > for
>> > WPF, I know what it stands for :-)
>> >
>> > Having Googled for a while, I couldn't find a no nonsense web site that
>> > helps me understand where WinForm and WPF sit in the Microsoft world.
>> > For
>> > example, is WPF the replacement for WinForms?
>> >
>> > Please comment or point me to some decent articles. Please note that I
>> > am
>> > mainly interested in these technologies from an Arcitecture point of
>> > view.
>> > For example:
>> >
>> > * Why would a company want to migrate an existing WinForms app to WPF
>> > (or
>> > is
>> > that a silly question)
>> >
>> > * If starting a new Windows application, what are the key
>> > considerations
>> > in
>> > chossing between WinForms vs WPF
>> >
>> > * Which environment is better suited for delivering functionaly rich
>> > GUI
>> > in
>> > a RAD environment
>> >
>> > Thanks
>> > Amir
>> >
>> >
>>