Click here to Skip to main content
15,909,737 members
Home / Discussions / WPF
   

WPF

 
QuestionRender/Load the png image file to <image> xaml tag with retained resolution. Pin
Member 42819906-Aug-14 17:02
Member 42819906-Aug-14 17:02 
QuestionHow to Configuring WCF services to work over both HTTP and HTTPS Pin
devenv.exe4-Aug-14 20:26
professionaldevenv.exe4-Aug-14 20:26 
QuestionWPF app that open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image. Pin
Member 42819903-Aug-14 17:29
Member 42819903-Aug-14 17:29 
AnswerRe: WPF app that open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image. Pin
Mycroft Holmes3-Aug-14 19:08
professionalMycroft Holmes3-Aug-14 19:08 
QuestionHow To Call A Method In A User Control Pin
Kevin Marois1-Aug-14 8:01
professionalKevin Marois1-Aug-14 8:01 
AnswerRe: How To Call A Method In A User Control Pin
Mycroft Holmes1-Aug-14 13:38
professionalMycroft Holmes1-Aug-14 13:38 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 6:13
professionalKevin Marois4-Aug-14 6:13 
QuestionRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 6:53
mveRichard Deeming4-Aug-14 6:53 
AnswerRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 6:57
professionalKevin Marois4-Aug-14 6:57 
GeneralRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 7:02
mveRichard Deeming4-Aug-14 7:02 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 7:03
professionalKevin Marois4-Aug-14 7:03 
GeneralRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 7:16
mveRichard Deeming4-Aug-14 7:16 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer014-Aug-14 10:07
SledgeHammer014-Aug-14 10:07 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 10:10
professionalKevin Marois4-Aug-14 10:10 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer014-Aug-14 10:46
SledgeHammer014-Aug-14 10:46 
I meant, "leave the control" as in lose focus. If you want to execute on a Save button, that's a different story. There are a few ways to do it:

1) use a composite command and have the control attach to it

2) use messenger and send a message (p.s. this does not require a VM unless your messenger service is tightly coupled to ViewModelBase which it shouldn't be)

3) get a reference to the view in your viewmodel and reference the control directly

4) use a bindable property to trigger the validation (this is probably the cleanest way). I.e. in your save method:

ValidateControl = true;

the control would need to expose a DP and call Validate() when its set to true, then afterwards reset it to false.

Or, if you don't have control over the control, then an attached property would accomplish the same thing.
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 10:48
professionalKevin Marois4-Aug-14 10:48 
AnswerRe: How To Call A Method In A User Control Pin
_Maxxx_4-Aug-14 18:38
professional_Maxxx_4-Aug-14 18:38 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer016-Aug-14 9:27
SledgeHammer016-Aug-14 9:27 
QuestionHow to send a fax using wpf? Pin
Kesavanksk24-Jul-14 23:41
Kesavanksk24-Jul-14 23:41 
AnswerRe: How to send a fax using wpf? Pin
Pete O'Hanlon25-Jul-14 0:54
mvePete O'Hanlon25-Jul-14 0:54 
GeneralRe: How to send a fax using wpf? Pin
Mycroft Holmes25-Jul-14 14:31
professionalMycroft Holmes25-Jul-14 14:31 
AnswerRe: How to send a fax using wpf? Pin
Afzaal Ahmad Zeeshan15-Aug-14 6:46
professionalAfzaal Ahmad Zeeshan15-Aug-14 6:46 
QuestionUnable to access DatePicker's SelectedDate property Pin
Suj_7822-Jul-14 3:26
Suj_7822-Jul-14 3:26 
AnswerRe: Unable to access DatePicker's SelectedDate property Pin
SledgeHammer0123-Jul-14 5:14
SledgeHammer0123-Jul-14 5:14 
QuestionProblème with TreeView Pin
Mouaici Mohamed22-Jul-14 1:38
Mouaici Mohamed22-Jul-14 1:38 

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.