Click here to Skip to main content
15,885,365 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 11:17
mvePete O'Hanlon8-Mar-12 11:17 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:04
Colin Eberhardt8-Mar-12 23:04 
GeneralRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 23:30
mvePete O'Hanlon8-Mar-12 23:30 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:38
Colin Eberhardt8-Mar-12 23:38 
GeneralRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 23:44
mvePete O'Hanlon8-Mar-12 23:44 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:50
Colin Eberhardt8-Mar-12 23:50 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 0:04
mvePete O'Hanlon9-Mar-12 0:04 
GeneralRe: History of MVVM Pin
SledgeHammer019-Mar-12 4:40
SledgeHammer019-Mar-12 4:40 
Pete O'Hanlon wrote:
Possibly my biggest bugbear is when people think that MVVM means that you have
to remove ALL code behind. That's just plain errant nonsense. If you want to
trigger an animation just because your window is closing then, by all means,
trigger it from code behind.


I know this was just an example, but this is definitely something that can be done entirely in XAML. I'm one of those guys that self enforce the no code-behind rule Smile | :) . So far, I haven't found a need to have code behind. There are plenty of MVVM tricks to get around the need... if you are writing a lot of code behind, you should probably repackage it in a nice MVVM friendly UserControl or something of that sort.

If you start allowing code behind, it gets hard to draw the line... you end up with a lot of "I was feeling lazy that day, so I'm going to throw it in the code behind and move it later" -- which never happens.

Plus, you end up with your logic split across two .cs files Smile | :)
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 9:23
mvePete O'Hanlon9-Mar-12 9:23 
AnswerRe: History of MVVM Pin
Abhinav S8-Mar-12 19:52
Abhinav S8-Mar-12 19:52 
QuestionAny ideas on MVVM'ing this? Pin
SledgeHammer018-Mar-12 7:25
SledgeHammer018-Mar-12 7:25 
Questioncreating a popup DataGrid inside the ComboBox Pin
Giorgi Nistor6-Mar-12 22:04
Giorgi Nistor6-Mar-12 22:04 
AnswerRe: creating a History listbox control Pin
Abhinav S6-Mar-12 23:01
Abhinav S6-Mar-12 23:01 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor6-Mar-12 23:27
Giorgi Nistor6-Mar-12 23:27 
AnswerRe: creating a History listbox control Pin
Abhinav S6-Mar-12 23:31
Abhinav S6-Mar-12 23:31 
AnswerRe: creating a History listbox control Pin
SledgeHammer017-Mar-12 6:39
SledgeHammer017-Mar-12 6:39 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor8-Mar-12 3:43
Giorgi Nistor8-Mar-12 3:43 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor12-Mar-12 5:08
Giorgi Nistor12-Mar-12 5:08 
QuestionCommunication Exception while calling a Windows Workflow service from Silverlight Pin
cydd6-Mar-12 21:43
cydd6-Mar-12 21:43 
QuestionAllow user customizing styles of WPF controls and retaining them Pin
Mahesha9996-Mar-12 1:28
Mahesha9996-Mar-12 1:28 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Abhinav S6-Mar-12 2:18
Abhinav S6-Mar-12 2:18 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Mycroft Holmes6-Mar-12 11:57
professionalMycroft Holmes6-Mar-12 11:57 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Pete O'Hanlon6-Mar-12 12:05
mvePete O'Hanlon6-Mar-12 12:05 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Mahesha9997-Mar-12 4:22
Mahesha9997-Mar-12 4:22 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Pete O'Hanlon7-Mar-12 4:38
mvePete O'Hanlon7-Mar-12 4:38 

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.