Click here to Skip to main content
15,917,005 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF & Toolbox in VS2008 Pin
proganon3-Apr-09 5:48
proganon3-Apr-09 5:48 
QuestionWPF 3D help needed Pin
Stevie31-Mar-09 4:01
Stevie31-Mar-09 4:01 
AnswerRe: WPF 3D help needed Pin
Pete O'Hanlon31-Mar-09 4:27
mvePete O'Hanlon31-Mar-09 4:27 
GeneralRe: WPF 3D help needed Pin
Stevie31-Mar-09 5:12
Stevie31-Mar-09 5:12 
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 
I'm using MVVM in which WPF controls are data bound to propertied in a "ViewModel". This all works fine. One of our main controls is an XY chart and it can only be update via code because it requires looping and other logic. i.e it's not adaptable to data binding.

Since I cannot bind the chart to data, I was forced to add a method to the XAML code behind that knows how to update the chart. To further muddy the MVVM design pattern, I had to pass the View down to the ViewModel, so that the ViewModel could explicitly call the UpdateChart method that is in the View code behind.

Instead of binding between the ViewModel and UI control, I would like to bind between the ViewModel and a method in the code behind. Then the method in the code behind could go thru its complex logic to update the chart control.

Thanks for any suggestions. I appreciate the benfits of DataBinding and MVVM, but I can't make it work with my WinForms control that is embedded in a WindowsFormsHost control.

Mitch
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 
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 

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.