Click here to Skip to main content
15,890,579 members
Home / Discussions / WPF
   

WPF

 
Question[Message Deleted] Pin
Prajeesh31-Mar-09 3:00
Prajeesh31-Mar-09 3:00 
AnswerRe: Change Visibilty of a Row in Grid Pin
Pete O'Hanlon31-Mar-09 4:50
mvePete O'Hanlon31-Mar-09 4:50 
QuestionDirect3D always on the top? [modified] Pin
mildred-frontfree30-Mar-09 15:38
mildred-frontfree30-Mar-09 15:38 
QuestionMVVM - how to update a control in a WindowsFormsHost Pin
barker77030-Mar-09 12:52
barker77030-Mar-09 12:52 
AnswerRe: MVVM - how to update a control in a WindowsFormsHost Pin
ABitSmart30-Mar-09 19:38
ABitSmart30-Mar-09 19:38 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker77031-Mar-09 11:00
barker77031-Mar-09 11:00 
AnswerRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon30-Mar-09 21:52
mvePete O'Hanlon30-Mar-09 21:52 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker77031-Mar-09 10:56
barker77031-Mar-09 10:56 
> Why is this method not part of the ViewModel? If it's updating data,
> then it has no place in the view - the view should only be a visual
> representation.

Agreed. And the procedural code in the View.xaml.cs code is really just to help transfer the data into the winforms control.

Yes, I would prefer to bind a chart property directly to a method in the ViewModel, but I need this procedural code to be somewhere. And it makes sense to make it part of the View. Just as somewhere in the standard WPF binding code there is some procedural code that does the actual display of the data.

It would be perfect if I could bind a method in the View.xaml.cs to my ViewModel In effect, encapsulating the logic needed to bind to the chart control inside the View (albeit the code behind for the View.

Mitch
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon31-Mar-09 11:56
mvePete O'Hanlon31-Mar-09 11:56 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker7701-Apr-09 4:31
barker7701-Apr-09 4:31 
AnswerRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker7701-Apr-09 9:11
barker7701-Apr-09 9:11 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon1-Apr-09 9:22
mvePete O'Hanlon1-Apr-09 9:22 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
ABitSmart1-Apr-09 22:56
ABitSmart1-Apr-09 22:56 
QuestionCustom/user control Pin
wazzzuup30-Mar-09 10:12
wazzzuup30-Mar-09 10:12 
AnswerRe: Custom/user control Pin
Christian Graus30-Mar-09 15:03
protectorChristian Graus30-Mar-09 15:03 
GeneralRe: Custom/user control Pin
wazzzuup31-Mar-09 0:00
wazzzuup31-Mar-09 0:00 
QuestionBrowsers just couldn't show SilverLights Applications ? Pin
Mohammad Dayyan30-Mar-09 10:03
Mohammad Dayyan30-Mar-09 10:03 
AnswerRe: Browsers just couldn't show SilverLights Applications ? Pin
Mark Salsbery31-Mar-09 6:31
Mark Salsbery31-Mar-09 6:31 
GeneralRe: Browsers just couldn't show SilverLights Applications ? Pin
Mohammad Dayyan31-Mar-09 20:37
Mohammad Dayyan31-Mar-09 20:37 
QuestionAssign command parameter to canvas. Pin
emptythetill30-Mar-09 1:22
emptythetill30-Mar-09 1:22 
AnswerRe: Assign command parameter to canvas. Pin
ABitSmart30-Mar-09 2:02
ABitSmart30-Mar-09 2:02 
GeneralRe: Assign command parameter to canvas. Pin
emptythetill30-Mar-09 10:50
emptythetill30-Mar-09 10:50 
GeneralRe: Assign command parameter to canvas. Pin
ABitSmart30-Mar-09 20:05
ABitSmart30-Mar-09 20:05 
QuestionDeploying WPF application Pin
M. J. Jaya Chitra30-Mar-09 0:09
M. J. Jaya Chitra30-Mar-09 0:09 
AnswerRe: Deploying WPF application Pin
Christian Graus30-Mar-09 15:08
protectorChristian Graus30-Mar-09 15:08 

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.