Click here to Skip to main content
15,889,830 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Rounded ListBox Pin
Mark Salsbery9-Dec-09 20:09
Mark Salsbery9-Dec-09 20:09 
GeneralRe: Rounded ListBox Pin
shanmugarajaa9-Dec-09 22:13
shanmugarajaa9-Dec-09 22:13 
GeneralRe: Rounded ListBox Pin
Mark Salsbery10-Dec-09 6:34
Mark Salsbery10-Dec-09 6:34 
QuestionWPF OpenFileDialog and FolderBrowserDialog Pin
ausadmin9-Dec-09 8:47
ausadmin9-Dec-09 8:47 
AnswerRe: WPF OpenFileDialog and FolderBrowserDialog Pin
Mark Salsbery9-Dec-09 10:22
Mark Salsbery9-Dec-09 10:22 
GeneralRe: WPF OpenFileDialog and FolderBrowserDialog Pin
Pete O'Hanlon9-Dec-09 10:59
mvePete O'Hanlon9-Dec-09 10:59 
GeneralRe: WPF OpenFileDialog and FolderBrowserDialog Pin
ausadmin31-Jan-10 10:04
ausadmin31-Jan-10 10:04 
QuestionMVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 7:37
sponsorJudah Gabriel Himango9-Dec-09 7:37 
I've got a 3rd party control:

// 3rd party control, I don't have the source to it.
class Foo : SomeWPFControl, INotifyPropertyChanged
{
   public DateTime Start { get; }
   public event PropertyChangedEventHandler PropertyChanged;
}


I slap this control on my view. Then I code up a little ViewModel. All is good.

I need to do work in my ViewModel when the control's Start property changes. How do you recommend doing this?

Attempt #1: I tried creating a DateTime property in my view model, then binding the control's .Start property to my property in the ViewModel, but that didn't work because "Start is a read-only property". Fail.

Attempt #2: I can listen to control.PropertyChanged inside my view, and when it fires, call some function on my ViewModel. But that doesn't seem very MVVMish. Fail?



Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon
Judah Himango



AnswerRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 8:10
Ian Shlasko9-Dec-09 8:10 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 8:11
sponsorJudah Gabriel Himango9-Dec-09 8:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 8:14
Ian Shlasko9-Dec-09 8:14 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:02
sponsorJudah Gabriel Himango9-Dec-09 11:02 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 11:31
Ian Shlasko9-Dec-09 11:31 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:34
sponsorJudah Gabriel Himango9-Dec-09 11:34 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 13:08
Ian Shlasko9-Dec-09 13:08 
AnswerRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Pete O'Hanlon9-Dec-09 10:11
mvePete O'Hanlon9-Dec-09 10:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding [modified] Pin
Judah Gabriel Himango9-Dec-09 10:59
sponsorJudah Gabriel Himango9-Dec-09 10:59 
QuestionDependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:01
rj_hogan9-Dec-09 4:01 
AnswerRe: Dependancy Property not setting on user control Pin
Ian Shlasko9-Dec-09 4:31
Ian Shlasko9-Dec-09 4:31 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:46
rj_hogan9-Dec-09 4:46 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 6:45
rj_hogan9-Dec-09 6:45 
GeneralRe: Dependancy Property not setting on user control Pin
Mark Salsbery9-Dec-09 6:53
Mark Salsbery9-Dec-09 6:53 
QuestionFreeze first item in listbox from scrolling. Pin
Member 23244838-Dec-09 10:28
Member 23244838-Dec-09 10:28 
QuestionDynamicResource not working, but StaticResource does ??? Pin
assassin3168-Dec-09 3:18
assassin3168-Dec-09 3:18 
QuestionSession variables in Silverlight or wcf service Pin
Nekkantidivya7-Dec-09 18:43
Nekkantidivya7-Dec-09 18:43 

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.