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

WPF

 
QuestionAssign a null value to DateTime property Pin
maxRazar26-Aug-13 21:00
maxRazar26-Aug-13 21:00 
AnswerRe: Assign a null value to DateTime property Pin
Pete O'Hanlon26-Aug-13 23:02
mvePete O'Hanlon26-Aug-13 23:02 
GeneralRe: Assign a null value to DateTime property Pin
maxRazar28-Aug-13 5:57
maxRazar28-Aug-13 5:57 
GeneralRe: Assign a null value to DateTime property Pin
Pete O'Hanlon28-Aug-13 21:56
mvePete O'Hanlon28-Aug-13 21:56 
AnswerRe: Assign a null value to DateTime property Pin
Jason Gleim27-Aug-13 5:30
professionalJason Gleim27-Aug-13 5:30 
GeneralRe: Assign a null value to DateTime property Pin
maxRazar28-Aug-13 5:57
maxRazar28-Aug-13 5:57 
AnswerRe: Assign a null value to DateTime property Pin
koll Zhu22-Sep-13 23:47
koll Zhu22-Sep-13 23:47 
QuestionProper way to do this in MVVM? Pin
SledgeHammer0126-Aug-13 11:46
SledgeHammer0126-Aug-13 11:46 
I have a main window (ribbon). The ribbon has 2 buttons. Call them BtnA and BtnB. The view area is a tab control. Tab1 and Tab2. Each has a user control. UserCtrl1 and UserCtrl2. So BtnA should execute Cmd1 in UserCtrl1 and BtnB should execute Cmd2 in UserCtrl2.

So the question is, what is the cool MVVM way to set that up? The main window doesn't have the data context for the user controls, so it can't do straight up binding. I could have Cmd1 and Cmd2 be static commands, but then you end up with 2 sets of functions... a static Execute & a class Execute, a static CanExecute and a class CanExecute. Not good. Could also have forwarding functions in the main window, but thats pretty much the same issue. 2 sets of functions.
AnswerRe: Proper way to do this in MVVM? Pin
Pete O'Hanlon26-Aug-13 12:39
mvePete O'Hanlon26-Aug-13 12:39 
GeneralRe: Proper way to do this in MVVM? Pin
SledgeHammer0126-Aug-13 12:56
SledgeHammer0126-Aug-13 12:56 
AnswerRe: Proper way to do this in MVVM? Pin
Abhinav S26-Aug-13 16:29
Abhinav S26-Aug-13 16:29 
QuestionTreeView Pin
columbos1492726-Aug-13 2:32
columbos1492726-Aug-13 2:32 
AnswerRe: TreeView Pin
Jason Gleim27-Aug-13 5:36
professionalJason Gleim27-Aug-13 5:36 
GeneralRe: TreeView Pin
columbos1492727-Aug-13 7:46
columbos1492727-Aug-13 7:46 
GeneralRe: TreeView Pin
Jason Gleim27-Aug-13 8:11
professionalJason Gleim27-Aug-13 8:11 
GeneralRe: TreeView Pin
columbos1492727-Aug-13 19:29
columbos1492727-Aug-13 19:29 
QuestionCurrency Converter(Silverlight+MVVM) Pin
Ipsita_2324-Aug-13 1:48
Ipsita_2324-Aug-13 1:48 
AnswerRe: Currency Converter(Silverlight+MVVM) Pin
Abhinav S24-Aug-13 2:10
Abhinav S24-Aug-13 2:10 
GeneralRe: Currency Converter(Silverlight+MVVM) Pin
Ipsita_2324-Aug-13 6:29
Ipsita_2324-Aug-13 6:29 
GeneralRe: Currency Converter(Silverlight+MVVM) Pin
Richard MacCutchan24-Aug-13 6:36
mveRichard MacCutchan24-Aug-13 6:36 
AnswerRe: Currency Converter(Silverlight+MVVM) Pin
Abhinav S24-Aug-13 17:37
Abhinav S24-Aug-13 17:37 
GeneralRe: Currency Converter(Silverlight+MVVM) Pin
Ipsita_2325-Aug-13 1:09
Ipsita_2325-Aug-13 1:09 
QuestionControl's Border Color animation Pin
thecco23-Aug-13 7:08
thecco23-Aug-13 7:08 
AnswerRe: Control's Border Color animation Pin
koll Zhu22-Sep-13 23:49
koll Zhu22-Sep-13 23:49 
Questionhow to show data in combobox from database in silverlight Pin
Member 793334323-Aug-13 1:22
Member 793334323-Aug-13 1:22 

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.