WPF -- Where do you draw the line between code and XAML?

Posted by John Franks on Stack Overflow See other posts from Stack Overflow or by John Franks
Published on 2008-10-08T09:39:23Z Indexed on 2010/05/27 8:31 UTC
Read the original article Hit count: 273

Filed under:
|
|
|
|

I'm a long-time C#/.NET programmer but totally new to WPF and the System.Windows.Controls namespace and XAML. The more I learn about it the more I realize that you can do pretty much all of your GUI initialization and event handling glue in either XAML or in code (say C# code or VB.Net code).

My question is to those who have been working on WPF for longer and ideally those who have shipped apps with it -- where did you find was the best place to 'draw the line' between XAML and code? Did you use XAML wherever you could? Only where interfacing with non-coding UI designers?

Any tips in this area would be extremely helpful to myself and other coders who are just getting into WPF programming and are kind of paralyzed by all the choices we can make!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET