Click here to Skip to main content
15,891,431 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to draw a free hand shape (random) on wpf canvas Pin
Farhan Ghumra13-Jun-12 0:38
professionalFarhan Ghumra13-Jun-12 0:38 
QuestionAdding ResourceDictionary to a WPF project gives "does not contain a static 'Main' method suitable for an entry point" error Pin
as_kannan11-Jun-12 23:43
as_kannan11-Jun-12 23:43 
QuestionDependency propertie validation Pin
columbos1492711-Jun-12 20:58
columbos1492711-Jun-12 20:58 
QuestionGeneral question on silverlight Pin
ebrahim rajabloo10-Jun-12 0:49
ebrahim rajabloo10-Jun-12 0:49 
AnswerRe: General question on silverlight Pin
egenis10-Jun-12 5:25
egenis10-Jun-12 5:25 
QuestionLoop multiple Videos in MediaPlayer Pin
mselvaraj9-Jun-12 1:20
mselvaraj9-Jun-12 1:20 
QuestionScreen Scraping Silverlight Web Page Pin
yirgalem8-Jun-12 12:00
yirgalem8-Jun-12 12:00 
QuestionGeneral question on MVVM Pin
jesarg7-Jun-12 6:10
jesarg7-Jun-12 6:10 
I was reading through posts such as this one on MSDN[^], and I was wondering why in MVVM, we constantly try to save 10 lines of code in the .xaml.cs class by adding 100 lines in the viewmodel or helper classes.

Can someone tell me the main benefit of taking such big hits in code size and readability to avoid putting code in the .xaml.cs file?

I would think that even if you do regular event handling in the .xaml.cs file, it still follows the textbook MVVM pattern (view knows viewmodel, viewmodel knows model, no other knowledge allowed).
GeneralRe: General question on MVVM Pin
jesarg7-Jun-12 9:06
jesarg7-Jun-12 9:06 
GeneralRe: General question on MVVM Pin
jesarg7-Jun-12 12:07
jesarg7-Jun-12 12:07 
AnswerRe: General question on MVVM Pin
Abhinav S9-Jun-12 2:18
Abhinav S9-Jun-12 2:18 
AnswerRe: General question on MVVM Pin
egenis10-Jun-12 5:27
egenis10-Jun-12 5:27 
AnswerRe: General question on MVVM Pin
Cracked-Down10-Jun-12 20:17
Cracked-Down10-Jun-12 20:17 
GeneralRe: General question on MVVM Pin
Alisaunder15-Jun-12 2:56
Alisaunder15-Jun-12 2:56 
QuestionPLEASE HELP THE WAY IT CAN BE ACHIEVED Pin
formulaone877-Jun-12 0:33
formulaone877-Jun-12 0:33 
AnswerRe: PLEASE HELP THE WAY IT CAN BE ACHIEVED Pin
Mycroft Holmes7-Jun-12 13:04
professionalMycroft Holmes7-Jun-12 13:04 
GeneralRe: PLEASE HELP THE WAY IT CAN BE ACHIEVED Pin
formulaone878-Jun-12 0:53
formulaone878-Jun-12 0:53 
QuestionCopy/Pasting excel data into the WPF Rich Textbox loses formatting Pin
sundherrajan6-Jun-12 21:17
sundherrajan6-Jun-12 21:17 
AnswerRe: Copy/Pasting excel data into the WPF Rich Textbox loses formatting Pin
Mycroft Holmes7-Jun-12 0:00
professionalMycroft Holmes7-Jun-12 0:00 
QuestionRequired field Validation in WPF Pin
User-84353845-Jun-12 5:43
User-84353845-Jun-12 5:43 
AnswerRe: Required field Validation in WPF Pin
Unnikrishnan_S_N3-Jul-12 2:44
Unnikrishnan_S_N3-Jul-12 2:44 
QuestionNot able to drag and drop WPF controls on to window in Visual Studio 2008 Pin
Anurag Sinha V4-Jun-12 0:25
Anurag Sinha V4-Jun-12 0:25 
AnswerRe: Not able to drag and drop WPF controls on to window in Visual Studio 2008 Pin
Abhinav S5-Jun-12 0:47
Abhinav S5-Jun-12 0:47 
GeneralRe: Not able to drag and drop WPF controls on to window in Visual Studio 2008 Pin
Anurag Sinha V5-Jun-12 2:56
Anurag Sinha V5-Jun-12 2:56 
QuestionSilverlight client 4.0 application listboxs not working with the new Sliverlight 5.1 client Pin
Steve Holdorf3-Jun-12 12:21
Steve Holdorf3-Jun-12 12:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.