Click here to Skip to main content
15,868,016 members
Home / Discussions / WPF
   

WPF

 
QuestionWCF error - CommunicationException: Error in deserializing body of reply message for operati Pin
vanikanc12-Sep-12 15:33
vanikanc12-Sep-12 15:33 
QuestionWpf Datagrid Pin
sudeep kushwaha12-Sep-12 2:38
sudeep kushwaha12-Sep-12 2:38 
AnswerRe: Wpf Datagrid Pin
Pete O'Hanlon12-Sep-12 3:03
subeditorPete O'Hanlon12-Sep-12 3:03 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 11:55
SledgeHammer0112-Sep-12 11:55 
AnswerRe: Wpf Datagrid Pin
Clifford Nelson12-Sep-12 12:19
Clifford Nelson12-Sep-12 12:19 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 12:27
SledgeHammer0112-Sep-12 12:27 
AnswerRe: Wpf Datagrid Pin
Clifford Nelson12-Sep-12 12:34
Clifford Nelson12-Sep-12 12:34 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 13:29
SledgeHammer0112-Sep-12 13:29 
Clifford Nelson wrote:
acts as a converter that changes model information into view information and
passes commands from the view into the model. The view model exposes public
properties, commands, and abstractions. The view model has been likened to a
conceptual state of the data as opposed to the real state of the data in the
model.


Sounds like the color would fit that description quite nicely IMO. Its an abstraction of a value change in this case. An up-tick is green and a down-tick is red. That's an abstraction.

Clifford Nelson wrote:
Color is not an abstraction. You should be able to replace the View with a
totally different implementation and still work.


Having an up-tick color and a down-tick color exposed in the VM has no effect on swapping out the View whatsoever. Any View can either use it or not.

Clifford Nelson wrote:
If it is decided that a different color should be used, that should not affect
the ViewModel, any more than changing the position of the textbox should affect
the ViewModel.


You are really reaching with that one Smile | :) . A color in this case is an abstraction of the up-tick / down-tick concept.

Anyways, I'd REALLY hate to have to maintain your code where every VM has dozens of value converters just for the heck of it. Seems like a nightmare to me Smile | :) . If you are working on a big UI where there are 50 views, you are really going to have 500+ converters??? Are you serious???

And if you REALLY want to be an anal MVVM / OOP purist... the color change doesn't belong in either place. That belongs in a refactored "Cell" object Wink | ;) .
QuestionWPF groupbox visibility by combobox value selected Pin
karthik bandaru11-Sep-12 20:33
karthik bandaru11-Sep-12 20:33 
AnswerRe: WPF groupbox visibility by combobox value selected Pin
Mycroft Holmes11-Sep-12 20:54
professionalMycroft Holmes11-Sep-12 20:54 
GeneralRe: WPF groupbox visibility by combobox value selected Pin
karthik bandaru11-Sep-12 21:04
karthik bandaru11-Sep-12 21:04 
GeneralRe: WPF groupbox visibility by combobox value selected Pin
Mycroft Holmes11-Sep-12 21:12
professionalMycroft Holmes11-Sep-12 21:12 
QuestionGrid Dynamic Column and Row in run time in WPF MVVM Pin
sels198711-Sep-12 15:59
sels198711-Sep-12 15:59 
AnswerRe: Grid Dynamic Column and Row in run time in WPF MVVM Pin
Clifford Nelson12-Sep-12 13:39
Clifford Nelson12-Sep-12 13:39 
QuestionPopUp Window Open and close in WPF MVVM pattern Pin
sels19878-Sep-12 21:53
sels19878-Sep-12 21:53 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Mycroft Holmes9-Sep-12 14:25
professionalMycroft Holmes9-Sep-12 14:25 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Pete O'Hanlon10-Sep-12 5:03
subeditorPete O'Hanlon10-Sep-12 5:03 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Abhinav S10-Sep-12 16:14
Abhinav S10-Sep-12 16:14 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
_Maxxx_29-Oct-12 17:30
professional_Maxxx_29-Oct-12 17:30 
QuestionTuple as a Binding Parameter Pin
Ahrimal6-Sep-12 22:11
Ahrimal6-Sep-12 22:11 
QuestionBinding to an XML list of attributes Pin
Jayme656-Sep-12 11:46
Jayme656-Sep-12 11:46 
AnswerRe: Binding to an XML list of attributes Pin
Pete O'Hanlon6-Sep-12 22:24
subeditorPete O'Hanlon6-Sep-12 22:24 
GeneralRe: Binding to an XML list of attributes Pin
Jayme657-Sep-12 6:11
Jayme657-Sep-12 6:11 
GeneralRe: Binding to an XML list of attributes Pin
Pete O'Hanlon7-Sep-12 6:52
subeditorPete O'Hanlon7-Sep-12 6:52 
GeneralRe: Binding to an XML list of attributes Pin
Jayme657-Sep-12 7:10
Jayme657-Sep-12 7:10 

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.